Class AddSnapshotLockRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.filestorage.requests.AddSnapshotLockRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<AddSnapshotLockRequest,ResourceLock>
- Enclosing class:
- AddSnapshotLockRequest
public static class AddSnapshotLockRequest.Builder extends Object implements BmcRequest.Builder<AddSnapshotLockRequest,ResourceLock>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AddSnapshotLockRequest.Builder
addSnapshotLockDetails(ResourceLock addSnapshotLockDetails)
The details to be updated for the AddLock.AddSnapshotLockRequest.Builder
body$(ResourceLock body)
Alternative setter for the body parameter.AddSnapshotLockRequest
build()
Build the instance of AddSnapshotLockRequest as configured by this builderAddSnapshotLockRequest
buildWithoutInvocationCallback()
Build the instance of AddSnapshotLockRequest as configured by this builderAddSnapshotLockRequest.Builder
copy(AddSnapshotLockRequest o)
Copy method to populate the builder with values from the given instance.AddSnapshotLockRequest.Builder
ifMatch(String ifMatch)
For optimistic concurrency control.AddSnapshotLockRequest.Builder
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.AddSnapshotLockRequest.Builder
opcRequestId(String opcRequestId)
Unique identifier for the request.AddSnapshotLockRequest.Builder
retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.AddSnapshotLockRequest.Builder
snapshotId(String snapshotId)
The OCID of the snapshot.
-
-
-
Method Detail
-
snapshotId
public AddSnapshotLockRequest.Builder snapshotId(String snapshotId)
The OCID of the snapshot.- Parameters:
snapshotId
- the value to set- Returns:
- this builder instance
-
addSnapshotLockDetails
public AddSnapshotLockRequest.Builder addSnapshotLockDetails(ResourceLock addSnapshotLockDetails)
The details to be updated for the AddLock.- Parameters:
addSnapshotLockDetails
- the value to set- Returns:
- this builder instance
-
ifMatch
public AddSnapshotLockRequest.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 AddSnapshotLockRequest.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 AddSnapshotLockRequest.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 AddSnapshotLockRequest.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 AddSnapshotLockRequest.Builder copy(AddSnapshotLockRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copy
in interfaceBmcRequest.Builder<AddSnapshotLockRequest,ResourceLock>
- Parameters:
o
- other request from which to copy values- Returns:
- this builder instance
-
build
public AddSnapshotLockRequest build()
Build the instance of AddSnapshotLockRequest 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:
build
in interfaceBmcRequest.Builder<AddSnapshotLockRequest,ResourceLock>
- Returns:
- instance of AddSnapshotLockRequest
-
body$
public AddSnapshotLockRequest.Builder body$(ResourceLock body)
Alternative setter for the body parameter.- Specified by:
body$
in interfaceBmcRequest.Builder<AddSnapshotLockRequest,ResourceLock>
- Parameters:
body
- the body parameter- Returns:
- this builder instance
-
buildWithoutInvocationCallback
public AddSnapshotLockRequest buildWithoutInvocationCallback()
Build the instance of AddSnapshotLockRequest 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 AddSnapshotLockRequest
-
-