Package com.oracle.bmc.core.requests
Class AttachInstancePoolInstanceRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.core.requests.AttachInstancePoolInstanceRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<AttachInstancePoolInstanceRequest,AttachInstancePoolInstanceDetails>
- Enclosing class:
- AttachInstancePoolInstanceRequest
public static class AttachInstancePoolInstanceRequest.Builder extends Object implements BmcRequest.Builder<AttachInstancePoolInstanceRequest,AttachInstancePoolInstanceDetails>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttachInstancePoolInstanceRequest.BuilderattachInstancePoolInstanceDetails(AttachInstancePoolInstanceDetails attachInstancePoolInstanceDetails)Attach an instance to a poolAttachInstancePoolInstanceRequest.Builderbody$(AttachInstancePoolInstanceDetails body)Alternative setter for the body parameter.AttachInstancePoolInstanceRequestbuild()Build the instance of AttachInstancePoolInstanceRequest as configured by this builderAttachInstancePoolInstanceRequestbuildWithoutInvocationCallback()Build the instance of AttachInstancePoolInstanceRequest as configured by this builderAttachInstancePoolInstanceRequest.Buildercopy(AttachInstancePoolInstanceRequest o)Copy method to populate the builder with values from the given instance.AttachInstancePoolInstanceRequest.BuilderinstancePoolId(String instancePoolId)The OCID of the instance pool.AttachInstancePoolInstanceRequest.BuilderinvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)Set the invocation callback for the request to be built.AttachInstancePoolInstanceRequest.BuilderopcRetryToken(String opcRetryToken)A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again.AttachInstancePoolInstanceRequest.BuilderretryConfiguration(RetryConfiguration retryConfiguration)Set the retry configuration for the request to be built.
-
-
-
Method Detail
-
instancePoolId
public AttachInstancePoolInstanceRequest.Builder instancePoolId(String instancePoolId)
The OCID of the instance pool.- Parameters:
instancePoolId- the value to set- Returns:
- this builder instance
-
attachInstancePoolInstanceDetails
public AttachInstancePoolInstanceRequest.Builder attachInstancePoolInstanceDetails(AttachInstancePoolInstanceDetails attachInstancePoolInstanceDetails)
Attach an instance to a pool- Parameters:
attachInstancePoolInstanceDetails- the value to set- Returns:
- this builder instance
-
opcRetryToken
public AttachInstancePoolInstanceRequest.Builder opcRetryToken(String opcRetryToken)
A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again.Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (for example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected).
- Parameters:
opcRetryToken- the value to set- Returns:
- this builder instance
-
invocationCallback
public AttachInstancePoolInstanceRequest.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 AttachInstancePoolInstanceRequest.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 AttachInstancePoolInstanceRequest.Builder copy(AttachInstancePoolInstanceRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copyin interfaceBmcRequest.Builder<AttachInstancePoolInstanceRequest,AttachInstancePoolInstanceDetails>- Parameters:
o- other request from which to copy values- Returns:
- this builder instance
-
build
public AttachInstancePoolInstanceRequest build()
Build the instance of AttachInstancePoolInstanceRequest 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<AttachInstancePoolInstanceRequest,AttachInstancePoolInstanceDetails>- Returns:
- instance of AttachInstancePoolInstanceRequest
-
body$
public AttachInstancePoolInstanceRequest.Builder body$(AttachInstancePoolInstanceDetails body)
Alternative setter for the body parameter.- Specified by:
body$in interfaceBmcRequest.Builder<AttachInstancePoolInstanceRequest,AttachInstancePoolInstanceDetails>- Parameters:
body- the body parameter- Returns:
- this builder instance
-
buildWithoutInvocationCallback
public AttachInstancePoolInstanceRequest buildWithoutInvocationCallback()
Build the instance of AttachInstancePoolInstanceRequest 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 AttachInstancePoolInstanceRequest
-
-