Class AcmMetadataCertificate

java.lang.Object
software.amazon.awssdk.services.acm.model.AcmMetadataCertificate
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<AcmMetadataCertificate.Builder,AcmMetadataCertificate>

@Generated("software.amazon.awssdk:codegen") public final class AcmMetadataCertificate extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AcmMetadataCertificate.Builder,AcmMetadataCertificate>

What DescribeCertificate in AWS Certificate Manager (ACM) reported for an ACM certificate when the inventory read it. Members keep the names ACM uses in CertificateDetail. A member is absent when ACM did not report it in that read.

Three members are named UpdatedAt. This structure's UpdatedAt is when the inventory read it. RenewalSummary.UpdatedAt and UpdateSummary.UpdatedAt are the times ACM reports for the renewal and the update.

See Also:
  • Method Details

    • updatedAt

      public final Instant updatedAt()

      When the inventory last read this from ACM, in UTC. This is the inventory's time, not a time ACM reports. The UpdatedAt members of RenewalSummary and UpdateSummary are times ACM reports.

      Returns:
      When the inventory last read this from ACM, in UTC. This is the inventory's time, not a time ACM reports. The UpdatedAt members of RenewalSummary and UpdateSummary are times ACM reports.
    • domainName

      public final String domainName()

      ACM DomainName: the certificate's primary domain name.

      Returns:
      ACM DomainName: the certificate's primary domain name.
    • serial

      public final String serial()

      ACM Serial: the serial number of the certificate the ACM certificate holds.

      Returns:
      ACM Serial: the serial number of the certificate the ACM certificate holds.
    • notAfter

      public final Instant notAfter()

      ACM NotAfter: the end of the validity period of the certificate the ACM certificate holds.

      Returns:
      ACM NotAfter: the end of the validity period of the certificate the ACM certificate holds.
    • status

      public final AcmCertificateStatus status()

      ACM Status: where the certificate is in its lifecycle. Some values might never appear here, because the inventory records only the certificates it tracks.

      If the service returns an enum value that is not available in the current SDK version, status will return AcmCertificateStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from statusAsString().

      Returns:
      ACM Status: where the certificate is in its lifecycle. Some values might never appear here, because the inventory records only the certificates it tracks.
      See Also:
    • statusAsString

      public final String statusAsString()

      ACM Status: where the certificate is in its lifecycle. Some values might never appear here, because the inventory records only the certificates it tracks.

      If the service returns an enum value that is not available in the current SDK version, status will return AcmCertificateStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from statusAsString().

      Returns:
      ACM Status: where the certificate is in its lifecycle. Some values might never appear here, because the inventory records only the certificates it tracks.
      See Also:
    • type

      public final AcmCertificateType type()

      ACM Type: how ACM holds the certificate.

      If the service returns an enum value that is not available in the current SDK version, type will return AcmCertificateType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from typeAsString().

      Returns:
      ACM Type: how ACM holds the certificate.
      See Also:
    • typeAsString

      public final String typeAsString()

      ACM Type: how ACM holds the certificate.

      If the service returns an enum value that is not available in the current SDK version, type will return AcmCertificateType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from typeAsString().

      Returns:
      ACM Type: how ACM holds the certificate.
      See Also:
    • inUseByCount

      public final Long inUseByCount()

      The number of AWS resources in the InUseBy list in ACM for this certificate, when the inventory last read it (see UpdatedAt). For the resources the inventory observed, use ListInventoryUsages. The two can differ.

      Returns:
      The number of AWS resources in the InUseBy list in ACM for this certificate, when the inventory last read it (see UpdatedAt). For the resources the inventory observed, use ListInventoryUsages. The two can differ.
    • renewalEligibility

      public final AcmRenewalEligibility renewalEligibility()

      ACM RenewalEligibility: whether ACM can renew the certificate.

      If the service returns an enum value that is not available in the current SDK version, renewalEligibility will return AcmRenewalEligibility.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from renewalEligibilityAsString().

      Returns:
      ACM RenewalEligibility: whether ACM can renew the certificate.
      See Also:
    • renewalEligibilityAsString

      public final String renewalEligibilityAsString()

      ACM RenewalEligibility: whether ACM can renew the certificate.

      If the service returns an enum value that is not available in the current SDK version, renewalEligibility will return AcmRenewalEligibility.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from renewalEligibilityAsString().

      Returns:
      ACM RenewalEligibility: whether ACM can renew the certificate.
      See Also:
    • renewalSummary

      public final AcmRenewalSummary renewalSummary()

      ACM RenewalSummary, without its domain validation details. Present only when ACM reports a renewal.

      Returns:
      ACM RenewalSummary, without its domain validation details. Present only when ACM reports a renewal.
    • options

      public final AcmMetadataCertificateOptions options()

      ACM Options: the export and validation options.

      Returns:
      ACM Options: the export and validation options.
    • updateSummary

      public final AcmUpdateSummary updateSummary()

      ACM UpdateSummary, without its domain validation details. It is the last requested change to the certificate, such as a new validation method. Present only when ACM reports one.

      Returns:
      ACM UpdateSummary, without its domain validation details. It is the last requested change to the certificate, such as a new validation method. Present only when ACM reports one.
    • certificateKeyPairOrigin

      public final AcmCertificateKeyPairOrigin certificateKeyPairOrigin()

      ACM CertificateKeyPairOrigin: where the certificate's key pair came from.

      If the service returns an enum value that is not available in the current SDK version, certificateKeyPairOrigin will return AcmCertificateKeyPairOrigin.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from certificateKeyPairOriginAsString().

      Returns:
      ACM CertificateKeyPairOrigin: where the certificate's key pair came from.
      See Also:
    • certificateKeyPairOriginAsString

      public final String certificateKeyPairOriginAsString()

      ACM CertificateKeyPairOrigin: where the certificate's key pair came from.

      If the service returns an enum value that is not available in the current SDK version, certificateKeyPairOrigin will return AcmCertificateKeyPairOrigin.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from certificateKeyPairOriginAsString().

      Returns:
      ACM CertificateKeyPairOrigin: where the certificate's key pair came from.
      See Also:
    • managedBy

      public final AcmCertificateManagedBy managedBy()

      ACM ManagedBy: the service that manages the certificate. Absent when no service manages it.

      If the service returns an enum value that is not available in the current SDK version, managedBy will return AcmCertificateManagedBy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from managedByAsString().

      Returns:
      ACM ManagedBy: the service that manages the certificate. Absent when no service manages it.
      See Also:
    • managedByAsString

      public final String managedByAsString()

      ACM ManagedBy: the service that manages the certificate. Absent when no service manages it.

      If the service returns an enum value that is not available in the current SDK version, managedBy will return AcmCertificateManagedBy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from managedByAsString().

      Returns:
      ACM ManagedBy: the service that manages the certificate. Absent when no service manages it.
      See Also:
    • createdAt

      public final Instant createdAt()

      ACM CreatedAt: when the certificate was requested from ACM. Absent when ACM did not return it.

      Returns:
      ACM CreatedAt: when the certificate was requested from ACM. Absent when ACM did not return it.
    • issuedAt

      public final Instant issuedAt()

      ACM IssuedAt: when ACM issued the certificate. Present only when Type is AMAZON_ISSUED.

      Returns:
      ACM IssuedAt: when ACM issued the certificate. Present only when Type is AMAZON_ISSUED.
    • importedAt

      public final Instant importedAt()

      ACM ImportedAt: when the certificate was imported. Present only when Type is IMPORTED.

      Returns:
      ACM ImportedAt: when the certificate was imported. Present only when Type is IMPORTED.
    • revokedAt

      public final Instant revokedAt()

      ACM RevokedAt: when the certificate was revoked. Present only when Status is REVOKED.

      Returns:
      ACM RevokedAt: when the certificate was revoked. Present only when Status is REVOKED.
    • revocationReason

      public final AcmMetadataRevocationReason revocationReason()

      ACM RevocationReason. Present only when Status is REVOKED.

      If the service returns an enum value that is not available in the current SDK version, revocationReason will return AcmMetadataRevocationReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from revocationReasonAsString().

      Returns:
      ACM RevocationReason. Present only when Status is REVOKED.
      See Also:
    • revocationReasonAsString

      public final String revocationReasonAsString()

      ACM RevocationReason. Present only when Status is REVOKED.

      If the service returns an enum value that is not available in the current SDK version, revocationReason will return AcmMetadataRevocationReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from revocationReasonAsString().

      Returns:
      ACM RevocationReason. Present only when Status is REVOKED.
      See Also:
    • certificateAuthorityArn

      public final String certificateAuthorityArn()

      ACM CertificateAuthorityArn: the AWS Private Certificate Authority (AWS Private CA) certificate authority that issued the certificate. Present only when Type is PRIVATE.

      Returns:
      ACM CertificateAuthorityArn: the AWS Private Certificate Authority (AWS Private CA) certificate authority that issued the certificate. Present only when Type is PRIVATE.
    • acmeEndpointArn

      public final String acmeEndpointArn()

      The ACME endpoint ARN the certificate was issued through, when ACM issued it through ACME. Absent otherwise.

      Returns:
      The ACME endpoint ARN the certificate was issued through, when ACM issued it through ACME. Absent otherwise.
    • acmeAccountId

      public final String acmeAccountId()

      The ACME account that requested the certificate, when ACM issued it through ACME. Absent otherwise.

      Returns:
      The ACME account that requested the certificate, when ACM issued it through ACME. Absent otherwise.
    • toBuilder

      public AcmMetadataCertificate.Builder 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 interface ToCopyableBuilder<AcmMetadataCertificate.Builder,AcmMetadataCertificate>
      Returns:
      a builder for type T
    • builder

      public static AcmMetadataCertificate.Builder builder()
    • serializableBuilderClass

      public static Class<? extends AcmMetadataCertificate.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      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 an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • 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.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo
      Returns:
      The mapping between the field name and its corresponding field.