Class ListedCertificate
- java.lang.Object
-
- software.amazon.awssdk.services.transfer.model.ListedCertificate
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ListedCertificate.Builder,ListedCertificate>
@Generated("software.amazon.awssdk:codegen") public final class ListedCertificate extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ListedCertificate.Builder,ListedCertificate>
Describes the properties of a certificate.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceListedCertificate.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description InstantactiveDate()An optional date that specifies when the certificate becomes active.Stringarn()The Amazon Resource Name (ARN) of the specified certificate.static ListedCertificate.Builderbuilder()StringcertificateId()An array of identifiers for the imported certificates.Stringdescription()The name or short description that's used to identify the certificate.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()InstantinactiveDate()An optional date that specifies when the certificate becomes inactive.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends ListedCertificate.Builder>serializableBuilderClass()CertificateStatusTypestatus()The certificate can be eitherACTIVE,PENDING_ROTATION, orINACTIVE.StringstatusAsString()The certificate can be eitherACTIVE,PENDING_ROTATION, orINACTIVE.ListedCertificate.BuildertoBuilder()StringtoString()Returns a string representation of this object.CertificateTypetype()The type for the certificate.StringtypeAsString()The type for the certificate.CertificateUsageTypeusage()Specifies how this certificate is used.StringusageAsString()Specifies how this certificate is used.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
arn
public final String arn()
The Amazon Resource Name (ARN) of the specified certificate.
- Returns:
- The Amazon Resource Name (ARN) of the specified certificate.
-
certificateId
public final String 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
public final 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
If the service returns an enum value that is not available in the current SDK version,
usagewill 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:
CertificateUsageType
-
-
usageAsString
public final String 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,
usagewill 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:
CertificateUsageType
-
-
status
public final CertificateStatusType status()
The certificate can be either
ACTIVE,PENDING_ROTATION, orINACTIVE.PENDING_ROTATIONmeans 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,
statuswill 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_ROTATIONmeans that this certificate will replace the current certificate when it expires. - See Also:
CertificateStatusType
-
statusAsString
public final String statusAsString()
The certificate can be either
ACTIVE,PENDING_ROTATION, orINACTIVE.PENDING_ROTATIONmeans 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,
statuswill 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_ROTATIONmeans that this certificate will replace the current certificate when it expires. - See Also:
CertificateStatusType
-
activeDate
public final Instant activeDate()
An optional date that specifies when the certificate becomes active.
- Returns:
- An optional date that specifies when the certificate becomes active.
-
inactiveDate
public final Instant inactiveDate()
An optional date that specifies when the certificate becomes inactive.
- Returns:
- An optional date that specifies when the certificate becomes inactive.
-
type
public final CertificateType type()
The type for the certificate. 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,
typewill returnCertificateType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type for the certificate. 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:
CertificateType
-
typeAsString
public final String typeAsString()
The type for the certificate. 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,
typewill returnCertificateType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type for the certificate. 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:
CertificateType
-
description
public final String description()
The name or short description that's used to identify the certificate.
- Returns:
- The name or short description that's used to identify the certificate.
-
toBuilder
public ListedCertificate.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ListedCertificate.Builder,ListedCertificate>
-
builder
public static ListedCertificate.Builder builder()
-
serializableBuilderClass
public static Class<? extends ListedCertificate.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-