@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribedCertificate extends Object implements Serializable, Cloneable, StructuredPojo
Describes the properties of a certificate.
Constructor and Description |
---|
DescribedCertificate() |
Modifier and Type | Method and Description |
---|---|
DescribedCertificate |
clone() |
boolean |
equals(Object obj) |
Date |
getActiveDate()
An optional date that specifies when the certificate becomes active.
|
String |
getArn()
The unique Amazon Resource Name (ARN) for the certificate.
|
String |
getCertificate()
The file name for the certificate.
|
String |
getCertificateChain()
The list of certificates that make up the chain for the certificate.
|
String |
getCertificateId()
An array of identifiers for the imported certificates.
|
String |
getDescription()
The name or description that's used to identity the certificate.
|
Date |
getInactiveDate()
An optional date that specifies when the certificate becomes inactive.
|
Date |
getNotAfterDate()
The final date that the certificate is valid.
|
Date |
getNotBeforeDate()
The earliest date that the certificate is valid.
|
String |
getSerial()
The serial number for the certificate.
|
String |
getStatus()
The certificate can be either
ACTIVE , PENDING_ROTATION , or INACTIVE . |
List<Tag> |
getTags()
Key-value pairs that can be used to group and search for certificates.
|
String |
getType()
If a private key has been specified for the certificate, its type is
CERTIFICATE_WITH_PRIVATE_KEY . |
String |
getUsage()
Specifies how this certificate is used.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setActiveDate(Date activeDate)
An optional date that specifies when the certificate becomes active.
|
void |
setArn(String arn)
The unique Amazon Resource Name (ARN) for the certificate.
|
void |
setCertificate(String certificate)
The file name for the certificate.
|
void |
setCertificateChain(String certificateChain)
The list of certificates that make up the chain for the certificate.
|
void |
setCertificateId(String certificateId)
An array of identifiers for the imported certificates.
|
void |
setDescription(String description)
The name or description that's used to identity the certificate.
|
void |
setInactiveDate(Date inactiveDate)
An optional date that specifies when the certificate becomes inactive.
|
void |
setNotAfterDate(Date notAfterDate)
The final date that the certificate is valid.
|
void |
setNotBeforeDate(Date notBeforeDate)
The earliest date that the certificate is valid.
|
void |
setSerial(String serial)
The serial number for the certificate.
|
void |
setStatus(String status)
The certificate can be either
ACTIVE , PENDING_ROTATION , or INACTIVE . |
void |
setTags(Collection<Tag> tags)
Key-value pairs that can be used to group and search for certificates.
|
void |
setType(String type)
If a private key has been specified for the certificate, its type is
CERTIFICATE_WITH_PRIVATE_KEY . |
void |
setUsage(String usage)
Specifies how this certificate is used.
|
String |
toString()
Returns a string representation of this object.
|
DescribedCertificate |
withActiveDate(Date activeDate)
An optional date that specifies when the certificate becomes active.
|
DescribedCertificate |
withArn(String arn)
The unique Amazon Resource Name (ARN) for the certificate.
|
DescribedCertificate |
withCertificate(String certificate)
The file name for the certificate.
|
DescribedCertificate |
withCertificateChain(String certificateChain)
The list of certificates that make up the chain for the certificate.
|
DescribedCertificate |
withCertificateId(String certificateId)
An array of identifiers for the imported certificates.
|
DescribedCertificate |
withDescription(String description)
The name or description that's used to identity the certificate.
|
DescribedCertificate |
withInactiveDate(Date inactiveDate)
An optional date that specifies when the certificate becomes inactive.
|
DescribedCertificate |
withNotAfterDate(Date notAfterDate)
The final date that the certificate is valid.
|
DescribedCertificate |
withNotBeforeDate(Date notBeforeDate)
The earliest date that the certificate is valid.
|
DescribedCertificate |
withSerial(String serial)
The serial number for the certificate.
|
DescribedCertificate |
withStatus(CertificateStatusType status)
The certificate can be either
ACTIVE , PENDING_ROTATION , or INACTIVE . |
DescribedCertificate |
withStatus(String status)
The certificate can be either
ACTIVE , PENDING_ROTATION , or INACTIVE . |
DescribedCertificate |
withTags(Collection<Tag> tags)
Key-value pairs that can be used to group and search for certificates.
|
DescribedCertificate |
withTags(Tag... tags)
Key-value pairs that can be used to group and search for certificates.
|
DescribedCertificate |
withType(CertificateType type)
If a private key has been specified for the certificate, its type is
CERTIFICATE_WITH_PRIVATE_KEY . |
DescribedCertificate |
withType(String type)
If a private key has been specified for the certificate, its type is
CERTIFICATE_WITH_PRIVATE_KEY . |
DescribedCertificate |
withUsage(CertificateUsageType usage)
Specifies how this certificate is used.
|
DescribedCertificate |
withUsage(String usage)
Specifies how this certificate is used.
|
public void setArn(String arn)
The unique Amazon Resource Name (ARN) for the certificate.
arn
- The unique Amazon Resource Name (ARN) for the certificate.public String getArn()
The unique Amazon Resource Name (ARN) for the certificate.
public DescribedCertificate withArn(String arn)
The unique Amazon Resource Name (ARN) for the certificate.
arn
- The unique Amazon Resource Name (ARN) for the certificate.public void setCertificateId(String certificateId)
An array of identifiers for the imported certificates. You use this identifier for working with profiles and partner profiles.
certificateId
- An array of identifiers for the imported certificates. You use this identifier for working with profiles
and partner profiles.public String getCertificateId()
An array of identifiers for the imported certificates. You use this identifier for working with profiles and partner profiles.
public DescribedCertificate withCertificateId(String certificateId)
An array of identifiers for the imported certificates. You use this identifier for working with profiles and partner profiles.
certificateId
- An array of identifiers for the imported certificates. You use this identifier for working with profiles
and partner profiles.public void setUsage(String usage)
Specifies how this certificate is used. It can be used in the following ways:
SIGNING
: For signing AS2 messages
ENCRYPTION
: For encrypting AS2 messages
TLS
: For securing AS2 communications sent over HTTPS
usage
- Specifies how this certificate is used. It can be used in the following ways:
SIGNING
: For signing AS2 messages
ENCRYPTION
: For encrypting AS2 messages
TLS
: For securing AS2 communications sent over HTTPS
CertificateUsageType
public String getUsage()
Specifies how this certificate is used. It can be used in the following ways:
SIGNING
: For signing AS2 messages
ENCRYPTION
: For encrypting AS2 messages
TLS
: For securing AS2 communications sent over HTTPS
SIGNING
: For signing AS2 messages
ENCRYPTION
: For encrypting AS2 messages
TLS
: For securing AS2 communications sent over HTTPS
CertificateUsageType
public DescribedCertificate withUsage(String usage)
Specifies how this certificate is used. It can be used in the following ways:
SIGNING
: For signing AS2 messages
ENCRYPTION
: For encrypting AS2 messages
TLS
: For securing AS2 communications sent over HTTPS
usage
- Specifies how this certificate is used. It can be used in the following ways:
SIGNING
: For signing AS2 messages
ENCRYPTION
: For encrypting AS2 messages
TLS
: For securing AS2 communications sent over HTTPS
CertificateUsageType
public DescribedCertificate withUsage(CertificateUsageType usage)
Specifies how this certificate is used. It can be used in the following ways:
SIGNING
: For signing AS2 messages
ENCRYPTION
: For encrypting AS2 messages
TLS
: For securing AS2 communications sent over HTTPS
usage
- Specifies how this certificate is used. It can be used in the following ways:
SIGNING
: For signing AS2 messages
ENCRYPTION
: For encrypting AS2 messages
TLS
: For securing AS2 communications sent over HTTPS
CertificateUsageType
public void setStatus(String status)
The certificate can be either ACTIVE
, PENDING_ROTATION
, or INACTIVE
.
PENDING_ROTATION
means that this certificate will replace the current certificate when it expires.
status
- The certificate can be either ACTIVE
, PENDING_ROTATION
, or INACTIVE
. PENDING_ROTATION
means that this certificate will replace the current certificate when it
expires.CertificateStatusType
public String getStatus()
The certificate can be either ACTIVE
, PENDING_ROTATION
, or INACTIVE
.
PENDING_ROTATION
means that this certificate will replace the current certificate when it expires.
ACTIVE
, PENDING_ROTATION
, or
INACTIVE
. PENDING_ROTATION
means that this certificate will replace the current
certificate when it expires.CertificateStatusType
public DescribedCertificate withStatus(String status)
The certificate can be either ACTIVE
, PENDING_ROTATION
, or INACTIVE
.
PENDING_ROTATION
means that this certificate will replace the current certificate when it expires.
status
- The certificate can be either ACTIVE
, PENDING_ROTATION
, or INACTIVE
. PENDING_ROTATION
means that this certificate will replace the current certificate when it
expires.CertificateStatusType
public DescribedCertificate withStatus(CertificateStatusType status)
The certificate can be either ACTIVE
, PENDING_ROTATION
, or INACTIVE
.
PENDING_ROTATION
means that this certificate will replace the current certificate when it expires.
status
- The certificate can be either ACTIVE
, PENDING_ROTATION
, or INACTIVE
. PENDING_ROTATION
means that this certificate will replace the current certificate when it
expires.CertificateStatusType
public void setCertificate(String certificate)
The file name for the certificate.
certificate
- The file name for the certificate.public String getCertificate()
The file name for the certificate.
public DescribedCertificate withCertificate(String certificate)
The file name for the certificate.
certificate
- The file name for the certificate.public void setCertificateChain(String certificateChain)
The list of certificates that make up the chain for the certificate.
certificateChain
- The list of certificates that make up the chain for the certificate.public String getCertificateChain()
The list of certificates that make up the chain for the certificate.
public DescribedCertificate withCertificateChain(String certificateChain)
The list of certificates that make up the chain for the certificate.
certificateChain
- The list of certificates that make up the chain for the certificate.public void setActiveDate(Date activeDate)
An optional date that specifies when the certificate becomes active.
activeDate
- An optional date that specifies when the certificate becomes active.public Date getActiveDate()
An optional date that specifies when the certificate becomes active.
public DescribedCertificate withActiveDate(Date activeDate)
An optional date that specifies when the certificate becomes active.
activeDate
- An optional date that specifies when the certificate becomes active.public void setInactiveDate(Date inactiveDate)
An optional date that specifies when the certificate becomes inactive.
inactiveDate
- An optional date that specifies when the certificate becomes inactive.public Date getInactiveDate()
An optional date that specifies when the certificate becomes inactive.
public DescribedCertificate withInactiveDate(Date inactiveDate)
An optional date that specifies when the certificate becomes inactive.
inactiveDate
- An optional date that specifies when the certificate becomes inactive.public void setSerial(String serial)
The serial number for the certificate.
serial
- The serial number for the certificate.public String getSerial()
The serial number for the certificate.
public DescribedCertificate withSerial(String serial)
The serial number for the certificate.
serial
- The serial number for the certificate.public void setNotBeforeDate(Date notBeforeDate)
The earliest date that the certificate is valid.
notBeforeDate
- The earliest date that the certificate is valid.public Date getNotBeforeDate()
The earliest date that the certificate is valid.
public DescribedCertificate withNotBeforeDate(Date notBeforeDate)
The earliest date that the certificate is valid.
notBeforeDate
- The earliest date that the certificate is valid.public void setNotAfterDate(Date notAfterDate)
The final date that the certificate is valid.
notAfterDate
- The final date that the certificate is valid.public Date getNotAfterDate()
The final date that the certificate is valid.
public DescribedCertificate withNotAfterDate(Date notAfterDate)
The final date that the certificate is valid.
notAfterDate
- The final date that the certificate is valid.public void setType(String type)
If a private key has been specified for the certificate, its type is CERTIFICATE_WITH_PRIVATE_KEY
.
If there is no private key, the type is CERTIFICATE
.
type
- If a private key has been specified for the certificate, its type is
CERTIFICATE_WITH_PRIVATE_KEY
. If there is no private key, the type is
CERTIFICATE
.CertificateType
public String getType()
If a private key has been specified for the certificate, its type is CERTIFICATE_WITH_PRIVATE_KEY
.
If there is no private key, the type is CERTIFICATE
.
CERTIFICATE_WITH_PRIVATE_KEY
. If there is no private key, the type is
CERTIFICATE
.CertificateType
public DescribedCertificate withType(String type)
If a private key has been specified for the certificate, its type is CERTIFICATE_WITH_PRIVATE_KEY
.
If there is no private key, the type is CERTIFICATE
.
type
- If a private key has been specified for the certificate, its type is
CERTIFICATE_WITH_PRIVATE_KEY
. If there is no private key, the type is
CERTIFICATE
.CertificateType
public DescribedCertificate withType(CertificateType type)
If a private key has been specified for the certificate, its type is CERTIFICATE_WITH_PRIVATE_KEY
.
If there is no private key, the type is CERTIFICATE
.
type
- If a private key has been specified for the certificate, its type is
CERTIFICATE_WITH_PRIVATE_KEY
. If there is no private key, the type is
CERTIFICATE
.CertificateType
public void setDescription(String description)
The name or description that's used to identity the certificate.
description
- The name or description that's used to identity the certificate.public String getDescription()
The name or description that's used to identity the certificate.
public DescribedCertificate withDescription(String description)
The name or description that's used to identity the certificate.
description
- The name or description that's used to identity the certificate.public List<Tag> getTags()
Key-value pairs that can be used to group and search for certificates.
public void setTags(Collection<Tag> tags)
Key-value pairs that can be used to group and search for certificates.
tags
- Key-value pairs that can be used to group and search for certificates.public DescribedCertificate withTags(Tag... tags)
Key-value pairs that can be used to group and search for certificates.
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
- Key-value pairs that can be used to group and search for certificates.public DescribedCertificate withTags(Collection<Tag> tags)
Key-value pairs that can be used to group and search for certificates.
tags
- Key-value pairs that can be used to group and search for certificates.public String toString()
toString
in class Object
Object.toString()
public DescribedCertificate clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.