public class ServerCertificate
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains information about a server certificate.
This data type is used as a response element in the GetServerCertificate action.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
certificateBody
The contents of the public key certificate.
|
private java.lang.String |
certificateChain
The contents of the public key certificate chain.
|
private ServerCertificateMetadata |
serverCertificateMetadata
The meta information of the server certificate, such as its name, path,
ID, and ARN.
|
Constructor and Description |
---|
ServerCertificate()
Default constructor for ServerCertificate object.
|
ServerCertificate(ServerCertificateMetadata serverCertificateMetadata,
java.lang.String certificateBody)
Constructs a new ServerCertificate object.
|
Modifier and Type | Method and Description |
---|---|
ServerCertificate |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCertificateBody()
The contents of the public key certificate.
|
java.lang.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(java.lang.String certificateBody)
The contents of the public key certificate.
|
void |
setCertificateChain(java.lang.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.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ServerCertificate |
withCertificateBody(java.lang.String certificateBody)
The contents of the public key certificate.
|
ServerCertificate |
withCertificateChain(java.lang.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.
|
private ServerCertificateMetadata serverCertificateMetadata
The meta information of the server certificate, such as its name, path, ID, and ARN.
private java.lang.String certificateBody
The contents of the public key certificate.
private java.lang.String certificateChain
The contents of the public key certificate chain.
public ServerCertificate()
public ServerCertificate(ServerCertificateMetadata serverCertificateMetadata, java.lang.String certificateBody)
serverCertificateMetadata
- The meta information of the server certificate, such as its name,
path, ID, and ARN.certificateBody
- The contents of the public key certificate.public void setServerCertificateMetadata(ServerCertificateMetadata serverCertificateMetadata)
The meta information of the server certificate, such as its name, path, ID, and ARN.
serverCertificateMetadata
- The meta information of the server certificate, such as its name,
path, ID, and ARN.public ServerCertificateMetadata getServerCertificateMetadata()
The meta information of the server certificate, such as its name, path, ID, and ARN.
public ServerCertificate withServerCertificateMetadata(ServerCertificateMetadata serverCertificateMetadata)
The meta information of the server certificate, such as its name, path, ID, and ARN.
serverCertificateMetadata
- The meta information of the server certificate, such as its name,
path, ID, and ARN.public void setCertificateBody(java.lang.String certificateBody)
The contents of the public key certificate.
certificateBody
- The contents of the public key certificate.public java.lang.String getCertificateBody()
The contents of the public key certificate.
public ServerCertificate withCertificateBody(java.lang.String certificateBody)
The contents of the public key certificate.
certificateBody
- The contents of the public key certificate.public void setCertificateChain(java.lang.String certificateChain)
The contents of the public key certificate chain.
certificateChain
- The contents of the public key certificate chain.public java.lang.String getCertificateChain()
The contents of the public key certificate chain.
public ServerCertificate withCertificateChain(java.lang.String certificateChain)
The contents of the public key certificate chain.
certificateChain
- The contents of the public key certificate chain.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ServerCertificate clone()
clone
in class java.lang.Object