com.amazonaws.services.identitymanagement.model
Class SigningCertificate

java.lang.Object
  extended by com.amazonaws.services.identitymanagement.model.SigningCertificate

public class SigningCertificate
extends Object

The SigningCertificate data type contains information about an X.509 signing certificate.

This data type is used as a response element in the actions UploadSigningCertificate and ListSigningCertificates.


Constructor Summary
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.
 
Method Summary
 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()
          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)
          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)
          Name of the user the signing certificate is associated with.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SigningCertificate

public SigningCertificate()
Default constructor for a new SigningCertificate object. Callers should use the setter or fluent setter (with...) methods to initialize this 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 - 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.

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 - 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.
Method Detail

getUserName

public String getUserName()
Name of the user the signing certificate is associated with.

Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]*

Returns:
Name of the user the signing certificate is associated with.

setUserName

public void setUserName(String userName)
Name of the user the signing certificate is associated with.

Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]*

Parameters:
userName - Name of the user the signing certificate is associated with.

withUserName

public SigningCertificate withUserName(String userName)
Name of the user the signing certificate is associated with.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]*

Parameters:
userName - Name of the user the signing certificate is associated with.
Returns:
A reference to this updated object so that method calls can be chained together.

getCertificateId

public String getCertificateId()
The ID for the signing certificate.

Constraints:
Length: 24 - 128
Pattern: [\w]*

Returns:
The ID for the signing certificate.

setCertificateId

public void setCertificateId(String certificateId)
The ID for the signing certificate.

Constraints:
Length: 24 - 128
Pattern: [\w]*

Parameters:
certificateId - The ID for the signing certificate.

withCertificateId

public SigningCertificate withCertificateId(String certificateId)
The ID for the signing certificate.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 24 - 128
Pattern: [\w]*

Parameters:
certificateId - The ID for the signing certificate.
Returns:
A reference to this updated object so that method calls can be chained together.

getCertificateBody

public String getCertificateBody()
The contents of the signing certificate.

Constraints:
Length: 1 - 16384
Pattern: [ -?]+

Returns:
The contents of the signing certificate.

setCertificateBody

public void setCertificateBody(String certificateBody)
The contents of the signing certificate.

Constraints:
Length: 1 - 16384
Pattern: [ -?]+

Parameters:
certificateBody - The contents of the signing certificate.

withCertificateBody

public SigningCertificate withCertificateBody(String certificateBody)
The contents of the signing certificate.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 16384
Pattern: [ -?]+

Parameters:
certificateBody - The contents of the signing certificate.
Returns:
A reference to this updated object so that method calls can be chained together.

getStatus

public String getStatus()
The status of the signing certificate. Active means the key is valid for API calls, while Inactive means it is not.

Constraints:
Allowed Values: Active, Inactive

Returns:
The status of the signing certificate. Active means the key is valid for API calls, while Inactive means it is not.
See Also:
StatusType

setStatus

public void setStatus(String status)
The status of the signing certificate. Active means the key is valid for API calls, while Inactive means it is not.

Constraints:
Allowed Values: Active, Inactive

Parameters:
status - The status of the signing certificate. Active means the key is valid for API calls, while Inactive means it is not.
See Also:
StatusType

withStatus

public SigningCertificate withStatus(String status)
The status of the signing certificate. 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

Parameters:
status - The status of the signing certificate. Active means the key is valid for API calls, while Inactive means it is not.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
StatusType

setStatus

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.

Constraints:
Allowed Values: Active, Inactive

Parameters:
status - The status of the signing certificate. Active means the key is valid for API calls, while Inactive means it is not.
See Also:
StatusType

withStatus

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.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: Active, Inactive

Parameters:
status - The status of the signing certificate. Active means the key is valid for API calls, while Inactive means it is not.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
StatusType

getUploadDate

public Date getUploadDate()
The date when the signing certificate was uploaded.

Returns:
The date when the signing certificate was uploaded.

setUploadDate

public void setUploadDate(Date uploadDate)
The date when the signing certificate was uploaded.

Parameters:
uploadDate - The date when the signing certificate was uploaded.

withUploadDate

public SigningCertificate withUploadDate(Date uploadDate)
The date when the signing certificate was uploaded.

Returns a reference to this object so that method calls can be chained together.

Parameters:
uploadDate - The date when the signing certificate was uploaded.
Returns:
A reference to this updated 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:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.