Class ChangeDataAssetCompartmentRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.aianomalydetection.requests.ChangeDataAssetCompartmentRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<ChangeDataAssetCompartmentRequest,ChangeDataAssetCompartmentDetails>
- Enclosing class:
- ChangeDataAssetCompartmentRequest
public static class ChangeDataAssetCompartmentRequest.Builder extends Object implements BmcRequest.Builder<ChangeDataAssetCompartmentRequest,ChangeDataAssetCompartmentDetails>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChangeDataAssetCompartmentRequest.Builder
body$(ChangeDataAssetCompartmentDetails body)
Alternative setter for the body parameter.ChangeDataAssetCompartmentRequest
build()
Build the instance of ChangeDataAssetCompartmentRequest as configured by this builderChangeDataAssetCompartmentRequest
buildWithoutInvocationCallback()
Build the instance of ChangeDataAssetCompartmentRequest as configured by this builderChangeDataAssetCompartmentRequest.Builder
changeDataAssetCompartmentDetails(ChangeDataAssetCompartmentDetails changeDataAssetCompartmentDetails)
The information to be updated.ChangeDataAssetCompartmentRequest.Builder
copy(ChangeDataAssetCompartmentRequest o)
Copy method to populate the builder with values from the given instance.ChangeDataAssetCompartmentRequest.Builder
dataAssetId(String dataAssetId)
The OCID of the Data Asset.ChangeDataAssetCompartmentRequest.Builder
ifMatch(String ifMatch)
For optimistic concurrency control.ChangeDataAssetCompartmentRequest.Builder
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.ChangeDataAssetCompartmentRequest.Builder
opcRequestId(String opcRequestId)
The client request ID for tracing.ChangeDataAssetCompartmentRequest.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.ChangeDataAssetCompartmentRequest.Builder
retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.
-
-
-
Method Detail
-
dataAssetId
public ChangeDataAssetCompartmentRequest.Builder dataAssetId(String dataAssetId)
The OCID of the Data Asset.- Parameters:
dataAssetId
- the value to set- Returns:
- this builder instance
-
changeDataAssetCompartmentDetails
public ChangeDataAssetCompartmentRequest.Builder changeDataAssetCompartmentDetails(ChangeDataAssetCompartmentDetails changeDataAssetCompartmentDetails)
The information to be updated.- Parameters:
changeDataAssetCompartmentDetails
- the value to set- Returns:
- this builder instance
-
ifMatch
public ChangeDataAssetCompartmentRequest.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 ChangeDataAssetCompartmentRequest.Builder opcRequestId(String opcRequestId)
The client request ID for tracing.- Parameters:
opcRequestId
- the value to set- Returns:
- this builder instance
-
opcRetryToken
public ChangeDataAssetCompartmentRequest.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 might be rejected.
- Parameters:
opcRetryToken
- the value to set- Returns:
- this builder instance
-
invocationCallback
public ChangeDataAssetCompartmentRequest.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 ChangeDataAssetCompartmentRequest.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 ChangeDataAssetCompartmentRequest.Builder copy(ChangeDataAssetCompartmentRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copy
in interfaceBmcRequest.Builder<ChangeDataAssetCompartmentRequest,ChangeDataAssetCompartmentDetails>
- Parameters:
o
- other request from which to copy values- Returns:
- this builder instance
-
build
public ChangeDataAssetCompartmentRequest build()
Build the instance of ChangeDataAssetCompartmentRequest 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<ChangeDataAssetCompartmentRequest,ChangeDataAssetCompartmentDetails>
- Returns:
- instance of ChangeDataAssetCompartmentRequest
-
body$
public ChangeDataAssetCompartmentRequest.Builder body$(ChangeDataAssetCompartmentDetails body)
Alternative setter for the body parameter.- Specified by:
body$
in interfaceBmcRequest.Builder<ChangeDataAssetCompartmentRequest,ChangeDataAssetCompartmentDetails>
- Parameters:
body
- the body parameter- Returns:
- this builder instance
-
buildWithoutInvocationCallback
public ChangeDataAssetCompartmentRequest buildWithoutInvocationCallback()
Build the instance of ChangeDataAssetCompartmentRequest 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 ChangeDataAssetCompartmentRequest
-
-