public class RegisterCertificateRequest extends AmazonWebServiceRequest implements Serializable
Registers a device certificate with AWS IoT. If you have more than one CA certificate that has the same subject field, you must specify the CA certificate that was used to sign the device certificate being registered.
| Constructor and Description |
|---|
RegisterCertificateRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getCaCertificatePem()
The CA certificate used to sign the device certificate being registered.
|
String |
getCertificatePem()
The certificate data, in PEM format.
|
Boolean |
getSetAsActive()
A boolean value that specifies if the CA certificate is set to active.
|
String |
getStatus()
Returns the value of the status property for this object.
|
int |
hashCode() |
Boolean |
isSetAsActive()
A boolean value that specifies if the CA certificate is set to active.
|
void |
setCaCertificatePem(String caCertificatePem)
The CA certificate used to sign the device certificate being registered.
|
void |
setCertificatePem(String certificatePem)
The certificate data, in PEM format.
|
void |
setSetAsActive(Boolean setAsActive)
A boolean value that specifies if the CA certificate is set to active.
|
void |
setStatus(CertificateStatus status)
Sets the value of status
|
void |
setStatus(String status)
Sets the value of status
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RegisterCertificateRequest |
withCaCertificatePem(String caCertificatePem)
The CA certificate used to sign the device certificate being registered.
|
RegisterCertificateRequest |
withCertificatePem(String certificatePem)
The certificate data, in PEM format.
|
RegisterCertificateRequest |
withSetAsActive(Boolean setAsActive)
A boolean value that specifies if the CA certificate is set to active.
|
RegisterCertificateRequest |
withStatus(CertificateStatus status)
Sets the value of the status property for this object.
|
RegisterCertificateRequest |
withStatus(String status)
Sets the value of the status property for this object.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic String getCertificatePem()
The certificate data, in PEM format.
Constraints:
Length: 1 - 65536
The certificate data, in PEM format.
public void setCertificatePem(String certificatePem)
The certificate data, in PEM format.
Constraints:
Length: 1 - 65536
certificatePem - The certificate data, in PEM format.
public RegisterCertificateRequest withCertificatePem(String certificatePem)
The certificate data, in PEM format.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 65536
certificatePem - The certificate data, in PEM format.
public String getCaCertificatePem()
The CA certificate used to sign the device certificate being registered.
Constraints:
Length: 1 - 65536
The CA certificate used to sign the device certificate being registered.
public void setCaCertificatePem(String caCertificatePem)
The CA certificate used to sign the device certificate being registered.
Constraints:
Length: 1 - 65536
caCertificatePem - The CA certificate used to sign the device certificate being registered.
public RegisterCertificateRequest withCaCertificatePem(String caCertificatePem)
The CA certificate used to sign the device certificate being registered.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 65536
caCertificatePem - The CA certificate used to sign the device certificate being registered.
public Boolean isSetAsActive()
A boolean value that specifies if the CA certificate is set to active.
A boolean value that specifies if the CA certificate is set to active.
public Boolean getSetAsActive()
A boolean value that specifies if the CA certificate is set to active.
A boolean value that specifies if the CA certificate is set to active.
public void setSetAsActive(Boolean setAsActive)
A boolean value that specifies if the CA certificate is set to active.
setAsActive - A boolean value that specifies if the CA certificate is set to active.
public RegisterCertificateRequest withSetAsActive(Boolean setAsActive)
A boolean value that specifies if the CA certificate is set to active.
Returns a reference to this object so that method calls can be chained together.
setAsActive - A boolean value that specifies if the CA certificate is set to active.
public String getStatus()
Constraints:
Allowed Values: ACTIVE, INACTIVE, REVOKED, PENDING_TRANSFER,
REGISTER_INACTIVE, PENDING_ACTIVATION
CertificateStatuspublic void setStatus(String status)
Constraints:
Allowed Values: ACTIVE, INACTIVE, REVOKED, PENDING_TRANSFER,
REGISTER_INACTIVE, PENDING_ACTIVATION
status - The new value for the status property for this object.CertificateStatuspublic RegisterCertificateRequest withStatus(String status)
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
status - The new value for the status property for this object.CertificateStatuspublic void setStatus(CertificateStatus status)
Constraints:
Allowed Values: ACTIVE, INACTIVE, REVOKED, PENDING_TRANSFER,
REGISTER_INACTIVE, PENDING_ACTIVATION
status - The new value for the status property for this object.CertificateStatuspublic RegisterCertificateRequest withStatus(CertificateStatus status)
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
status - The new value for the status property for this object.CertificateStatuspublic String toString()
toString in class ObjectObject.toString()Copyright © 2017. All rights reserved.