Class KeyMetadata
- All Implemented Interfaces:
- Serializable,- SdkPojo,- ToCopyableBuilder<KeyMetadata.Builder,- KeyMetadata> 
Contains metadata about a KMS key.
This data type is used as a response element for the CreateKey, DescribeKey, and ReplicateKey operations.
- See Also:
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionfinal Stringarn()The Amazon Resource Name (ARN) of the KMS key.final StringThe twelve-digit account ID of the Amazon Web Services account that owns the KMS key.static KeyMetadata.Builderbuilder()final StringThe cluster ID of the CloudHSM cluster that contains the key material for the KMS key.final InstantThe date and time when the KMS key was created.final StringIdentifies the current key material.final CustomerMasterKeySpecDeprecated.This field has been deprecated.final StringDeprecated.This field has been deprecated.final StringA unique identifier for the custom key store that contains the KMS key.final InstantThe date and time after which KMS deletes this KMS key.final StringThe description of the KMS key.final Booleanenabled()Specifies whether the KMS key is enabled.final List<EncryptionAlgorithmSpec> The encryption algorithms that the KMS key supports.The encryption algorithms that the KMS key supports.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final ExpirationModelTypeSpecifies whether the KMS key's key material expires.final StringSpecifies whether the KMS key's key material expires.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final booleanFor responses, this returns true if the service returned a value for the EncryptionAlgorithms property.final inthashCode()final booleanFor responses, this returns true if the service returned a value for the KeyAgreementAlgorithms property.final booleanFor responses, this returns true if the service returned a value for the MacAlgorithms property.final booleanFor responses, this returns true if the service returned a value for the SigningAlgorithms property.final List<KeyAgreementAlgorithmSpec> The key agreement algorithm used to derive a shared secret.The key agreement algorithm used to derive a shared secret.final StringkeyId()The globally unique identifier for the KMS key.final KeyManagerTypeThe manager of the KMS key.final StringThe manager of the KMS key.final KeySpeckeySpec()Describes the type of key material in the KMS key.final StringDescribes the type of key material in the KMS key.final KeyStatekeyState()The current status of the KMS key.final StringThe current status of the KMS key.final KeyUsageTypekeyUsage()The cryptographic operations for which you can use the KMS key.final StringThe cryptographic operations for which you can use the KMS key.final List<MacAlgorithmSpec> The message authentication code (MAC) algorithm that the HMAC KMS key supports.The message authentication code (MAC) algorithm that the HMAC KMS key supports.final BooleanIndicates whether the KMS key is a multi-Region (True) or regional (False) key.final MultiRegionConfigurationLists the primary and replica keys in same multi-Region key.final OriginTypeorigin()The source of the key material for the KMS key.final StringThe source of the key material for the KMS key.final IntegerThe waiting period before the primary key in a multi-Region key is deleted.static Class<? extends KeyMetadata.Builder> final List<SigningAlgorithmSpec> The signing algorithms that the KMS key supports.The signing algorithms that the KMS key supports.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final InstantvalidTo()The earliest time at which any imported key material permanently associated with this KMS key expires.final XksKeyConfigurationTypeInformation about the external key that is associated with a KMS key in an external key store.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuildercopy
- 
Method Details- 
awsAccountIdThe twelve-digit account ID of the Amazon Web Services account that owns the KMS key. - Returns:
- The twelve-digit account ID of the Amazon Web Services account that owns the KMS key.
 
- 
keyIdThe globally unique identifier for the KMS key. - Returns:
- The globally unique identifier for the KMS key.
 
- 
arnThe Amazon Resource Name (ARN) of the KMS key. For examples, see Key Management Service (KMS) in the Example ARNs section of the Amazon Web Services General Reference. - Returns:
- The Amazon Resource Name (ARN) of the KMS key. For examples, see Key Management Service (KMS) in the Example ARNs section of the Amazon Web Services General Reference.
 
- 
creationDateThe date and time when the KMS key was created. - Returns:
- The date and time when the KMS key was created.
 
- 
enabledSpecifies whether the KMS key is enabled. When KeyStateisEnabledthis value is true, otherwise it is false.- Returns:
- Specifies whether the KMS key is enabled. When KeyStateisEnabledthis value is true, otherwise it is false.
 
- 
descriptionThe description of the KMS key. - Returns:
- The description of the KMS key.
 
