@Generated(value="software.amazon.awssdk:codegen") public final class DescribedCertificate extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DescribedCertificate.Builder,DescribedCertificate>
Describes the properties of a certificate.
| Modifier and Type | Class and Description |
|---|---|
static interface |
DescribedCertificate.Builder |
| Modifier and Type | Method and Description |
|---|---|
Instant |
activeDate()
An optional date that specifies when the certificate becomes active.
|
String |
arn()
The unique Amazon Resource Name (ARN) for the certificate.
|
static DescribedCertificate.Builder |
builder() |
String |
certificate()
The file name for the certificate.
|
String |
certificateChain()
The list of certificates that make up the chain for the certificate.
|
String |
certificateId()
An array of identifiers for the imported certificates.
|
String |
description()
The name or description that's used to identity the certificate.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasTags()
For responses, this returns true if the service returned a value for the Tags property.
|
Instant |
inactiveDate()
An optional date that specifies when the certificate becomes inactive.
|
Instant |
notAfterDate()
The final date that the certificate is valid.
|
Instant |
notBeforeDate()
The earliest date that the certificate is valid.
|
List<SdkField<?>> |
sdkFields() |
String |
serial()
The serial number for the certificate.
|
static Class<? extends DescribedCertificate.Builder> |
serializableBuilderClass() |
CertificateStatusType |
status()
The certificate can be either
ACTIVE, PENDING_ROTATION, or INACTIVE. |
String |
statusAsString()
The certificate can be either
ACTIVE, PENDING_ROTATION, or INACTIVE. |
List<Tag> |
tags()
Key-value pairs that can be used to group and search for certificates.
|
DescribedCertificate.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
CertificateType |
type()
If a private key has been specified for the certificate, its type is
CERTIFICATE_WITH_PRIVATE_KEY. |
String |
typeAsString()
If a private key has been specified for the certificate, its type is
CERTIFICATE_WITH_PRIVATE_KEY. |
CertificateUsageType |
usage()
Specifies whether this certificate is used for signing or encryption.
|
String |
usageAsString()
Specifies whether this certificate is used for signing or encryption.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String arn()
The unique Amazon Resource Name (ARN) for the certificate.
public final String certificateId()
An array of identifiers for the imported certificates. You use this identifier for working with profiles and partner profiles.
public final CertificateUsageType usage()
Specifies whether this certificate is used for signing or encryption.
If the service returns an enum value that is not available in the current SDK version, usage will return
CertificateUsageType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
usageAsString().
CertificateUsageTypepublic final String usageAsString()
Specifies whether this certificate is used for signing or encryption.
If the service returns an enum value that is not available in the current SDK version, usage will return
CertificateUsageType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
usageAsString().
CertificateUsageTypepublic final 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.
If the service returns an enum value that is not available in the current SDK version, status will
return CertificateStatusType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from statusAsString().
ACTIVE, PENDING_ROTATION, or
INACTIVE. PENDING_ROTATION means that this certificate will replace the current
certificate when it expires.CertificateStatusTypepublic final String statusAsString()
The certificate can be either ACTIVE, PENDING_ROTATION, or INACTIVE.
PENDING_ROTATION means that this certificate will replace the current certificate when it expires.
If the service returns an enum value that is not available in the current SDK version, status will
return CertificateStatusType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from statusAsString().
ACTIVE, PENDING_ROTATION, or
INACTIVE. PENDING_ROTATION means that this certificate will replace the current
certificate when it expires.CertificateStatusTypepublic final String certificate()
The file name for the certificate.
public final String certificateChain()
The list of certificates that make up the chain for the certificate.
public final Instant activeDate()
An optional date that specifies when the certificate becomes active.
public final Instant inactiveDate()
An optional date that specifies when the certificate becomes inactive.
public final String serial()
The serial number for the certificate.
public final Instant notBeforeDate()
The earliest date that the certificate is valid.
public final Instant notAfterDate()
The final date that the certificate is valid.
public final 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.
If the service returns an enum value that is not available in the current SDK version, type will return
CertificateType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
CERTIFICATE_WITH_PRIVATE_KEY. If there is no private key, the type is
CERTIFICATE.CertificateTypepublic final String typeAsString()
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.
If the service returns an enum value that is not available in the current SDK version, type will return
CertificateType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
CERTIFICATE_WITH_PRIVATE_KEY. If there is no private key, the type is
CERTIFICATE.CertificateTypepublic final String description()
The name or description that's used to identity the certificate.
public final boolean hasTags()
isEmpty() method on the property). This is useful
because the SDK will never return a null collection or map, but you may need to differentiate between the service
returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
if a value for the property was specified in the request builder, and false if a value was not specified.public final List<Tag> tags()
Key-value pairs that can be used to group and search for certificates.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasTags() method.
public DescribedCertificate.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<DescribedCertificate.Builder,DescribedCertificate>public static DescribedCertificate.Builder builder()
public static Class<? extends DescribedCertificate.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.