Class ScheduleCertificateDeletionRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.certificatesmanagement.requests.ScheduleCertificateDeletionRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<ScheduleCertificateDeletionRequest,ScheduleCertificateDeletionDetails>
- Enclosing class:
- ScheduleCertificateDeletionRequest
public static class ScheduleCertificateDeletionRequest.Builder extends Object implements BmcRequest.Builder<ScheduleCertificateDeletionRequest,ScheduleCertificateDeletionDetails>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScheduleCertificateDeletionRequest.Builderbody$(ScheduleCertificateDeletionDetails body)Alternative setter for the body parameter.ScheduleCertificateDeletionRequestbuild()Build the instance of ScheduleCertificateDeletionRequest as configured by this builderScheduleCertificateDeletionRequestbuildWithoutInvocationCallback()Build the instance of ScheduleCertificateDeletionRequest as configured by this builderScheduleCertificateDeletionRequest.BuildercertificateId(String certificateId)The OCID of the certificate.ScheduleCertificateDeletionRequest.Buildercopy(ScheduleCertificateDeletionRequest o)Copy method to populate the builder with values from the given instance.ScheduleCertificateDeletionRequest.BuilderifMatch(String ifMatch)For optimistic concurrency control.ScheduleCertificateDeletionRequest.BuilderinvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)Set the invocation callback for the request to be built.ScheduleCertificateDeletionRequest.BuilderopcRequestId(String opcRequestId)Unique Oracle-assigned identifier for the request.ScheduleCertificateDeletionRequest.BuilderretryConfiguration(RetryConfiguration retryConfiguration)Set the retry configuration for the request to be built.ScheduleCertificateDeletionRequest.BuilderscheduleCertificateDeletionDetails(ScheduleCertificateDeletionDetails scheduleCertificateDeletionDetails)The details of the request to schedule a certificate deletion.
-
-
-
Method Detail
-
certificateId
public ScheduleCertificateDeletionRequest.Builder certificateId(String certificateId)
The OCID of the certificate.- Parameters:
certificateId- the value to set- Returns:
- this builder instance
-
scheduleCertificateDeletionDetails
public ScheduleCertificateDeletionRequest.Builder scheduleCertificateDeletionDetails(ScheduleCertificateDeletionDetails scheduleCertificateDeletionDetails)
The details of the request to schedule a certificate deletion.This sets the lifecycle state of the certificate to PENDING_DELETION and then deletes it after the specified retention period ends. You can subsequently use GetCertificate to determine the current deletion status.
- Parameters:
scheduleCertificateDeletionDetails- the value to set- Returns:
- this builder instance
-
opcRequestId
public ScheduleCertificateDeletionRequest.Builder opcRequestId(String opcRequestId)
Unique Oracle-assigned identifier for the request.If provided, the returned request ID will include this value. Otherwise, a random request ID will be generated by the service.
- Parameters:
opcRequestId- the value to set- Returns:
- this builder instance
-
ifMatch
public ScheduleCertificateDeletionRequest.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 ScheduleCertificateDeletionRequest.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 ScheduleCertificateDeletionRequest.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 ScheduleCertificateDeletionRequest.Builder copy(ScheduleCertificateDeletionRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copyin interfaceBmcRequest.Builder<ScheduleCertificateDeletionRequest,ScheduleCertificateDeletionDetails>- Parameters:
o- other request from which to copy values- Returns:
- this builder instance
-
build
public ScheduleCertificateDeletionRequest build()
Build the instance of ScheduleCertificateDeletionRequest 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<ScheduleCertificateDeletionRequest,ScheduleCertificateDeletionDetails>- Returns:
- instance of ScheduleCertificateDeletionRequest
-
body$
public ScheduleCertificateDeletionRequest.Builder body$(ScheduleCertificateDeletionDetails body)
Alternative setter for the body parameter.- Specified by:
body$in interfaceBmcRequest.Builder<ScheduleCertificateDeletionRequest,ScheduleCertificateDeletionDetails>- Parameters:
body- the body parameter- Returns:
- this builder instance
-
buildWithoutInvocationCallback
public ScheduleCertificateDeletionRequest buildWithoutInvocationCallback()
Build the instance of ScheduleCertificateDeletionRequest 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 ScheduleCertificateDeletionRequest
-
-