Class UpdateOccCustomerRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.capacitymanagement.requests.UpdateOccCustomerRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<UpdateOccCustomerRequest,UpdateOccCustomerDetails>
- Enclosing class:
- UpdateOccCustomerRequest
public static class UpdateOccCustomerRequest.Builder extends Object implements BmcRequest.Builder<UpdateOccCustomerRequest,UpdateOccCustomerDetails>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateOccCustomerRequest.Builderbody$(UpdateOccCustomerDetails body)Alternative setter for the body parameter.UpdateOccCustomerRequestbuild()Build the instance of UpdateOccCustomerRequest as configured by this builderUpdateOccCustomerRequestbuildWithoutInvocationCallback()Build the instance of UpdateOccCustomerRequest as configured by this builderUpdateOccCustomerRequest.Buildercopy(UpdateOccCustomerRequest o)Copy method to populate the builder with values from the given instance.UpdateOccCustomerRequest.BuilderifMatch(String ifMatch)For optimistic concurrency control.UpdateOccCustomerRequest.BuilderinvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)Set the invocation callback for the request to be built.UpdateOccCustomerRequest.BuilderoccCustomerGroupId(String occCustomerGroupId)The OCID of the customer group.UpdateOccCustomerRequest.BuilderoccCustomerId(String occCustomerId)The tenancy id of the customer.UpdateOccCustomerRequest.BuilderopcRequestId(String opcRequestId)The client request ID for tracing.UpdateOccCustomerRequest.BuilderretryConfiguration(RetryConfiguration retryConfiguration)Set the retry configuration for the request to be built.UpdateOccCustomerRequest.BuilderupdateOccCustomerDetails(UpdateOccCustomerDetails updateOccCustomerDetails)Request to update the properties of the customer group.
-
-
-
Method Detail
-
updateOccCustomerDetails
public UpdateOccCustomerRequest.Builder updateOccCustomerDetails(UpdateOccCustomerDetails updateOccCustomerDetails)
Request to update the properties of the customer group.- Parameters:
updateOccCustomerDetails- the value to set- Returns:
- this builder instance
-
occCustomerGroupId
public UpdateOccCustomerRequest.Builder occCustomerGroupId(String occCustomerGroupId)
The OCID of the customer group.- Parameters:
occCustomerGroupId- the value to set- Returns:
- this builder instance
-
occCustomerId
public UpdateOccCustomerRequest.Builder occCustomerId(String occCustomerId)
The tenancy id of the customer.- Parameters:
occCustomerId- the value to set- Returns:
- this builder instance
-
ifMatch
public UpdateOccCustomerRequest.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 UpdateOccCustomerRequest.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 UpdateOccCustomerRequest.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 UpdateOccCustomerRequest.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 UpdateOccCustomerRequest.Builder copy(UpdateOccCustomerRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copyin interfaceBmcRequest.Builder<UpdateOccCustomerRequest,UpdateOccCustomerDetails>- Parameters:
o- other request from which to copy values- Returns:
- this builder instance
-
build
public UpdateOccCustomerRequest build()
Build the instance of UpdateOccCustomerRequest 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<UpdateOccCustomerRequest,UpdateOccCustomerDetails>- Returns:
- instance of UpdateOccCustomerRequest
-
body$
public UpdateOccCustomerRequest.Builder body$(UpdateOccCustomerDetails body)
Alternative setter for the body parameter.- Specified by:
body$in interfaceBmcRequest.Builder<UpdateOccCustomerRequest,UpdateOccCustomerDetails>- Parameters:
body- the body parameter- Returns:
- this builder instance
-
buildWithoutInvocationCallback
public UpdateOccCustomerRequest buildWithoutInvocationCallback()
Build the instance of UpdateOccCustomerRequest 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 UpdateOccCustomerRequest
-
-