Package com.oracle.bmc.core.requests
Class UpdateVolumeGroupRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.core.requests.UpdateVolumeGroupRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<UpdateVolumeGroupRequest,UpdateVolumeGroupDetails>
- Enclosing class:
- UpdateVolumeGroupRequest
public static class UpdateVolumeGroupRequest.Builder extends Object implements BmcRequest.Builder<UpdateVolumeGroupRequest,UpdateVolumeGroupDetails>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateVolumeGroupRequest.Builderbody$(UpdateVolumeGroupDetails body)Alternative setter for the body parameter.UpdateVolumeGroupRequestbuild()Build the instance of UpdateVolumeGroupRequest as configured by this builderUpdateVolumeGroupRequestbuildWithoutInvocationCallback()Build the instance of UpdateVolumeGroupRequest as configured by this builderUpdateVolumeGroupRequest.Buildercopy(UpdateVolumeGroupRequest o)Copy method to populate the builder with values from the given instance.UpdateVolumeGroupRequest.BuilderifMatch(String ifMatch)For optimistic concurrency control.UpdateVolumeGroupRequest.BuilderinvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)Set the invocation callback for the request to be built.UpdateVolumeGroupRequest.BuilderpreserveVolumeReplica(Boolean preserveVolumeReplica)Specifies whether to disable or preserve the individual volume replication when removing a volume from the replication enabled volume group.UpdateVolumeGroupRequest.BuilderretryConfiguration(RetryConfiguration retryConfiguration)Set the retry configuration for the request to be built.UpdateVolumeGroupRequest.BuilderupdateVolumeGroupDetails(UpdateVolumeGroupDetails updateVolumeGroupDetails)Update volume group’s set of volumes and/or display nameUpdateVolumeGroupRequest.BuildervolumeGroupId(String volumeGroupId)The Oracle Cloud ID (OCID) that uniquely identifies the volume group.
-
-
-
Method Detail
-
volumeGroupId
public UpdateVolumeGroupRequest.Builder volumeGroupId(String volumeGroupId)
The Oracle Cloud ID (OCID) that uniquely identifies the volume group.- Parameters:
volumeGroupId- the value to set- Returns:
- this builder instance
-
updateVolumeGroupDetails
public UpdateVolumeGroupRequest.Builder updateVolumeGroupDetails(UpdateVolumeGroupDetails updateVolumeGroupDetails)
Update volume group’s set of volumes and/or display name- Parameters:
updateVolumeGroupDetails- the value to set- Returns:
- this builder instance
-
ifMatch
public UpdateVolumeGroupRequest.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
-
preserveVolumeReplica
public UpdateVolumeGroupRequest.Builder preserveVolumeReplica(Boolean preserveVolumeReplica)
Specifies whether to disable or preserve the individual volume replication when removing a volume from the replication enabled volume group.When set to true, the individual volume replica is preserved. The default value is true.
- Parameters:
preserveVolumeReplica- the value to set- Returns:
- this builder instance
-
invocationCallback
public UpdateVolumeGroupRequest.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 UpdateVolumeGroupRequest.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 UpdateVolumeGroupRequest.Builder copy(UpdateVolumeGroupRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copyin interfaceBmcRequest.Builder<UpdateVolumeGroupRequest,UpdateVolumeGroupDetails>- Parameters:
o- other request from which to copy values- Returns:
- this builder instance
-
build
public UpdateVolumeGroupRequest build()
Build the instance of UpdateVolumeGroupRequest 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<UpdateVolumeGroupRequest,UpdateVolumeGroupDetails>- Returns:
- instance of UpdateVolumeGroupRequest
-
body$
public UpdateVolumeGroupRequest.Builder body$(UpdateVolumeGroupDetails body)
Alternative setter for the body parameter.- Specified by:
body$in interfaceBmcRequest.Builder<UpdateVolumeGroupRequest,UpdateVolumeGroupDetails>- Parameters:
body- the body parameter- Returns:
- this builder instance
-
buildWithoutInvocationCallback
public UpdateVolumeGroupRequest buildWithoutInvocationCallback()
Build the instance of UpdateVolumeGroupRequest 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 UpdateVolumeGroupRequest
-
-