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