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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ServerCertificate()
Default constructor for ServerCertificate object.ServerCertificate(ServerCertificateMetadata serverCertificateMetadata, String certificateBody)
Constructs a new ServerCertificate object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerCertificate
clone()
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.
-
-
-
Constructor Detail
-
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 Detail
-
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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ServerCertificate clone()
-
-