public class RejectCertificateTransferRequest extends AmazonWebServiceRequest implements java.io.Serializable
Rejects a pending certificate transfer. After AWS IoT rejects a certificate transfer, the certificate status changes from PENDING_TRANSFER to INACTIVE.
To check for pending certificate transfers, call ListCertificates to enumerate your certificates.
This operation can only be called by the transfer destination. After it is called, the certificate will be returned to the source's account in the INACTIVE state.
Constructor and Description |
---|
RejectCertificateTransferRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCertificateId()
The ID of the certificate.
|
java.lang.String |
getRejectReason()
The reason the certificate transfer was rejected.
|
int |
hashCode() |
void |
setCertificateId(java.lang.String certificateId)
The ID of the certificate.
|
void |
setRejectReason(java.lang.String rejectReason)
The reason the certificate transfer was rejected.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RejectCertificateTransferRequest |
withCertificateId(java.lang.String certificateId)
The ID of the certificate.
|
RejectCertificateTransferRequest |
withRejectReason(java.lang.String rejectReason)
The reason the certificate transfer was rejected.
|
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 RejectCertificateTransferRequest 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 getRejectReason()
The reason the certificate transfer was rejected.
Constraints:
Length: - 128
The reason the certificate transfer was rejected.
public void setRejectReason(java.lang.String rejectReason)
The reason the certificate transfer was rejected.
Constraints:
Length: - 128
rejectReason
- The reason the certificate transfer was rejected.
public RejectCertificateTransferRequest withRejectReason(java.lang.String rejectReason)
The reason the certificate transfer was rejected.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: - 128
rejectReason
- The reason the certificate transfer was rejected.
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.