- 
keyUsageThe cryptographic operations for which you can use the KMS key. If the service returns an enum value that is not available in the current SDK version, keyUsagewill returnKeyUsageType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromkeyUsageAsString().- Returns:
- The cryptographic operations for which you can use the KMS key.
- See Also:
 
- 
keyUsageAsStringThe cryptographic operations for which you can use the KMS key. If the service returns an enum value that is not available in the current SDK version, keyUsagewill returnKeyUsageType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromkeyUsageAsString().- Returns:
- The cryptographic operations for which you can use the KMS key.
- See Also:
 
- 
keyStateThe current status of the KMS key. For more information about how key state affects the use of a KMS key, see Key states of KMS keys in the Key Management Service Developer Guide. If the service returns an enum value that is not available in the current SDK version, keyStatewill returnKeyState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromkeyStateAsString().- Returns:
- The current status of the KMS key.
         For more information about how key state affects the use of a KMS key, see Key states of KMS keys in the Key Management Service Developer Guide. 
- See Also:
 
- 
keyStateAsStringThe current status of the KMS key. For more information about how key state affects the use of a KMS key, see Key states of KMS keys in the Key Management Service Developer Guide. If the service returns an enum value that is not available in the current SDK version, keyStatewill returnKeyState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromkeyStateAsString().- Returns:
- The current status of the KMS key.
         For more information about how key state affects the use of a KMS key, see Key states of KMS keys in the Key Management Service Developer Guide. 
- See Also:
 
- 
deletionDateThe date and time after which KMS deletes this KMS key. This value is present only when the KMS key is scheduled for deletion, that is, when its KeyStateisPendingDeletion.When the primary key in a multi-Region key is scheduled for deletion but still has replica keys, its key state is PendingReplicaDeletionand the length of its waiting period is displayed in thePendingDeletionWindowInDaysfield.- Returns:
- The date and time after which KMS deletes this KMS key. This value is present only when the KMS key is
         scheduled for deletion, that is, when its KeyStateisPendingDeletion.When the primary key in a multi-Region key is scheduled for deletion but still has replica keys, its key state is PendingReplicaDeletionand the length of its waiting period is displayed in thePendingDeletionWindowInDaysfield.
 
- 
validToThe earliest time at which any imported key material permanently associated with this KMS key expires. When a key material expires, KMS deletes the key material and the KMS key becomes unusable. This value is present only for KMS keys whose OriginisEXTERNALand theExpirationModelisKEY_MATERIAL_EXPIRES, otherwise this value is omitted.- Returns:
- The earliest time at which any imported key material permanently associated with this KMS key expires.
         When a key material expires, KMS deletes the key material and the KMS key becomes unusable. This value is
         present only for KMS keys whose OriginisEXTERNALand theExpirationModelisKEY_MATERIAL_EXPIRES, otherwise this value is omitted.
 
- 
originThe source of the key material for the KMS key. When this value is AWS_KMS, KMS created the key material. When this value isEXTERNAL, the key material was imported or the KMS key doesn't have any key material. When this value isAWS_CLOUDHSM, the key material was created in the CloudHSM cluster associated with a custom key store.If the service returns an enum value that is not available in the current SDK version, originwill returnOriginType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromoriginAsString().- Returns:
- The source of the key material for the KMS key. When this value is AWS_KMS, KMS created the key material. When this value isEXTERNAL, the key material was imported or the KMS key doesn't have any key material. When this value isAWS_CLOUDHSM, the key material was created in the CloudHSM cluster associated with a custom key store.
- See Also:
 
- 
originAsStringThe source of the key material for the KMS key. When this value is AWS_KMS, KMS created the key material. When this value isEXTERNAL, the key material was imported or the KMS key doesn't have any key material. When this value isAWS_CLOUDHSM, the key material was created in the CloudHSM cluster associated with a custom key store.If the service returns an enum value that is not available in the current SDK version, originwill returnOriginType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromoriginAsString().- Returns:
- The source of the key material for the KMS key. When this value is AWS_KMS, KMS created the key material. When this value isEXTERNAL, the key material was imported or the KMS key doesn't have any key material. When this value isAWS_CLOUDHSM, the key material was created in the CloudHSM cluster associated with a custom key store.
- See Also:
 
- 
customKeyStoreIdA unique identifier for the custom key store that contains the KMS key. This field is present only when the KMS key is created in a custom key store. - Returns:
- A unique identifier for the custom key store that contains the KMS key. This field is present only when the KMS key is created in a custom key store.
 
