Class DescribedCertificate
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<DescribedCertificate.Builder,
DescribedCertificate>
Describes the properties of a certificate.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal Instant
An optional date that specifies when the certificate becomes active.final String
arn()
The unique Amazon Resource Name (ARN) for the certificate.static DescribedCertificate.Builder
builder()
final String
The file name for the certificate.final String
The list of certificates that make up the chain for the certificate.final String
An array of identifiers for the imported certificates.final String
The name or description that's used to identity the certificate.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final boolean
hasTags()
For responses, this returns true if the service returned a value for the Tags property.final Instant
An optional date that specifies when the certificate becomes inactive.final Instant
The final date that the certificate is valid.final Instant
The earliest date that the certificate is valid.final String
serial()
The serial number for the certificate.static Class
<? extends DescribedCertificate.Builder> final CertificateStatusType
status()
The certificate can be eitherACTIVE
,PENDING_ROTATION
, orINACTIVE
.final String
The certificate can be eitherACTIVE
,PENDING_ROTATION
, orINACTIVE
.tags()
Key-value pairs that can be used to group and search for certificates.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.final CertificateType
type()
If a private key has been specified for the certificate, its type isCERTIFICATE_WITH_PRIVATE_KEY
.final String
If a private key has been specified for the certificate, its type isCERTIFICATE_WITH_PRIVATE_KEY
.final CertificateUsageType
usage()
Specifies how this certificate is used.final String
Specifies how this certificate is used.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
arn
The unique Amazon Resource Name (ARN) for the certificate.
- Returns:
- The unique Amazon Resource Name (ARN) for the certificate.
-
certificateId
An array of identifiers for the imported certificates. You use this identifier for working with profiles and partner profiles.
- Returns:
- An array of identifiers for the imported certificates. You use this identifier for working with profiles and partner profiles.
-
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
If the service returns an enum value that is not available in the current SDK version,
usage
will returnCertificateUsageType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromusageAsString()
.- Returns:
- 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
-
- See Also:
-
-
usageAsString
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
If the service returns an enum value that is not available in the current SDK version,
usage
will returnCertificateUsageType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromusageAsString()
.- Returns:
- 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
-
- See Also:
-
-
status
The certificate can be either
ACTIVE
,PENDING_ROTATION
, orINACTIVE
.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 returnCertificateStatusType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstatusAsString()
.- Returns:
- The certificate can be either
ACTIVE
,PENDING_ROTATION
, orINACTIVE
.PENDING_ROTATION
means that this certificate will replace the current certificate when it expires. - See Also:
-
statusAsString
The certificate can be either
ACTIVE
,PENDING_ROTATION
, orINACTIVE
.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 returnCertificateStatusType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstatusAsString()
.- Returns:
- The certificate can be either
ACTIVE
,PENDING_ROTATION
, orINACTIVE
.PENDING_ROTATION
means that this certificate will replace the current certificate when it expires. - See Also:
-
certificate
The file name for the certificate.
- Returns:
- The file name for the certificate.
-
certificateChain
The list of certificates that make up the chain for the certificate.
- Returns:
- The list of certificates that make up the chain for the certificate.
-
activeDate
An optional date that specifies when the certificate becomes active.
- Returns:
- An optional date that specifies when the certificate becomes active.
-
inactiveDate
An optional date that specifies when the certificate becomes inactive.
- Returns:
- An optional date that specifies when the certificate becomes inactive.
-
serial
The serial number for the certificate.
- Returns:
- The serial number for the certificate.
-
notBeforeDate
The earliest date that the certificate is valid.
- Returns:
- The earliest date that the certificate is valid.
-
notAfterDate
The final date that the certificate is valid.
- Returns:
- The final date that the certificate is valid.
-
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 isCERTIFICATE
.If the service returns an enum value that is not available in the current SDK version,
type
will returnCertificateType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromtypeAsString()
.- Returns:
- 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 isCERTIFICATE
. - See Also:
-
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 isCERTIFICATE
.If the service returns an enum value that is not available in the current SDK version,
type
will returnCertificateType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromtypeAsString()
.- Returns:
- 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 isCERTIFICATE
. - See Also:
-
description
The name or description that's used to identity the certificate.
- Returns:
- The name or description that's used to identity the certificate.
-
hasTags
public final boolean hasTags()For responses, this returns true if the service returned a value for the Tags property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
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. -
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.- Returns:
- Key-value pairs that can be used to group and search for certificates.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<DescribedCertificate.Builder,
DescribedCertificate> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-