Class PatchInternalOccCapacityRequestRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.capacitymanagement.requests.PatchInternalOccCapacityRequestRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<PatchInternalOccCapacityRequestRequest,PatchOccCapacityRequestDetails>
- Enclosing class:
- PatchInternalOccCapacityRequestRequest
public static class PatchInternalOccCapacityRequestRequest.Builder extends Object implements BmcRequest.Builder<PatchInternalOccCapacityRequestRequest,PatchOccCapacityRequestDetails>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PatchInternalOccCapacityRequestRequest.Builderbody$(PatchOccCapacityRequestDetails body)Alternative setter for the body parameter.PatchInternalOccCapacityRequestRequestbuild()Build the instance of PatchInternalOccCapacityRequestRequest as configured by this builderPatchInternalOccCapacityRequestRequestbuildWithoutInvocationCallback()Build the instance of PatchInternalOccCapacityRequestRequest as configured by this builderPatchInternalOccCapacityRequestRequest.Buildercopy(PatchInternalOccCapacityRequestRequest o)Copy method to populate the builder with values from the given instance.PatchInternalOccCapacityRequestRequest.BuilderifMatch(String ifMatch)For optimistic concurrency control.PatchInternalOccCapacityRequestRequest.BuilderinvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)Set the invocation callback for the request to be built.PatchInternalOccCapacityRequestRequest.BuilderoccCapacityRequestId(String occCapacityRequestId)The OCID of the capacity request.PatchInternalOccCapacityRequestRequest.BuilderopcRequestId(String opcRequestId)The client request ID for tracing.PatchInternalOccCapacityRequestRequest.BuilderpatchOccCapacityRequestDetails(PatchOccCapacityRequestDetails patchOccCapacityRequestDetails)Request to update the details of the capacity request.PatchInternalOccCapacityRequestRequest.BuilderretryConfiguration(RetryConfiguration retryConfiguration)Set the retry configuration for the request to be built.
-
-
-
Method Detail
-
patchOccCapacityRequestDetails
public PatchInternalOccCapacityRequestRequest.Builder patchOccCapacityRequestDetails(PatchOccCapacityRequestDetails patchOccCapacityRequestDetails)
Request to update the details of the capacity request.- Parameters:
patchOccCapacityRequestDetails- the value to set- Returns:
- this builder instance
-
occCapacityRequestId
public PatchInternalOccCapacityRequestRequest.Builder occCapacityRequestId(String occCapacityRequestId)
The OCID of the capacity request.- Parameters:
occCapacityRequestId- the value to set- Returns:
- this builder instance
-
ifMatch
public PatchInternalOccCapacityRequestRequest.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 PatchInternalOccCapacityRequestRequest.Builder opcRequestId(String opcRequestId)
The client request ID for tracing.The only valid characters for request IDs are letters, numbers, underscore, and dash.
- Parameters:
opcRequestId- the value to set- Returns:
- this builder instance
-
invocationCallback
public PatchInternalOccCapacityRequestRequest.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 PatchInternalOccCapacityRequestRequest.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 PatchInternalOccCapacityRequestRequest.Builder copy(PatchInternalOccCapacityRequestRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copyin interfaceBmcRequest.Builder<PatchInternalOccCapacityRequestRequest,PatchOccCapacityRequestDetails>- Parameters:
o- other request from which to copy values- Returns:
- this builder instance
-
build
public PatchInternalOccCapacityRequestRequest build()
Build the instance of PatchInternalOccCapacityRequestRequest 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<PatchInternalOccCapacityRequestRequest,PatchOccCapacityRequestDetails>- Returns:
- instance of PatchInternalOccCapacityRequestRequest
-
body$
public PatchInternalOccCapacityRequestRequest.Builder body$(PatchOccCapacityRequestDetails body)
Alternative setter for the body parameter.- Specified by:
body$in interfaceBmcRequest.Builder<PatchInternalOccCapacityRequestRequest,PatchOccCapacityRequestDetails>- Parameters:
body- the body parameter- Returns:
- this builder instance
-
buildWithoutInvocationCallback
public PatchInternalOccCapacityRequestRequest buildWithoutInvocationCallback()
Build the instance of PatchInternalOccCapacityRequestRequest 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 PatchInternalOccCapacityRequestRequest
-
-