public class SigningCertificate extends Object implements Serializable, Cloneable
Contains information about an X.509 signing certificate.
This data type is used as a response element in the UploadSigningCertificate and ListSigningCertificates actions.
Constructor and Description |
---|
SigningCertificate()
Default constructor for a new SigningCertificate object.
|
SigningCertificate(String userName,
String certificateId,
String certificateBody,
StatusType status)
Constructs a new SigningCertificate object.
|
SigningCertificate(String userName,
String certificateId,
String certificateBody,
String status)
Constructs a new SigningCertificate object.
|
Modifier and Type | Method and Description |
---|---|
SigningCertificate |
clone() |
boolean |
equals(Object obj) |
String |
getCertificateBody()
The contents of the signing certificate.
|
String |
getCertificateId()
The ID for the signing certificate.
|
String |
getStatus()
The status of the signing certificate.
|
Date |
getUploadDate()
The date when the signing certificate was uploaded.
|
String |
getUserName()
The name of the user the signing certificate is associated with.
|
int |
hashCode() |
void |
setCertificateBody(String certificateBody)
The contents of the signing certificate.
|
void |
setCertificateId(String certificateId)
The ID for the signing certificate.
|
void |
setStatus(StatusType status)
The status of the signing certificate.
|
void |
setStatus(String status)
The status of the signing certificate.
|
void |
setUploadDate(Date uploadDate)
The date when the signing certificate was uploaded.
|
void |
setUserName(String userName)
The name of the user the signing certificate is associated with.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SigningCertificate |
withCertificateBody(String certificateBody)
The contents of the signing certificate.
|
SigningCertificate |
withCertificateId(String certificateId)
The ID for the signing certificate.
|
SigningCertificate |
withStatus(StatusType status)
The status of the signing certificate.
|
SigningCertificate |
withStatus(String status)
The status of the signing certificate.
|
SigningCertificate |
withUploadDate(Date uploadDate)
The date when the signing certificate was uploaded.
|
SigningCertificate |
withUserName(String userName)
The name of the user the signing certificate is associated with.
|
public SigningCertificate()
public SigningCertificate(String userName, String certificateId, String certificateBody, 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(String userName, String certificateId, 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 String getUserName()
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]+
public void setUserName(String userName)
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]+
userName
- The name of the user the signing certificate is associated with.public SigningCertificate withUserName(String userName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]+
userName
- The name of the user the signing certificate is associated with.public String getCertificateId()
Constraints:
Length: 24 - 128
Pattern: [\w]+
public void setCertificateId(String certificateId)
Constraints:
Length: 24 - 128
Pattern: [\w]+
certificateId
- The ID for the signing certificate.public SigningCertificate withCertificateId(String certificateId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 24 - 128
Pattern: [\w]+
certificateId
- The ID for the signing certificate.public String getCertificateBody()
Constraints:
Length: 1 - 16384
Pattern: [\u0009\u000A\u000D\u0020-\u00FF]+
public void setCertificateBody(String certificateBody)
Constraints:
Length: 1 - 16384
Pattern: [\u0009\u000A\u000D\u0020-\u00FF]+
certificateBody
- The contents of the signing certificate.public SigningCertificate withCertificateBody(String certificateBody)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 16384
Pattern: [\u0009\u000A\u000D\u0020-\u00FF]+
certificateBody
- The contents of the signing certificate.public String getStatus()
Active
means the
key is valid for API calls, while Inactive
means it is
not.
Constraints:
Allowed Values: Active, Inactive
Active
means the
key is valid for API calls, while Inactive
means it is
not.StatusType
public void setStatus(String status)
Active
means the
key is valid for API calls, while Inactive
means it is
not.
Constraints:
Allowed Values: Active, Inactive
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(String status)
Active
means the
key is valid for API calls, while Inactive
means it is
not.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Active, Inactive
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)
Active
means the
key is valid for API calls, while Inactive
means it is
not.
Constraints:
Allowed Values: Active, Inactive
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)
Active
means the
key is valid for API calls, while Inactive
means it is
not.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Active, Inactive
status
- The status of the signing certificate. Active
means the
key is valid for API calls, while Inactive
means it is
not.StatusType
public Date getUploadDate()
public void setUploadDate(Date uploadDate)
uploadDate
- The date when the signing certificate was uploaded.public SigningCertificate withUploadDate(Date uploadDate)
Returns a reference to this object so that method calls can be chained together.
uploadDate
- The date when the signing certificate was uploaded.public String toString()
toString
in class Object
Object.toString()
public SigningCertificate clone()
Copyright © 2015. All rights reserved.