public class UpdateCertificateRequest extends AmazonWebServiceRequest implements java.io.Serializable
Updates the status of the specified certificate. This operation is idempotent.
Certificates must be in the ACTIVE state to authenticate devices that use a certificate to connect to AWS IoT.
Within a few minutes of updating a certificate from the ACTIVE state to any other state, AWS IoT disconnects all devices that used that certificate to connect. Devices cannot use a certificate that is not in the ACTIVE state to reconnect.
Constructor and Description |
---|
UpdateCertificateRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCertificateId()
The ID of the certificate.
|
java.lang.String |
getNewStatus()
The new status.
|
int |
hashCode() |
void |
setCertificateId(java.lang.String certificateId)
The ID of the certificate.
|
void |
setNewStatus(CertificateStatus newStatus)
The new status.
|
void |
setNewStatus(java.lang.String newStatus)
The new status.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UpdateCertificateRequest |
withCertificateId(java.lang.String certificateId)
The ID of the certificate.
|
UpdateCertificateRequest |
withNewStatus(CertificateStatus newStatus)
The new status.
|
UpdateCertificateRequest |
withNewStatus(java.lang.String newStatus)
The new status.
|
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 UpdateCertificateRequest 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.String getNewStatus()
The new status.
Note: Setting the status to PENDING_TRANSFER or PENDING_ACTIVATION will result in an exception being thrown. PENDING_TRANSFER and PENDING_ACTIVATION are statuses used internally by AWS IoT. They are not intended for developer use.
Note: The status value REGISTER_INACTIVE is deprecated and should not be used.
Constraints:
Allowed Values: ACTIVE, INACTIVE, REVOKED, PENDING_TRANSFER,
REGISTER_INACTIVE, PENDING_ACTIVATION
The new status.
Note: Setting the status to PENDING_TRANSFER or PENDING_ACTIVATION will result in an exception being thrown. PENDING_TRANSFER and PENDING_ACTIVATION are statuses used internally by AWS IoT. They are not intended for developer use.
Note: The status value REGISTER_INACTIVE is deprecated and should not be used.
CertificateStatus
public void setNewStatus(java.lang.String newStatus)
The new status.
Note: Setting the status to PENDING_TRANSFER or PENDING_ACTIVATION will result in an exception being thrown. PENDING_TRANSFER and PENDING_ACTIVATION are statuses used internally by AWS IoT. They are not intended for developer use.
Note: The status value REGISTER_INACTIVE is deprecated and should not be used.
Constraints:
Allowed Values: ACTIVE, INACTIVE, REVOKED, PENDING_TRANSFER,
REGISTER_INACTIVE, PENDING_ACTIVATION
newStatus
- The new status.
Note: Setting the status to PENDING_TRANSFER or PENDING_ACTIVATION will result in an exception being thrown. PENDING_TRANSFER and PENDING_ACTIVATION are statuses used internally by AWS IoT. They are not intended for developer use.
Note: The status value REGISTER_INACTIVE is deprecated and should not be used.
CertificateStatus
public UpdateCertificateRequest withNewStatus(java.lang.String newStatus)
The new status.
Note: Setting the status to PENDING_TRANSFER or PENDING_ACTIVATION will result in an exception being thrown. PENDING_TRANSFER and PENDING_ACTIVATION are statuses used internally by AWS IoT. They are not intended for developer use.
Note: The status value REGISTER_INACTIVE is deprecated and should not be used.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ACTIVE, INACTIVE, REVOKED, PENDING_TRANSFER,
REGISTER_INACTIVE, PENDING_ACTIVATION
newStatus
- The new status.
Note: Setting the status to PENDING_TRANSFER or PENDING_ACTIVATION will result in an exception being thrown. PENDING_TRANSFER and PENDING_ACTIVATION are statuses used internally by AWS IoT. They are not intended for developer use.
Note: The status value REGISTER_INACTIVE is deprecated and should not be used.
CertificateStatus
public void setNewStatus(CertificateStatus newStatus)
The new status.
Note: Setting the status to PENDING_TRANSFER or PENDING_ACTIVATION will result in an exception being thrown. PENDING_TRANSFER and PENDING_ACTIVATION are statuses used internally by AWS IoT. They are not intended for developer use.
Note: The status value REGISTER_INACTIVE is deprecated and should not be used.
Constraints:
Allowed Values: ACTIVE, INACTIVE, REVOKED, PENDING_TRANSFER,
REGISTER_INACTIVE, PENDING_ACTIVATION
newStatus
- The new status.
Note: Setting the status to PENDING_TRANSFER or PENDING_ACTIVATION will result in an exception being thrown. PENDING_TRANSFER and PENDING_ACTIVATION are statuses used internally by AWS IoT. They are not intended for developer use.
Note: The status value REGISTER_INACTIVE is deprecated and should not be used.
CertificateStatus
public UpdateCertificateRequest withNewStatus(CertificateStatus newStatus)
The new status.
Note: Setting the status to PENDING_TRANSFER or PENDING_ACTIVATION will result in an exception being thrown. PENDING_TRANSFER and PENDING_ACTIVATION are statuses used internally by AWS IoT. They are not intended for developer use.
Note: The status value REGISTER_INACTIVE is deprecated and should not be used.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ACTIVE, INACTIVE, REVOKED, PENDING_TRANSFER,
REGISTER_INACTIVE, PENDING_ACTIVATION
newStatus
- The new status.
Note: Setting the status to PENDING_TRANSFER or PENDING_ACTIVATION will result in an exception being thrown. PENDING_TRANSFER and PENDING_ACTIVATION are statuses used internally by AWS IoT. They are not intended for developer use.
Note: The status value REGISTER_INACTIVE is deprecated and should not be used.
CertificateStatus
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.