- 
cloudHsmClusterIdThe cluster ID of the CloudHSM cluster that contains the key material for the KMS key. When you create a KMS key in an CloudHSM custom key store, KMS creates the key material for the KMS key in the associated CloudHSM cluster. This field is present only when the KMS key is created in an CloudHSM key store. - Returns:
- The cluster ID of the CloudHSM cluster that contains the key material for the KMS key. When you create a KMS key in an CloudHSM custom key store, KMS creates the key material for the KMS key in the associated CloudHSM cluster. This field is present only when the KMS key is created in an CloudHSM key store.
 
- 
expirationModelSpecifies whether the KMS key's key material expires. This value is present only when OriginisEXTERNAL, otherwise this value is omitted.If the service returns an enum value that is not available in the current SDK version, expirationModelwill returnExpirationModelType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromexpirationModelAsString().- Returns:
- Specifies whether the KMS key's key material expires. This value is present only when OriginisEXTERNAL, otherwise this value is omitted.
- See Also:
 
- 
expirationModelAsStringSpecifies whether the KMS key's key material expires. This value is present only when OriginisEXTERNAL, otherwise this value is omitted.If the service returns an enum value that is not available in the current SDK version, expirationModelwill returnExpirationModelType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromexpirationModelAsString().- Returns:
- Specifies whether the KMS key's key material expires. This value is present only when OriginisEXTERNAL, otherwise this value is omitted.
- See Also:
 
- 
keyManagerThe manager of the KMS key. KMS keys in your Amazon Web Services account are either customer managed or Amazon Web Services managed. For more information about the difference, see KMS keys in the Key Management Service Developer Guide. If the service returns an enum value that is not available in the current SDK version, keyManagerwill returnKeyManagerType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromkeyManagerAsString().- Returns:
- The manager of the KMS key. KMS keys in your Amazon Web Services account are either customer managed or Amazon Web Services managed. For more information about the difference, see KMS keys in the Key Management Service Developer Guide.
- See Also:
 
- 
keyManagerAsStringThe manager of the KMS key. KMS keys in your Amazon Web Services account are either customer managed or Amazon Web Services managed. For more information about the difference, see KMS keys in the Key Management Service Developer Guide. If the service returns an enum value that is not available in the current SDK version, keyManagerwill returnKeyManagerType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromkeyManagerAsString().- Returns:
- The manager of the KMS key. KMS keys in your Amazon Web Services account are either customer managed or Amazon Web Services managed. For more information about the difference, see KMS keys in the Key Management Service Developer Guide.
- See Also:
 
- 
customerMasterKeySpecDeprecated.This field has been deprecated. Instead, use the KeySpec field.Instead, use the KeySpecfield.The KeySpecandCustomerMasterKeySpecfields have the same value. We recommend that you use theKeySpecfield in your code. However, to avoid breaking changes, KMS supports both fields.If the service returns an enum value that is not available in the current SDK version, customerMasterKeySpecwill returnCustomerMasterKeySpec.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcustomerMasterKeySpecAsString().- Returns:
- Instead, use the KeySpecfield.The KeySpecandCustomerMasterKeySpecfields have the same value. We recommend that you use theKeySpecfield in your code. However, to avoid breaking changes, KMS supports both fields.
- See Also:
 
- 
customerMasterKeySpecAsStringDeprecated.This field has been deprecated. Instead, use the KeySpec field.Instead, use the KeySpecfield.The KeySpecandCustomerMasterKeySpecfields have the same value. We recommend that you use theKeySpecfield in your code. However, to avoid breaking changes, KMS supports both fields.If the service returns an enum value that is not available in the current SDK version, customerMasterKeySpecwill returnCustomerMasterKeySpec.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcustomerMasterKeySpecAsString().- Returns:
- Instead, use the KeySpecfield.The KeySpecandCustomerMasterKeySpecfields have the same value. We recommend that you use theKeySpecfield in your code. However, to avoid breaking changes, KMS supports both fields.
- See Also:
 
- 
keySpecDescribes the type of key material in the KMS key. If the service returns an enum value that is not available in the current SDK version, keySpecwill returnKeySpec.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromkeySpecAsString().- Returns:
- Describes the type of key material in the KMS key.
- See Also:
 
- 
keySpecAsStringDescribes the type of key material in the KMS key. If the service returns an enum value that is not available in the current SDK version, keySpecwill returnKeySpec.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromkeySpecAsString().- Returns:
- Describes the type of key material in the KMS key.
- See Also:
 
