Interface GetKeyLastUsageResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetKeyLastUsageResponse.Builder,,GetKeyLastUsageResponse> KmsResponse.Builder,SdkBuilder<GetKeyLastUsageResponse.Builder,,GetKeyLastUsageResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetKeyLastUsageResponse
-
Method Summary
Modifier and TypeMethodDescriptionkeyCreationDate(Instant keyCreationDate) The date and time when the KMS key was created.The globally unique identifier for the KMS key.default GetKeyLastUsageResponse.BuilderkeyLastUsage(Consumer<KeyLastUsageData.Builder> keyLastUsage) Contains usage information about the last time the KMS key was used for a successful cryptographic operation.keyLastUsage(KeyLastUsageData keyLastUsage) Contains usage information about the last time the KMS key was used for a successful cryptographic operation.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.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.kms.model.KmsResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
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
default GetKeyLastUsageResponse.Builder keyLastUsage(Consumer<KeyLastUsageData.Builder> 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 theKeyLastUsageData.Builderavoiding the need to create one manually viaKeyLastUsageData.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tokeyLastUsage(KeyLastUsageData).- Parameters:
keyLastUsage- a consumer that will call methods onKeyLastUsageData.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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.
-