Class GetKeyLastUsageResponse
java.lang.Object
software.amazon.awssdk.core.SdkResponse
software.amazon.awssdk.awscore.AwsResponse
software.amazon.awssdk.services.kms.model.KmsResponse
software.amazon.awssdk.services.kms.model.GetKeyLastUsageResponse
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<GetKeyLastUsageResponse.Builder,GetKeyLastUsageResponse>
@Generated("software.amazon.awssdk:codegen")
public final class GetKeyLastUsageResponse
extends KmsResponse
implements ToCopyableBuilder<GetKeyLastUsageResponse.Builder,GetKeyLastUsageResponse>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final InstantThe date and time when the KMS key was created.final StringkeyId()The globally unique identifier for the KMS key.final KeyLastUsageDataContains usage information about the last time the KMS key was used for a successful cryptographic operation.static Class<? extends GetKeyLastUsageResponse.Builder>final StringtoString()Returns a string representation of this object.final InstantThe 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 class software.amazon.awssdk.services.kms.model.KmsResponse
responseMetadataMethods inherited from class software.amazon.awssdk.core.SdkResponse
sdkHttpResponseMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
keyId
The globally unique identifier for the KMS key.
- Returns:
- The globally unique identifier for the KMS key.
-
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:
- 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.
-
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:
- The date from which KMS began recording cryptographic activity for this key, or the date the KMS key was created, whichever is later.
-
keyCreationDate
The date and time when the KMS key was created.
- Returns:
- The date and time when the KMS key was created.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<GetKeyLastUsageResponse.Builder,GetKeyLastUsageResponse> - Specified by:
toBuilderin classAwsResponse
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode()- Overrides:
hashCodein classAwsResponse
-
equals
- Overrides:
equalsin classAwsResponse
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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. -
getValueForField
- Overrides:
getValueForFieldin classSdkResponse
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-