- 
encryptionAlgorithmsThe encryption algorithms that the KMS key supports. You cannot use the KMS key with other encryption algorithms within KMS. This value is present only when the KeyUsageof the KMS key isENCRYPT_DECRYPT.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException. This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasEncryptionAlgorithms()method.- Returns:
- The encryption algorithms that the KMS key supports. You cannot use the KMS key with other encryption
         algorithms within KMS.
         This value is present only when the KeyUsageof the KMS key isENCRYPT_DECRYPT.
 
- 
hasEncryptionAlgorithmspublic final boolean hasEncryptionAlgorithms()For responses, this returns true if the service returned a value for the EncryptionAlgorithms property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
- 
encryptionAlgorithmsAsStringsThe encryption algorithms that the KMS key supports. You cannot use the KMS key with other encryption algorithms within KMS. This value is present only when the KeyUsageof the KMS key isENCRYPT_DECRYPT.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException. This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasEncryptionAlgorithms()method.- Returns:
- The encryption algorithms that the KMS key supports. You cannot use the KMS key with other encryption
         algorithms within KMS.
         This value is present only when the KeyUsageof the KMS key isENCRYPT_DECRYPT.
 
- 
signingAlgorithmsThe signing algorithms that the KMS key supports. You cannot use the KMS key with other signing algorithms within KMS. This field appears only when the KeyUsageof the KMS key isSIGN_VERIFY.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException. This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasSigningAlgorithms()method.- Returns:
- The signing algorithms that the KMS key supports. You cannot use the KMS key with other signing
         algorithms within KMS.
         This field appears only when the KeyUsageof the KMS key isSIGN_VERIFY.
 
- 
hasSigningAlgorithmspublic final boolean hasSigningAlgorithms()For responses, this returns true if the service returned a value for the SigningAlgorithms property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
- 
signingAlgorithmsAsStringsThe signing algorithms that the KMS key supports. You cannot use the KMS key with other signing algorithms within KMS. This field appears only when the KeyUsageof the KMS key isSIGN_VERIFY.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException. This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasSigningAlgorithms()method.- Returns:
- The signing algorithms that the KMS key supports. You cannot use the KMS key with other signing
         algorithms within KMS.
         This field appears only when the KeyUsageof the KMS key isSIGN_VERIFY.
 
- 
keyAgreementAlgorithmsThe key agreement algorithm used to derive a shared secret. Attempts to modify the collection returned by this method will result in an UnsupportedOperationException. This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasKeyAgreementAlgorithms()method.- Returns:
- The key agreement algorithm used to derive a shared secret.
 
- 
hasKeyAgreementAlgorithmspublic final boolean hasKeyAgreementAlgorithms()For responses, this returns true if the service returned a value for the KeyAgreementAlgorithms property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
- 
keyAgreementAlgorithmsAsStringsThe key agreement algorithm used to derive a shared secret. Attempts to modify the collection returned by this method will result in an UnsupportedOperationException. This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasKeyAgreementAlgorithms()method.- Returns:
- The key agreement algorithm used to derive a shared secret.
 
- 
multiRegionIndicates whether the KMS key is a multi-Region ( True) or regional (False) key. This value isTruefor multi-Region primary and replica keys andFalsefor regional KMS keys.For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide. - Returns:
- Indicates whether the KMS key is a multi-Region (True) or regional (False) key. This value isTruefor multi-Region primary and replica keys andFalsefor regional KMS keys.For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide. 
 
- 
multiRegionConfigurationLists the primary and replica keys in same multi-Region key. This field is present only when the value of the MultiRegionfield isTrue.For more information about any listed KMS key, use the DescribeKey operation. - 
 MultiRegionKeyTypeindicates whether the KMS key is aPRIMARYorREPLICAkey.
- 
 PrimaryKeydisplays the key ARN and Region of the primary key. This field displays the current KMS key if it is the primary key.
- 
 ReplicaKeysdisplays the key ARNs and Regions of all replica keys. This field includes the current KMS key if it is a replica key.
 - Returns:
- Lists the primary and replica keys in same multi-Region key. This field is present only when the value of
         the MultiRegionfield isTrue.For more information about any listed KMS key, use the DescribeKey operation. - 
         MultiRegionKeyTypeindicates whether the KMS key is aPRIMARYorREPLICAkey.
