Class InventoryCertificate

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

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

One certificate observed in the organization's accounts. This is a record of what was observed, not an AWS resource.

See Also:
  • Method Details

    • identifier

      public final String identifier()

      The certificate's identifier in the inventory.

      Returns:
      The certificate's identifier in the inventory.
    • materialType

      public final MaterialType materialType()

      The kind of certificate.

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

      Returns:
      The kind of certificate.
      See Also:
    • materialTypeAsString

      public final String materialTypeAsString()

      The kind of certificate.

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

      Returns:
      The kind of certificate.
      See Also:
    • validity

      public final ValidityWindow validity()

      When the certificate is valid.

      Returns:
      When the certificate is valid.
    • identity

      public final InventoryCertificateIdentity identity()

      Who or what the certificate identifies.

      Returns:
      Who or what the certificate identifies.
    • usageCount

      public final Long usageCount()

      How many places the certificate was observed in use, counted when the certificate was last collected. It can lag the TotalCount of ListInventoryUsages. It can also differ from InUseByCount in a related ACM certificate's metadata. InUseByCount is the length of the InUseBy list in ACM when the inventory last read it, not what the inventory observed.

      Returns:
      How many places the certificate was observed in use, counted when the certificate was last collected. It can lag the TotalCount of ListInventoryUsages. It can also differ from InUseByCount in a related ACM certificate's metadata. InUseByCount is the length of the InUseBy list in ACM when the inventory last read it, not what the inventory observed.
    • findingCounts

      public final FindingCounts findingCounts()

      Counts of open findings by severity. Absent until findings have been evaluated for this certificate.

      Returns:
      Counts of open findings by severity. Absent until findings have been evaluated for this certificate.
    • x509Details

      public final InventoryX509Details x509Details()

      Details of an X.509 certificate. Present when MaterialType is X509_CERTIFICATE.

      Returns:
      Details of an X.509 certificate. Present when MaterialType is X509_CERTIFICATE.
    • highestFindingSeverity

      public final CertificateHealthSeverity highestFindingSeverity()

      The certificate's health. CRITICAL to INFORMATIONAL is the highest severity among the open findings of the series in which the certificate is a current certificate. HEALTHY means rules apply and none has an open finding. NOT_APPLICABLE means no rule applies to the certificate. NOT_EVALUATED means its findings have not been evaluated yet. SearchInventory returns it for every certificate.

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

      Returns:
      The certificate's health. CRITICAL to INFORMATIONAL is the highest severity among the open findings of the series in which the certificate is a current certificate. HEALTHY means rules apply and none has an open finding. NOT_APPLICABLE means no rule applies to the certificate. NOT_EVALUATED means its findings have not been evaluated yet. SearchInventory returns it for every certificate.
      See Also:
    • highestFindingSeverityAsString

      public final String highestFindingSeverityAsString()

      The certificate's health. CRITICAL to INFORMATIONAL is the highest severity among the open findings of the series in which the certificate is a current certificate. HEALTHY means rules apply and none has an open finding. NOT_APPLICABLE means no rule applies to the certificate. NOT_EVALUATED means its findings have not been evaluated yet. SearchInventory returns it for every certificate.

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

      Returns:
      The certificate's health. CRITICAL to INFORMATIONAL is the highest severity among the open findings of the series in which the certificate is a current certificate. HEALTHY means rules apply and none has an open finding. NOT_APPLICABLE means no rule applies to the certificate. NOT_EVALUATED means its findings have not been evaluated yet. SearchInventory returns it for every certificate.
      See Also:
    • relatedResourceCount

      public final Long relatedResourceCount()

      How many related resources the certificate has. These are the ACM certificates, AWS Private Certificate Authority (AWS Private CA) certificates, and AWS Private CA certificate authorities that ListInventoryRelatedResources lists for it. It is a whole number, 0 or more, with no upper bound. 0 means the certificate has none. It is counted each time the inventory updates the certificate, so it can lag the TotalCount of ListInventoryRelatedResources until the next update. Absent when it has not been counted for this certificate.

      Returns:
      How many related resources the certificate has. These are the ACM certificates, AWS Private Certificate Authority (AWS Private CA) certificates, and AWS Private CA certificate authorities that ListInventoryRelatedResources lists for it. It is a whole number, 0 or more, with no upper bound. 0 means the certificate has none. It is counted each time the inventory updates the certificate, so it can lag the TotalCount of ListInventoryRelatedResources until the next update. Absent when it has not been counted for this certificate.
    • toBuilder

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

      public static InventoryCertificate.Builder builder()
    • serializableBuilderClass

      public static Class<? extends InventoryCertificate.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.