public class DeleteCertificateRequest extends AmazonWebServiceRequest implements java.io.Serializable
Deletes the specified certificate.
A certificate cannot be deleted if it has a policy or IoT thing 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(java.lang.Object obj) |
java.lang.String |
getCertificateId()
The ID of the certificate.
|
java.lang.Boolean |
getForceDelete()
Forces the deletion of a certificate if it is inactive and is not
attached to an IoT thing.
|
int |
hashCode() |
java.lang.Boolean |
isForceDelete()
Forces the deletion of a certificate if it is inactive and is not
attached to an IoT thing.
|
void |
setCertificateId(java.lang.String certificateId)
The ID of the certificate.
|
void |
setForceDelete(java.lang.Boolean forceDelete)
Forces the deletion of a certificate if it is inactive and is not
attached to an IoT thing.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DeleteCertificateRequest |
withCertificateId(java.lang.String certificateId)
The ID of the certificate.
|
DeleteCertificateRequest |
withForceDelete(java.lang.Boolean forceDelete)
Forces the deletion of a certificate if it is inactive and is not
attached to an IoT thing.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.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(java.lang.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(java.lang.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 java.lang.Boolean isForceDelete()
Forces the deletion of a certificate if it is inactive and is not attached to an IoT thing.
Forces the deletion of a certificate if it is inactive and is not attached to an IoT thing.
public java.lang.Boolean getForceDelete()
Forces the deletion of a certificate if it is inactive and is not attached to an IoT thing.
Forces the deletion of a certificate if it is inactive and is not attached to an IoT thing.
public void setForceDelete(java.lang.Boolean forceDelete)
Forces the deletion of a certificate if it is inactive and is not attached to an IoT thing.
forceDelete
- Forces the deletion of a certificate if it is inactive and is not attached to an IoT thing.
public DeleteCertificateRequest withForceDelete(java.lang.Boolean forceDelete)
Forces the deletion of a certificate if it is inactive and is not attached to an IoT thing.
Returns a reference to this object so that method calls can be chained together.
forceDelete
- Forces the deletion of a certificate if it is inactive and is not attached to an IoT thing.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.