- 
         PrimaryKeydisplays the key ARN and Region of the primary key. This field displays the current KMS key if it is the primary key.
- 
         ReplicaKeysdisplays the key ARNs and Regions of all replica keys. This field includes the current KMS key if it is a replica key.
 
- 
         
 
- 
 
- 
pendingDeletionWindowInDaysThe waiting period before the primary key in a multi-Region key is deleted. This waiting period begins when the last of its replica keys is deleted. This value is present only when the KeyStateof the KMS key isPendingReplicaDeletion. That indicates that the KMS key is the primary key in a multi-Region key, it is scheduled for deletion, and it still has existing replica keys.When a single-Region KMS key or a multi-Region replica key is scheduled for deletion, its deletion date is displayed in the DeletionDatefield. However, when the primary key in a multi-Region key is scheduled for deletion, its waiting period doesn't begin until all of its replica keys are deleted. This value displays that waiting period. When the last replica key in the multi-Region key is deleted, theKeyStateof the scheduled primary key changes fromPendingReplicaDeletiontoPendingDeletionand the deletion date appears in theDeletionDatefield.- Returns:
- The waiting period before the primary key in a multi-Region key is deleted. This waiting period begins
         when the last of its replica keys is deleted. This value is present only when the KeyStateof the KMS key isPendingReplicaDeletion. That indicates that the KMS key is the primary key in a multi-Region key, it is scheduled for deletion, and it still has existing replica keys.When a single-Region KMS key or a multi-Region replica key is scheduled for deletion, its deletion date is displayed in the DeletionDatefield. However, when the primary key in a multi-Region key is scheduled for deletion, its waiting period doesn't begin until all of its replica keys are deleted. This value displays that waiting period. When the last replica key in the multi-Region key is deleted, theKeyStateof the scheduled primary key changes fromPendingReplicaDeletiontoPendingDeletionand the deletion date appears in theDeletionDatefield.
 
- 
macAlgorithmsThe message authentication code (MAC) algorithm that the HMAC KMS key supports. This value is present only when the KeyUsageof the KMS key isGENERATE_VERIFY_MAC.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException. This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasMacAlgorithms()method.- Returns:
- The message authentication code (MAC) algorithm that the HMAC KMS key supports.
         This value is present only when the KeyUsageof the KMS key isGENERATE_VERIFY_MAC.
 
- 
hasMacAlgorithmspublic final boolean hasMacAlgorithms()For responses, this returns true if the service returned a value for the MacAlgorithms property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
- 
macAlgorithmsAsStringsThe message authentication code (MAC) algorithm that the HMAC KMS key supports. This value is present only when the KeyUsageof the KMS key isGENERATE_VERIFY_MAC.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException. This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasMacAlgorithms()method.- Returns:
- The message authentication code (MAC) algorithm that the HMAC KMS key supports.
         This value is present only when the KeyUsageof the KMS key isGENERATE_VERIFY_MAC.
 
- 
xksKeyConfigurationInformation about the external key that is associated with a KMS key in an external key store. For more information, see External key in the Key Management Service Developer Guide. - Returns:
- Information about the external key that is associated with a KMS key in an external key store.
         For more information, see External key in the Key Management Service Developer Guide. 
 
- 
currentKeyMaterialIdIdentifies the current key material. This value is present for symmetric encryption keys with AWS_KMSorigin and single-Region, symmetric encryption keys withEXTERNALorigin. These KMS keys support automatic or on-demand key rotation and can have multiple key materials associated with them. KMS uses the current key material for both encryption and decryption, and the non-current key material for decryption operations only.- Returns:
- Identifies the current key material. This value is present for symmetric encryption keys with
         AWS_KMSorigin and single-Region, symmetric encryption keys withEXTERNALorigin. These KMS keys support automatic or on-demand key rotation and can have multiple key materials associated with them. KMS uses the current key material for both encryption and decryption, and the non-current key material for decryption operations only.
 
- 
toBuilderDescription copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
- toBuilderin interface- ToCopyableBuilder<KeyMetadata.Builder,- KeyMetadata> 
- Returns:
- a builder for type T
 
- 
builder
- 
serializableBuilderClass
- 
hashCode
- 
equals
- 
equalsBySdkFieldsDescription copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
- equalsBySdkFieldsin 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
- 
getValueForField
- 
sdkFields
- 
sdkFieldNameToField- Specified by:
- sdkFieldNameToFieldin interface- SdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
 
 
-