Class RemoveSnapshotLockRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.filestorage.requests.RemoveSnapshotLockRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<RemoveSnapshotLockRequest,ResourceLock>
- Enclosing class:
- RemoveSnapshotLockRequest
public static class RemoveSnapshotLockRequest.Builder extends Object implements BmcRequest.Builder<RemoveSnapshotLockRequest,ResourceLock>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RemoveSnapshotLockRequest.Builderbody$(ResourceLock body)Alternative setter for the body parameter.RemoveSnapshotLockRequestbuild()Build the instance of RemoveSnapshotLockRequest as configured by this builderRemoveSnapshotLockRequestbuildWithoutInvocationCallback()Build the instance of RemoveSnapshotLockRequest as configured by this builderRemoveSnapshotLockRequest.Buildercopy(RemoveSnapshotLockRequest o)Copy method to populate the builder with values from the given instance.RemoveSnapshotLockRequest.BuilderifMatch(String ifMatch)For optimistic concurrency control.RemoveSnapshotLockRequest.BuilderinvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)Set the invocation callback for the request to be built.RemoveSnapshotLockRequest.BuilderopcRequestId(String opcRequestId)Unique identifier for the request.RemoveSnapshotLockRequest.BuilderremoveSnapshotLockDetails(ResourceLock removeSnapshotLockDetails)The details to be updated for the RemoveLock.RemoveSnapshotLockRequest.BuilderretryConfiguration(RetryConfiguration retryConfiguration)Set the retry configuration for the request to be built.RemoveSnapshotLockRequest.BuildersnapshotId(String snapshotId)The OCID of the snapshot.
-
-
-
Method Detail
-
snapshotId
public RemoveSnapshotLockRequest.Builder snapshotId(String snapshotId)
The OCID of the snapshot.- Parameters:
snapshotId- the value to set- Returns:
- this builder instance
-
removeSnapshotLockDetails
public RemoveSnapshotLockRequest.Builder removeSnapshotLockDetails(ResourceLock removeSnapshotLockDetails)
The details to be updated for the RemoveLock.- Parameters:
removeSnapshotLockDetails- the value to set- Returns:
- this builder instance
-
ifMatch
public RemoveSnapshotLockRequest.Builder ifMatch(String ifMatch)
For optimistic concurrency control.In the PUT or DELETE call for a resource, set the if-match parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource’s current etag value.
- Parameters:
ifMatch- the value to set- Returns:
- this builder instance
-
opcRequestId
public RemoveSnapshotLockRequest.Builder opcRequestId(String opcRequestId)
Unique identifier for the request.If you need to contact Oracle about a particular request, please provide the request ID.
- Parameters:
opcRequestId- the value to set- Returns:
- this builder instance
-
invocationCallback
public RemoveSnapshotLockRequest.Builder invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.- Parameters:
invocationCallback- the invocation callback to be set for the request- Returns:
- this builder instance
-
retryConfiguration
public RemoveSnapshotLockRequest.Builder retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.- Parameters:
retryConfiguration- the retry configuration to be used for the request- Returns:
- this builder instance
-
copy
public RemoveSnapshotLockRequest.Builder copy(RemoveSnapshotLockRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copyin interfaceBmcRequest.Builder<RemoveSnapshotLockRequest,ResourceLock>- Parameters:
o- other request from which to copy values- Returns:
- this builder instance
-
build
public RemoveSnapshotLockRequest build()
Build the instance of RemoveSnapshotLockRequest as configured by this builderNote that this method takes calls to
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)into account, while the methodbuildWithoutInvocationCallback()does not.This is the preferred method to build an instance.
- Specified by:
buildin interfaceBmcRequest.Builder<RemoveSnapshotLockRequest,ResourceLock>- Returns:
- instance of RemoveSnapshotLockRequest
-
body$
public RemoveSnapshotLockRequest.Builder body$(ResourceLock body)
Alternative setter for the body parameter.- Specified by:
body$in interfaceBmcRequest.Builder<RemoveSnapshotLockRequest,ResourceLock>- Parameters:
body- the body parameter- Returns:
- this builder instance
-
buildWithoutInvocationCallback
public RemoveSnapshotLockRequest buildWithoutInvocationCallback()
Build the instance of RemoveSnapshotLockRequest as configured by this builderNote that this method does not take calls to
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)into account, while the methodbuild()does- Returns:
- instance of RemoveSnapshotLockRequest
-
-