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.Builder
body$(UpdateOccCustomerDetails body)
Alternative setter for the body parameter.UpdateOccCustomerRequest
build()
Build the instance of UpdateOccCustomerRequest as configured by this builderUpdateOccCustomerRequest
buildWithoutInvocationCallback()
Build the instance of UpdateOccCustomerRequest as configured by this builderUpdateOccCustomerRequest.Builder
copy(UpdateOccCustomerRequest o)
Copy method to populate the builder with values from the given instance.UpdateOccCustomerRequest.Builder
ifMatch(String ifMatch)
For optimistic concurrency control.UpdateOccCustomerRequest.Builder
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.UpdateOccCustomerRequest.Builder
occCustomerGroupId(String occCustomerGroupId)
The OCID of the customer group.UpdateOccCustomerRequest.Builder
occCustomerId(String occCustomerId)
The tenancy id of the customer.UpdateOccCustomerRequest.Builder
opcRequestId(String opcRequestId)
The client request ID for tracing.UpdateOccCustomerRequest.Builder
retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.UpdateOccCustomerRequest.Builder
updateOccCustomerDetails(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:
copy
in 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:
build
in 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
-
-