Class UpdateEnrollmentStatusRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.optimizer.requests.UpdateEnrollmentStatusRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<UpdateEnrollmentStatusRequest,UpdateEnrollmentStatusDetails>
- Enclosing class:
- UpdateEnrollmentStatusRequest
public static class UpdateEnrollmentStatusRequest.Builder extends Object implements BmcRequest.Builder<UpdateEnrollmentStatusRequest,UpdateEnrollmentStatusDetails>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateEnrollmentStatusRequest.Builderbody$(UpdateEnrollmentStatusDetails body)Alternative setter for the body parameter.UpdateEnrollmentStatusRequestbuild()Build the instance of UpdateEnrollmentStatusRequest as configured by this builderUpdateEnrollmentStatusRequestbuildWithoutInvocationCallback()Build the instance of UpdateEnrollmentStatusRequest as configured by this builderUpdateEnrollmentStatusRequest.Buildercopy(UpdateEnrollmentStatusRequest o)Copy method to populate the builder with values from the given instance.UpdateEnrollmentStatusRequest.BuilderenrollmentStatusId(String enrollmentStatusId)The unique OCID associated with the enrollment status.UpdateEnrollmentStatusRequest.BuilderifMatch(String ifMatch)For optimistic concurrency control.UpdateEnrollmentStatusRequest.BuilderinvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)Set the invocation callback for the request to be built.UpdateEnrollmentStatusRequest.BuilderopcRequestId(String opcRequestId)Unique Oracle-assigned identifier for the request.UpdateEnrollmentStatusRequest.BuilderretryConfiguration(RetryConfiguration retryConfiguration)Set the retry configuration for the request to be built.UpdateEnrollmentStatusRequest.BuilderupdateEnrollmentStatusDetails(UpdateEnrollmentStatusDetails updateEnrollmentStatusDetails)The request object for updating the enrollment status.
-
-
-
Method Detail
-
enrollmentStatusId
public UpdateEnrollmentStatusRequest.Builder enrollmentStatusId(String enrollmentStatusId)
The unique OCID associated with the enrollment status.- Parameters:
enrollmentStatusId- the value to set- Returns:
- this builder instance
-
updateEnrollmentStatusDetails
public UpdateEnrollmentStatusRequest.Builder updateEnrollmentStatusDetails(UpdateEnrollmentStatusDetails updateEnrollmentStatusDetails)
The request object for updating the enrollment status.- Parameters:
updateEnrollmentStatusDetails- the value to set- Returns:
- this builder instance
-
opcRequestId
public UpdateEnrollmentStatusRequest.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
-
ifMatch
public UpdateEnrollmentStatusRequest.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
-
invocationCallback
public UpdateEnrollmentStatusRequest.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 UpdateEnrollmentStatusRequest.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 UpdateEnrollmentStatusRequest.Builder copy(UpdateEnrollmentStatusRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copyin interfaceBmcRequest.Builder<UpdateEnrollmentStatusRequest,UpdateEnrollmentStatusDetails>- Parameters:
o- other request from which to copy values- Returns:
- this builder instance
-
build
public UpdateEnrollmentStatusRequest build()
Build the instance of UpdateEnrollmentStatusRequest 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<UpdateEnrollmentStatusRequest,UpdateEnrollmentStatusDetails>- Returns:
- instance of UpdateEnrollmentStatusRequest
-
body$
public UpdateEnrollmentStatusRequest.Builder body$(UpdateEnrollmentStatusDetails body)
Alternative setter for the body parameter.- Specified by:
body$in interfaceBmcRequest.Builder<UpdateEnrollmentStatusRequest,UpdateEnrollmentStatusDetails>- Parameters:
body- the body parameter- Returns:
- this builder instance
-
buildWithoutInvocationCallback
public UpdateEnrollmentStatusRequest buildWithoutInvocationCallback()
Build the instance of UpdateEnrollmentStatusRequest 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 UpdateEnrollmentStatusRequest
-
-