Class UpdateModelDeploymentRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.datascience.requests.UpdateModelDeploymentRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<UpdateModelDeploymentRequest,UpdateModelDeploymentDetails>
- Enclosing class:
- UpdateModelDeploymentRequest
public static class UpdateModelDeploymentRequest.Builder extends Object implements BmcRequest.Builder<UpdateModelDeploymentRequest,UpdateModelDeploymentDetails>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateModelDeploymentRequest.Builderbody$(UpdateModelDeploymentDetails body)Alternative setter for the body parameter.UpdateModelDeploymentRequestbuild()Build the instance of UpdateModelDeploymentRequest as configured by this builderUpdateModelDeploymentRequestbuildWithoutInvocationCallback()Build the instance of UpdateModelDeploymentRequest as configured by this builderUpdateModelDeploymentRequest.Buildercopy(UpdateModelDeploymentRequest o)Copy method to populate the builder with values from the given instance.UpdateModelDeploymentRequest.BuilderifMatch(String ifMatch)For optimistic concurrency control.UpdateModelDeploymentRequest.BuilderinvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)Set the invocation callback for the request to be built.UpdateModelDeploymentRequest.BuildermodelDeploymentId(String modelDeploymentId)The OCID of the model deployment.UpdateModelDeploymentRequest.BuilderopcRequestId(String opcRequestId)Unique Oracle assigned identifier for the request.UpdateModelDeploymentRequest.BuilderretryConfiguration(RetryConfiguration retryConfiguration)Set the retry configuration for the request to be built.UpdateModelDeploymentRequest.BuilderupdateModelDeploymentDetails(UpdateModelDeploymentDetails updateModelDeploymentDetails)Details for updating a model deployment.
-
-
-
Method Detail
-
modelDeploymentId
public UpdateModelDeploymentRequest.Builder modelDeploymentId(String modelDeploymentId)
The OCID of the model deployment.- Parameters:
modelDeploymentId- the value to set- Returns:
- this builder instance
-
updateModelDeploymentDetails
public UpdateModelDeploymentRequest.Builder updateModelDeploymentDetails(UpdateModelDeploymentDetails updateModelDeploymentDetails)
Details for updating a model deployment.Some of the properties of modelDeploymentConfigurationDetails or CategoryLogDetails can also be updated with zero down time when the model deployment’s lifecycle state is ACTIVE or NEEDS_ATTENTION i.e instanceShapeName, instanceCount and modelId, separately loadBalancerShape or CategoryLogDetails can also be updated independently. All of the fields can be updated when the deployment is in the INACTIVE lifecycle state. Changes will take effect the next time the model deployment is activated.
- Parameters:
updateModelDeploymentDetails- the value to set- Returns:
- this builder instance
-
ifMatch
public UpdateModelDeploymentRequest.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 is 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 UpdateModelDeploymentRequest.Builder opcRequestId(String opcRequestId)
Unique Oracle assigned identifier for the request.If you need to contact Oracle about a particular request, then provide the request ID.
- Parameters:
opcRequestId- the value to set- Returns:
- this builder instance
-
invocationCallback
public UpdateModelDeploymentRequest.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 UpdateModelDeploymentRequest.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 UpdateModelDeploymentRequest.Builder copy(UpdateModelDeploymentRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copyin interfaceBmcRequest.Builder<UpdateModelDeploymentRequest,UpdateModelDeploymentDetails>- Parameters:
o- other request from which to copy values- Returns:
- this builder instance
-
build
public UpdateModelDeploymentRequest build()
Build the instance of UpdateModelDeploymentRequest 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<UpdateModelDeploymentRequest,UpdateModelDeploymentDetails>- Returns:
- instance of UpdateModelDeploymentRequest
-
body$
public UpdateModelDeploymentRequest.Builder body$(UpdateModelDeploymentDetails body)
Alternative setter for the body parameter.- Specified by:
body$in interfaceBmcRequest.Builder<UpdateModelDeploymentRequest,UpdateModelDeploymentDetails>- Parameters:
body- the body parameter- Returns:
- this builder instance
-
buildWithoutInvocationCallback
public UpdateModelDeploymentRequest buildWithoutInvocationCallback()
Build the instance of UpdateModelDeploymentRequest 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 UpdateModelDeploymentRequest
-
-