public class SigningCertificate
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains information about an X.509 signing certificate.
This data type is used as a response element in the UploadSigningCertificate and ListSigningCertificates actions.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
certificateBody
The contents of the signing certificate.
|
private java.lang.String |
certificateId
The ID for the signing certificate.
|
private java.lang.String |
status
The status of the signing certificate.
|
private java.util.Date |
uploadDate
The date when the signing certificate was uploaded.
|
private java.lang.String |
userName
The name of the user the signing certificate is associated with.
|
Constructor and Description |
---|
SigningCertificate()
Default constructor for SigningCertificate object.
|
SigningCertificate(java.lang.String userName,
java.lang.String certificateId,
java.lang.String certificateBody,
StatusType status)
Constructs a new SigningCertificate object.
|
SigningCertificate(java.lang.String userName,
java.lang.String certificateId,
java.lang.String certificateBody,
java.lang.String status)
Constructs a new SigningCertificate object.
|
Modifier and Type | Method and Description |
---|---|
SigningCertificate |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCertificateBody()
The contents of the signing certificate.
|
java.lang.String |
getCertificateId()
The ID for the signing certificate.
|
java.lang.String |
getStatus()
The status of the signing certificate.
|
java.util.Date |
getUploadDate()
The date when the signing certificate was uploaded.
|
java.lang.String |
getUserName()
The name of the user the signing certificate is associated with.
|
int |
hashCode() |
void |
setCertificateBody(java.lang.String certificateBody)
The contents of the signing certificate.
|
void |
setCertificateId(java.lang.String certificateId)
The ID for the signing certificate.
|
void |
setStatus(StatusType status)
The status of the signing certificate.
|
void |
setStatus(java.lang.String status)
The status of the signing certificate.
|
void |
setUploadDate(java.util.Date uploadDate)
The date when the signing certificate was uploaded.
|
void |
setUserName(java.lang.String userName)
The name of the user the signing certificate is associated with.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SigningCertificate |
withCertificateBody(java.lang.String certificateBody)
The contents of the signing certificate.
|
SigningCertificate |
withCertificateId(java.lang.String certificateId)
The ID for the signing certificate.
|
SigningCertificate |
withStatus(StatusType status)
The status of the signing certificate.
|
SigningCertificate |
withStatus(java.lang.String status)
The status of the signing certificate.
|
SigningCertificate |
withUploadDate(java.util.Date uploadDate)
The date when the signing certificate was uploaded.
|
SigningCertificate |
withUserName(java.lang.String userName)
The name of the user the signing certificate is associated with.
|
private java.lang.String userName
The name of the user the signing certificate is associated with.
private java.lang.String certificateId
The ID for the signing certificate.
private java.lang.String certificateBody
The contents of the signing certificate.
private java.lang.String status
The status of the signing certificate. Active
means the key
is valid for API calls, while Inactive
means it is not.
private java.util.Date uploadDate
The date when the signing certificate was uploaded.
public SigningCertificate()
public SigningCertificate(java.lang.String userName, java.lang.String certificateId, java.lang.String certificateBody, java.lang.String status)
userName
- The name of the user the signing certificate is associated with.certificateId
- The ID for the signing certificate.certificateBody
- The contents of the signing certificate.status
- The status of the signing certificate. Active
means
the key is valid for API calls, while Inactive
means
it is not.public SigningCertificate(java.lang.String userName, java.lang.String certificateId, java.lang.String certificateBody, StatusType status)
userName
- The name of the user the signing certificate is associated with.certificateId
- The ID for the signing certificate.certificateBody
- The contents of the signing certificate.status
- The status of the signing certificate. Active
means
the key is valid for API calls, while Inactive
means
it is not.public void setUserName(java.lang.String userName)
The name of the user the signing certificate is associated with.
userName
- The name of the user the signing certificate is associated with.public java.lang.String getUserName()
The name of the user the signing certificate is associated with.
public SigningCertificate withUserName(java.lang.String userName)
The name of the user the signing certificate is associated with.
userName
- The name of the user the signing certificate is associated with.public void setCertificateId(java.lang.String certificateId)
The ID for the signing certificate.
certificateId
- The ID for the signing certificate.public java.lang.String getCertificateId()
The ID for the signing certificate.
public SigningCertificate withCertificateId(java.lang.String certificateId)
The ID for the signing certificate.
certificateId
- The ID for the signing certificate.public void setCertificateBody(java.lang.String certificateBody)
The contents of the signing certificate.
certificateBody
- The contents of the signing certificate.public java.lang.String getCertificateBody()
The contents of the signing certificate.
public SigningCertificate withCertificateBody(java.lang.String certificateBody)
The contents of the signing certificate.
certificateBody
- The contents of the signing certificate.public void setStatus(java.lang.String status)
The status of the signing certificate. Active
means the key
is valid for API calls, while Inactive
means it is not.
status
- The status of the signing certificate. Active
means
the key is valid for API calls, while Inactive
means
it is not.StatusType
public java.lang.String getStatus()
The status of the signing certificate. Active
means the key
is valid for API calls, while Inactive
means it is not.
Active
means
the key is valid for API calls, while Inactive
means
it is not.StatusType
public SigningCertificate withStatus(java.lang.String status)
The status of the signing certificate. Active
means the key
is valid for API calls, while Inactive
means it is not.
status
- The status of the signing certificate. Active
means
the key is valid for API calls, while Inactive
means
it is not.StatusType
public void setStatus(StatusType status)
The status of the signing certificate. Active
means the key
is valid for API calls, while Inactive
means it is not.
status
- The status of the signing certificate. Active
means
the key is valid for API calls, while Inactive
means
it is not.StatusType
public SigningCertificate withStatus(StatusType status)
The status of the signing certificate. Active
means the key
is valid for API calls, while Inactive
means it is not.
status
- The status of the signing certificate. Active
means
the key is valid for API calls, while Inactive
means
it is not.StatusType
public void setUploadDate(java.util.Date uploadDate)
The date when the signing certificate was uploaded.
uploadDate
- The date when the signing certificate was uploaded.public java.util.Date getUploadDate()
The date when the signing certificate was uploaded.
public SigningCertificate withUploadDate(java.util.Date uploadDate)
The date when the signing certificate was uploaded.
uploadDate
- The date when the signing certificate was uploaded.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public SigningCertificate clone()
clone
in class java.lang.Object