public class DeleteCertificateRequest extends AmazonWebServiceRequest implements Serializable
Deletes the specified certificate.
A certificate cannot be deleted if it has a policy attached to it or if its status is set to ACTIVE. To delete a certificate, first use the DetachPrincipalPolicy API to detach all policies. Next, use the UpdateCertificate API to set the certificate to the INACTIVE status.
| Constructor and Description |
|---|
DeleteCertificateRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getCertificateId()
The ID of the certificate.
|
Boolean |
getForceDelete()
Forces a certificate request to be deleted.
|
int |
hashCode() |
Boolean |
isForceDelete()
Forces a certificate request to be deleted.
|
void |
setCertificateId(String certificateId)
The ID of the certificate.
|
void |
setForceDelete(Boolean forceDelete)
Forces a certificate request to be deleted.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DeleteCertificateRequest |
withCertificateId(String certificateId)
The ID of the certificate.
|
DeleteCertificateRequest |
withForceDelete(Boolean forceDelete)
Forces a certificate request to be deleted.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic String getCertificateId()
The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)
Constraints:
Length: 64 - 64
Pattern: (0x)?[a-fA-F0-9]+
The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)
public void setCertificateId(String certificateId)
The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)
Constraints:
Length: 64 - 64
Pattern: (0x)?[a-fA-F0-9]+
certificateId - The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)
public DeleteCertificateRequest withCertificateId(String certificateId)
The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 64 - 64
Pattern: (0x)?[a-fA-F0-9]+
certificateId - The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)
public Boolean isForceDelete()
Forces a certificate request to be deleted.
Forces a certificate request to be deleted.
public Boolean getForceDelete()
Forces a certificate request to be deleted.
Forces a certificate request to be deleted.
public void setForceDelete(Boolean forceDelete)
Forces a certificate request to be deleted.
forceDelete - Forces a certificate request to be deleted.
public DeleteCertificateRequest withForceDelete(Boolean forceDelete)
Forces a certificate request to be deleted.
Returns a reference to this object so that method calls can be chained together.
forceDelete - Forces a certificate request to be deleted.
public String toString()
toString in class ObjectObject.toString()Copyright © 2018. All rights reserved.