Class UpdateContainerInstanceRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.containerinstances.requests.UpdateContainerInstanceRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<UpdateContainerInstanceRequest,UpdateContainerInstanceDetails>
- Enclosing class:
- UpdateContainerInstanceRequest
public static class UpdateContainerInstanceRequest.Builder extends Object implements BmcRequest.Builder<UpdateContainerInstanceRequest,UpdateContainerInstanceDetails>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateContainerInstanceRequest.Builderbody$(UpdateContainerInstanceDetails body)Alternative setter for the body parameter.UpdateContainerInstanceRequestbuild()Build the instance of UpdateContainerInstanceRequest as configured by this builderUpdateContainerInstanceRequestbuildWithoutInvocationCallback()Build the instance of UpdateContainerInstanceRequest as configured by this builderUpdateContainerInstanceRequest.BuildercontainerInstanceId(String containerInstanceId)The OCID of the container instance.UpdateContainerInstanceRequest.Buildercopy(UpdateContainerInstanceRequest o)Copy method to populate the builder with values from the given instance.UpdateContainerInstanceRequest.BuilderifMatch(String ifMatch)For optimistic concurrency control.UpdateContainerInstanceRequest.BuilderinvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)Set the invocation callback for the request to be built.UpdateContainerInstanceRequest.BuilderopcRequestId(String opcRequestId)Unique Oracle-assigned identifier for the request.UpdateContainerInstanceRequest.BuilderretryConfiguration(RetryConfiguration retryConfiguration)Set the retry configuration for the request to be built.UpdateContainerInstanceRequest.BuilderupdateContainerInstanceDetails(UpdateContainerInstanceDetails updateContainerInstanceDetails)The information to be updated.
-
-
-
Method Detail
-
containerInstanceId
public UpdateContainerInstanceRequest.Builder containerInstanceId(String containerInstanceId)
The OCID of the container instance.- Parameters:
containerInstanceId- the value to set- Returns:
- this builder instance
-
updateContainerInstanceDetails
public UpdateContainerInstanceRequest.Builder updateContainerInstanceDetails(UpdateContainerInstanceDetails updateContainerInstanceDetails)
The information to be updated.- Parameters:
updateContainerInstanceDetails- the value to set- Returns:
- this builder instance
-
ifMatch
public UpdateContainerInstanceRequest.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 UpdateContainerInstanceRequest.Builder opcRequestId(String opcRequestId)
Unique Oracle-assigned 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 UpdateContainerInstanceRequest.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 UpdateContainerInstanceRequest.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 UpdateContainerInstanceRequest.Builder copy(UpdateContainerInstanceRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copyin interfaceBmcRequest.Builder<UpdateContainerInstanceRequest,UpdateContainerInstanceDetails>- Parameters:
o- other request from which to copy values- Returns:
- this builder instance
-
build
public UpdateContainerInstanceRequest build()
Build the instance of UpdateContainerInstanceRequest 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<UpdateContainerInstanceRequest,UpdateContainerInstanceDetails>- Returns:
- instance of UpdateContainerInstanceRequest
-
body$
public UpdateContainerInstanceRequest.Builder body$(UpdateContainerInstanceDetails body)
Alternative setter for the body parameter.- Specified by:
body$in interfaceBmcRequest.Builder<UpdateContainerInstanceRequest,UpdateContainerInstanceDetails>- Parameters:
body- the body parameter- Returns:
- this builder instance
-
buildWithoutInvocationCallback
public UpdateContainerInstanceRequest buildWithoutInvocationCallback()
Build the instance of UpdateContainerInstanceRequest 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 UpdateContainerInstanceRequest
-
-