Class SigningCertificate
- java.lang.Object
-
- com.amazonaws.services.identitymanagement.model.SigningCertificate
-
- All Implemented Interfaces:
Serializable,Cloneable
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.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SigningCertificate()Default constructor for 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SigningCertificateclone()booleanequals(Object obj)StringgetCertificateBody()The contents of the signing certificate.StringgetCertificateId()The ID for the signing certificate.StringgetStatus()The status of the signing certificate.DategetUploadDate()The date when the signing certificate was uploaded.StringgetUserName()The name of the user the signing certificate is associated with.inthashCode()voidsetCertificateBody(String certificateBody)The contents of the signing certificate.voidsetCertificateId(String certificateId)The ID for the signing certificate.voidsetStatus(StatusType status)The status of the signing certificate.voidsetStatus(String status)The status of the signing certificate.voidsetUploadDate(Date uploadDate)The date when the signing certificate was uploaded.voidsetUserName(String userName)The name of the user the signing certificate is associated with.StringtoString()Returns a string representation of this object; useful for testing and debugging.SigningCertificatewithCertificateBody(String certificateBody)The contents of the signing certificate.SigningCertificatewithCertificateId(String certificateId)The ID for the signing certificate.SigningCertificatewithStatus(StatusType status)The status of the signing certificate.SigningCertificatewithStatus(String status)The status of the signing certificate.SigningCertificatewithUploadDate(Date uploadDate)The date when the signing certificate was uploaded.SigningCertificatewithUserName(String userName)The name of the user the signing certificate is associated with.
-
-
-
Constructor Detail
-
SigningCertificate
public SigningCertificate()
Default constructor for SigningCertificate object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
-
SigningCertificate
public SigningCertificate(String userName, String certificateId, String certificateBody, String status)
Constructs a new SigningCertificate object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
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.Activemeans the key is valid for API calls, whileInactivemeans it is not.
-
SigningCertificate
public SigningCertificate(String userName, String certificateId, String certificateBody, StatusType status)
Constructs a new SigningCertificate object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
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.Activemeans the key is valid for API calls, whileInactivemeans it is not.
-
-
Method Detail
-
setUserName
public void setUserName(String userName)
The name of the user the signing certificate is associated with.
- Parameters:
userName- The name of the user the signing certificate is associated with.
-
getUserName
public String getUserName()
The name of the user the signing certificate is associated with.
- Returns:
- The name of the user the signing certificate is associated with.
-
withUserName
public SigningCertificate withUserName(String userName)
The name of the user the signing certificate is associated with.
- Parameters:
userName- The name of the user the signing certificate is associated with.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCertificateId
public void setCertificateId(String certificateId)
The ID for the signing certificate.
- Parameters:
certificateId- The ID for the signing certificate.
-
getCertificateId
public String getCertificateId()
The ID for the signing certificate.
- Returns:
- The ID for the signing certificate.
-
withCertificateId
public SigningCertificate withCertificateId(String certificateId)
The ID for the signing certificate.
- Parameters:
certificateId- The ID for the signing certificate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCertificateBody
public void setCertificateBody(String certificateBody)
The contents of the signing certificate.
- Parameters:
certificateBody- The contents of the signing certificate.
-
getCertificateBody
public String getCertificateBody()
The contents of the signing certificate.
- Returns:
- The contents of the signing certificate.
-
withCertificateBody
public SigningCertificate withCertificateBody(String certificateBody)
The contents of the signing certificate.
- Parameters:
certificateBody- The contents of the signing certificate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStatus
public void setStatus(String status)
The status of the signing certificate.
Activemeans the key is valid for API calls, whileInactivemeans it is not.- Parameters:
status- The status of the signing certificate.Activemeans the key is valid for API calls, whileInactivemeans it is not.- See Also:
StatusType
-
getStatus
public String getStatus()
The status of the signing certificate.
Activemeans the key is valid for API calls, whileInactivemeans it is not.- Returns:
- The status of the signing certificate.
Activemeans the key is valid for API calls, whileInactivemeans it is not. - See Also:
StatusType
-
withStatus
public SigningCertificate withStatus(String status)
The status of the signing certificate.
Activemeans the key is valid for API calls, whileInactivemeans it is not.- Parameters:
status- The status of the signing certificate.Activemeans the key is valid for API calls, whileInactivemeans it is not.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
StatusType
-
setStatus
public void setStatus(StatusType status)
The status of the signing certificate.
Activemeans the key is valid for API calls, whileInactivemeans it is not.- Parameters:
status- The status of the signing certificate.Activemeans the key is valid for API calls, whileInactivemeans it is not.- See Also:
StatusType
-
withStatus
public SigningCertificate withStatus(StatusType status)
The status of the signing certificate.
Activemeans the key is valid for API calls, whileInactivemeans it is not.- Parameters:
status- The status of the signing certificate.Activemeans the key is valid for API calls, whileInactivemeans it is not.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
StatusType
-
setUploadDate
public void setUploadDate(Date uploadDate)
The date when the signing certificate was uploaded.
- Parameters:
uploadDate- The date when the signing certificate was uploaded.
-
getUploadDate
public Date getUploadDate()
The date when the signing certificate was uploaded.
- Returns:
- The date when the signing certificate was uploaded.
-
withUploadDate
public SigningCertificate withUploadDate(Date uploadDate)
The date when the signing certificate was uploaded.
- Parameters:
uploadDate- The date when the signing certificate was uploaded.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SigningCertificate clone()
-
-