Interface GetKeyLastUsageResponse.Builder

  • Method Details

    • keyId

      The globally unique identifier for the KMS key.

      Parameters:
      keyId - The globally unique identifier for the KMS key.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • keyLastUsage

      Contains usage information about the last time the KMS key was used for a successful cryptographic operation. If the key has not been used since tracking began, this response element is empty.

      Parameters:
      keyLastUsage - Contains usage information about the last time the KMS key was used for a successful cryptographic operation. If the key has not been used since tracking began, this response element is empty.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • keyLastUsage

      Contains usage information about the last time the KMS key was used for a successful cryptographic operation. If the key has not been used since tracking began, this response element is empty.

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

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

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

      GetKeyLastUsageResponse.Builder trackingStartDate(Instant trackingStartDate)

      The date from which KMS began recording cryptographic activity for this key, or the date the KMS key was created, whichever is later.

      Parameters:
      trackingStartDate - The date from which KMS began recording cryptographic activity for this key, or the date the KMS key was created, whichever is later.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • keyCreationDate

      GetKeyLastUsageResponse.Builder keyCreationDate(Instant keyCreationDate)

      The date and time when the KMS key was created.

      Parameters:
      keyCreationDate - The date and time when the KMS key was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.