Class ServerCertificate

java.lang.Object
com.amazonaws.services.identitymanagement.model.ServerCertificate
All Implemented Interfaces:
Serializable, Cloneable

public class ServerCertificate extends Object implements Serializable, Cloneable

Contains information about a server certificate.

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

See Also:
  • Constructor Details

    • ServerCertificate

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

    • 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.
    • 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.
    • withServerCertificateMetadata

      public ServerCertificate withServerCertificateMetadata(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.
      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 public key certificate.

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

      public String getCertificateBody()

      The contents of the public key certificate.

      Returns:
      The contents of the public key certificate.
    • withCertificateBody

      public ServerCertificate withCertificateBody(String certificateBody)

      The contents of the public key certificate.

      Parameters:
      certificateBody - The contents of the public key certificate.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setCertificateChain

      public void setCertificateChain(String certificateChain)

      The contents of the public key certificate chain.

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

      public String getCertificateChain()

      The contents of the public key certificate chain.

      Returns:
      The contents of the public key certificate chain.
    • withCertificateChain

      public ServerCertificate withCertificateChain(String certificateChain)

      The contents of the public key certificate chain.

      Parameters:
      certificateChain - The contents of the public key certificate chain.
      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:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public ServerCertificate clone()
      Overrides:
      clone in class Object