@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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 operation.
Constructor and Description |
---|
ServerCertificate()
Default constructor for ServerCertificate object.
|
ServerCertificate(ServerCertificateMetadata serverCertificateMetadata,
String certificateBody)
Constructs a new ServerCertificate object.
|
Modifier and Type | Method and 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.
|
List<Tag> |
getTags()
A list of tags that are attached to the server certificate.
|
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.
|
void |
setTags(Collection<Tag> tags)
A list of tags that are attached to the server certificate.
|
String |
toString()
Returns a string representation of this object.
|
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.
|
ServerCertificate |
withTags(Collection<Tag> tags)
A list of tags that are attached to the server certificate.
|
ServerCertificate |
withTags(Tag... tags)
A list of tags that are attached to the server certificate.
|
public ServerCertificate()
public ServerCertificate(ServerCertificateMetadata serverCertificateMetadata, 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(String certificateBody)
The contents of the public key certificate.
certificateBody
- The contents of the public key certificate.public String getCertificateBody()
The contents of the public key certificate.
public ServerCertificate withCertificateBody(String certificateBody)
The contents of the public key certificate.
certificateBody
- The contents of the public key certificate.public void setCertificateChain(String certificateChain)
The contents of the public key certificate chain.
certificateChain
- The contents of the public key certificate chain.public String getCertificateChain()
The contents of the public key certificate chain.
public ServerCertificate withCertificateChain(String certificateChain)
The contents of the public key certificate chain.
certificateChain
- The contents of the public key certificate chain.public List<Tag> getTags()
A list of tags that are attached to the server certificate. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
public void setTags(Collection<Tag> tags)
A list of tags that are attached to the server certificate. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
tags
- A list of tags that are attached to the server certificate. For more information about tagging, see Tagging IAM resources in the
IAM User Guide.public ServerCertificate withTags(Tag... tags)
A list of tags that are attached to the server certificate. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- A list of tags that are attached to the server certificate. For more information about tagging, see Tagging IAM resources in the
IAM User Guide.public ServerCertificate withTags(Collection<Tag> tags)
A list of tags that are attached to the server certificate. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
tags
- A list of tags that are attached to the server certificate. For more information about tagging, see Tagging IAM resources in the
IAM User Guide.public String toString()
toString
in class Object
Object.toString()
public ServerCertificate clone()
Copyright © 2023. All rights reserved.