Interface InventoryCertificate.Builder

  • Method Details

    • identifier

      InventoryCertificate.Builder identifier(String identifier)

      The certificate's identifier in the inventory.

      Parameters:
      identifier - The certificate's identifier in the inventory.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • materialType

      InventoryCertificate.Builder materialType(String materialType)

      The kind of certificate.

      Parameters:
      materialType - The kind of certificate.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • materialType

      InventoryCertificate.Builder materialType(MaterialType materialType)

      The kind of certificate.

      Parameters:
      materialType - The kind of certificate.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • validity

      When the certificate is valid.

      Parameters:
      validity - When the certificate is valid.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • validity

      When the certificate is valid.

      This is a convenience method that creates an instance of the ValidityWindow.Builder avoiding the need to create one manually via ValidityWindow.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to validity(ValidityWindow).

      Parameters:
      validity - a consumer that will call methods on ValidityWindow.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • identity

      Who or what the certificate identifies.

      Parameters:
      identity - Who or what the certificate identifies.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • identity

      Who or what the certificate identifies.

      This is a convenience method that creates an instance of the InventoryCertificateIdentity.Builder avoiding the need to create one manually via InventoryCertificateIdentity.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to identity(InventoryCertificateIdentity).

      Parameters:
      identity - a consumer that will call methods on InventoryCertificateIdentity.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • usageCount

      InventoryCertificate.Builder usageCount(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.

      Parameters:
      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:
      Returns a reference to this object so that method calls can be chained together.
    • findingCounts

      InventoryCertificate.Builder findingCounts(FindingCounts findingCounts)

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

      Parameters:
      findingCounts - Counts of open findings by severity. Absent until findings have been evaluated for this certificate.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • findingCounts

      default InventoryCertificate.Builder findingCounts(Consumer<FindingCounts.Builder> findingCounts)

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

      This is a convenience method that creates an instance of the FindingCounts.Builder avoiding the need to create one manually via FindingCounts.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to findingCounts(FindingCounts).

      Parameters:
      findingCounts - a consumer that will call methods on FindingCounts.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • x509Details

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

      Parameters:
      x509Details - Details of an X.509 certificate. Present when MaterialType is X509_CERTIFICATE.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • x509Details

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

      This is a convenience method that creates an instance of the InventoryX509Details.Builder avoiding the need to create one manually via InventoryX509Details.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to x509Details(InventoryX509Details).

      Parameters:
      x509Details - a consumer that will call methods on InventoryX509Details.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • highestFindingSeverity

      InventoryCertificate.Builder highestFindingSeverity(String 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.

      Parameters:
      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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • highestFindingSeverity

      InventoryCertificate.Builder highestFindingSeverity(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.

      Parameters:
      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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • relatedResourceCount

      InventoryCertificate.Builder relatedResourceCount(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.

      Parameters:
      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:
      Returns a reference to this object so that method calls can be chained together.