com.amazonaws.services.identitymanagement.model
Class ServerCertificate

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

public class ServerCertificate
extends Object

The ServerCertificate data type contains information about a server certificate.

This data type is used as a response element in the action GetServerCertificate.


Constructor Summary
ServerCertificate()
          Default constructor for a new ServerCertificate object.
ServerCertificate(ServerCertificateMetadata serverCertificateMetadata, String certificateBody)
          Constructs a new ServerCertificate object.
 
Method Summary
 boolean equals(Object obj)
           
 String getCertificateBody()
          The contents of the public key certificate.
 String getCertificateChain()
          The contents of the public key certificate chain.
 ServerCertificateMetadata getServerCertificateMetadata()
          The meta information of the server certificate, such as its name, path, ID, and ARN.
 int hashCode()
           
 void setCertificateBody(String certificateBody)
          The contents of the public key certificate.
 void setCertificateChain(String certificateChain)
          The contents of the public key certificate chain.
 void setServerCertificateMetadata(ServerCertificateMetadata serverCertificateMetadata)
          The meta information of the server certificate, such as its name, path, ID, and ARN.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 ServerCertificate withCertificateBody(String certificateBody)
          The contents of the public key certificate.
 ServerCertificate withCertificateChain(String certificateChain)
          The contents of the public key certificate chain.
 ServerCertificate withServerCertificateMetadata(ServerCertificateMetadata serverCertificateMetadata)
          The meta information of the server certificate, such as its name, path, ID, and ARN.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServerCertificate

public ServerCertificate()
Default constructor for a new ServerCertificate object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


ServerCertificate

public ServerCertificate(ServerCertificateMetadata serverCertificateMetadata,
                         String certificateBody)
Constructs a new ServerCertificate object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
serverCertificateMetadata - The meta information of the server certificate, such as its name, path, ID, and ARN.
certificateBody - The contents of the public key certificate.
Method Detail

getServerCertificateMetadata

public ServerCertificateMetadata getServerCertificateMetadata()
The meta information of the server certificate, such as its name, path, ID, and ARN.

Returns:
The meta information of the server certificate, such as its name, path, ID, and ARN.

setServerCertificateMetadata

public void setServerCertificateMetadata(ServerCertificateMetadata serverCertificateMetadata)
The meta information of the server certificate, such as its name, path, ID, and ARN.

Parameters:
serverCertificateMetadata - The meta information of the server certificate, such as its name, path, ID, and ARN.

withServerCertificateMetadata

public ServerCertificate withServerCertificateMetadata(ServerCertificateMetadata serverCertificateMetadata)
The meta information of the server certificate, such as its name, path, ID, and ARN.

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

Parameters:
serverCertificateMetadata - The meta information of the server certificate, such as its name, path, ID, and ARN.
Returns:
A reference to this updated object so that method calls can be chained together.

getCertificateBody

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

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

Returns:
The contents of the public key certificate.

setCertificateBody

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

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

Parameters:
certificateBody - The contents of the public key certificate.

withCertificateBody

public ServerCertificate withCertificateBody(String certificateBody)
The contents of the public key 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 public key certificate.
Returns:
A reference to this updated object so that method calls can be chained together.

getCertificateChain

public String getCertificateChain()
The contents of the public key certificate chain.

Constraints:
Length: 1 - 2097152
Pattern: [ -?]*

Returns:
The contents of the public key certificate chain.

setCertificateChain

public void setCertificateChain(String certificateChain)
The contents of the public key certificate chain.

Constraints:
Length: 1 - 2097152
Pattern: [ -?]*

Parameters:
certificateChain - The contents of the public key certificate chain.

withCertificateChain

public ServerCertificate withCertificateChain(String certificateChain)
The contents of the public key certificate chain.

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

Constraints:
Length: 1 - 2097152
Pattern: [ -?]*

Parameters:
certificateChain - The contents of the public key certificate chain.
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.