Class RotationsListEntry
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<RotationsListEntry.Builder,RotationsListEntry>
Each entry contains information about one of the key materials associated with a KMS key.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic RotationsListEntry.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) final ExpirationModelTypeIndicates if the key material is configured to automatically expire.final StringIndicates if the key material is configured to automatically expire.final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final ImportStateIndicates if the key material is currently imported into KMS.final StringIndicates if the key material is currently imported into KMS.final StringkeyId()Unique identifier of the key.final StringUser-specified description of the key material.final StringUnique identifier of the key material.final KeyMaterialStateThere are four possible values for this field:CURRENT,NON_CURRENT,PENDING_MULTI_REGION_IMPORT_AND_ROTATIONandPENDING_ROTATION.final StringThere are four possible values for this field:CURRENT,NON_CURRENT,PENDING_MULTI_REGION_IMPORT_AND_ROTATIONandPENDING_ROTATION.final InstantDate and time that the key material rotation completed.final RotationTypeIdentifies whether the key material rotation was a scheduled automatic rotation or an on-demand rotation.final StringIdentifies whether the key material rotation was a scheduled automatic rotation or an on-demand rotation.static Class<? extends RotationsListEntry.Builder>final StringtoString()Returns a string representation of this object.final InstantvalidTo()Date and time at which the key material expires.Methods 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
Unique identifier of the key.
- Returns:
- Unique identifier of the key.
-
keyMaterialId
Unique identifier of the key material.
- Returns:
- Unique identifier of the key material.
-
keyMaterialDescription
User-specified description of the key material. This field is only present for symmetric encryption KMS keys with
EXTERNALorigin.- Returns:
- User-specified description of the key material. This field is only present for symmetric encryption KMS
keys with
EXTERNALorigin.
-
importState
Indicates if the key material is currently imported into KMS. It has two possible values:
IMPORTEDorPENDING_IMPORT. This field is only present for symmetric encryption KMS keys withEXTERNALorigin.If the service returns an enum value that is not available in the current SDK version,
importStatewill returnImportState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromimportStateAsString().- Returns:
- Indicates if the key material is currently imported into KMS. It has two possible values:
IMPORTEDorPENDING_IMPORT. This field is only present for symmetric encryption KMS keys withEXTERNALorigin. - See Also:
-
importStateAsString
Indicates if the key material is currently imported into KMS. It has two possible values:
IMPORTEDorPENDING_IMPORT. This field is only present for symmetric encryption KMS keys withEXTERNALorigin.If the service returns an enum value that is not available in the current SDK version,
importStatewill returnImportState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromimportStateAsString().- Returns:
- Indicates if the key material is currently imported into KMS. It has two possible values:
IMPORTEDorPENDING_IMPORT. This field is only present for symmetric encryption KMS keys withEXTERNALorigin. - See Also:
-
keyMaterialState
There are four possible values for this field:
CURRENT,NON_CURRENT,PENDING_MULTI_REGION_IMPORT_AND_ROTATIONandPENDING_ROTATION. KMS usesCURRENTkey material for both encryption and decryption andNON_CURRENTkey material only for decryption.PENDING_ROTATIONidentifies key material that has been imported for on-demand key rotation but the rotation hasn't completed. The key material statePENDING_MULTI_REGION_IMPORT_AND_ROTATIONis unique to multi-region, symmetric encryption keys with imported key material. It indicates key material that has been imported into the primary Region key but not all of the replica Region keys. When this key material is imported in to all of the replica Region keys, the key material state will change toPENDING_ROTATION. Key material inPENDING_MULTI_REGION_IMPORT_AND_ROTATIONorPENDING_ROTATIONstate is not permanently associated with the KMS key. You can delete this key material and import different key material in its place. ThePENDING_MULTI_REGION_IMPORT_AND_ROTATIONandPENDING_ROTATIONvalues are only used in symmetric encryption keys with imported key material. The other values,CURRENTandNON_CURRENT, are used for all KMS keys that support automatic or on-demand key rotation.If the service returns an enum value that is not available in the current SDK version,
keyMaterialStatewill returnKeyMaterialState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromkeyMaterialStateAsString().- Returns:
- There are four possible values for this field:
CURRENT,NON_CURRENT,PENDING_MULTI_REGION_IMPORT_AND_ROTATIONandPENDING_ROTATION. KMS usesCURRENTkey material for both encryption and decryption andNON_CURRENTkey material only for decryption.PENDING_ROTATIONidentifies key material that has been imported for on-demand key rotation but the rotation hasn't completed. The key material statePENDING_MULTI_REGION_IMPORT_AND_ROTATIONis unique to multi-region, symmetric encryption keys with imported key material. It indicates key material that has been imported into the primary Region key but not all of the replica Region keys. When this key material is imported in to all of the replica Region keys, the key material state will change toPENDING_ROTATION. Key material inPENDING_MULTI_REGION_IMPORT_AND_ROTATIONorPENDING_ROTATIONstate is not permanently associated with the KMS key. You can delete this key material and import different key material in its place. ThePENDING_MULTI_REGION_IMPORT_AND_ROTATIONandPENDING_ROTATIONvalues are only used in symmetric encryption keys with imported key material. The other values,CURRENTandNON_CURRENT, are used for all KMS keys that support automatic or on-demand key rotation. - See Also:
-
keyMaterialStateAsString
There are four possible values for this field:
CURRENT,NON_CURRENT,PENDING_MULTI_REGION_IMPORT_AND_ROTATIONandPENDING_ROTATION. KMS usesCURRENTkey material for both encryption and decryption andNON_CURRENTkey material only for decryption.PENDING_ROTATIONidentifies key material that has been imported for on-demand key rotation but the rotation hasn't completed. The key material statePENDING_MULTI_REGION_IMPORT_AND_ROTATIONis unique to multi-region, symmetric encryption keys with imported key material. It indicates key material that has been imported into the primary Region key but not all of the replica Region keys. When this key material is imported in to all of the replica Region keys, the key material state will change toPENDING_ROTATION. Key material inPENDING_MULTI_REGION_IMPORT_AND_ROTATIONorPENDING_ROTATIONstate is not permanently associated with the KMS key. You can delete this key material and import different key material in its place. ThePENDING_MULTI_REGION_IMPORT_AND_ROTATIONandPENDING_ROTATIONvalues are only used in symmetric encryption keys with imported key material. The other values,CURRENTandNON_CURRENT, are used for all KMS keys that support automatic or on-demand key rotation.If the service returns an enum value that is not available in the current SDK version,
keyMaterialStatewill returnKeyMaterialState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromkeyMaterialStateAsString().- Returns:
- There are four possible values for this field:
CURRENT,NON_CURRENT,PENDING_MULTI_REGION_IMPORT_AND_ROTATIONandPENDING_ROTATION. KMS usesCURRENTkey material for both encryption and decryption andNON_CURRENTkey material only for decryption.PENDING_ROTATIONidentifies key material that has been imported for on-demand key rotation but the rotation hasn't completed. The key material statePENDING_MULTI_REGION_IMPORT_AND_ROTATIONis unique to multi-region, symmetric encryption keys with imported key material. It indicates key material that has been imported into the primary Region key but not all of the replica Region keys. When this key material is imported in to all of the replica Region keys, the key material state will change toPENDING_ROTATION. Key material inPENDING_MULTI_REGION_IMPORT_AND_ROTATIONorPENDING_ROTATIONstate is not permanently associated with the KMS key. You can delete this key material and import different key material in its place. ThePENDING_MULTI_REGION_IMPORT_AND_ROTATIONandPENDING_ROTATIONvalues are only used in symmetric encryption keys with imported key material. The other values,CURRENTandNON_CURRENT, are used for all KMS keys that support automatic or on-demand key rotation. - See Also:
-
expirationModel
Indicates if the key material is configured to automatically expire. There are two possible values for this field:
KEY_MATERIAL_EXPIRESandKEY_MATERIAL_DOES_NOT_EXPIRE. For any key material that expires, the expiration date and time is indicated inValidTo. This field is only present for symmetric encryption KMS keys withEXTERNALorigin.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:
- Indicates if the key material is configured to automatically expire. There are two possible values for
this field:
KEY_MATERIAL_EXPIRESandKEY_MATERIAL_DOES_NOT_EXPIRE. For any key material that expires, the expiration date and time is indicated inValidTo. This field is only present for symmetric encryption KMS keys withEXTERNALorigin. - See Also:
-
expirationModelAsString
Indicates if the key material is configured to automatically expire. There are two possible values for this field:
KEY_MATERIAL_EXPIRESandKEY_MATERIAL_DOES_NOT_EXPIRE. For any key material that expires, the expiration date and time is indicated inValidTo. This field is only present for symmetric encryption KMS keys withEXTERNALorigin.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:
- Indicates if the key material is configured to automatically expire. There are two possible values for
this field:
KEY_MATERIAL_EXPIRESandKEY_MATERIAL_DOES_NOT_EXPIRE. For any key material that expires, the expiration date and time is indicated inValidTo. This field is only present for symmetric encryption KMS keys withEXTERNALorigin. - See Also:
-
validTo
Date and time at which the key material expires. This field is only present for symmetric encryption KMS keys with
EXTERNALorigin in rotation list entries with anExpirationModelvalue ofKEY_MATERIAL_EXPIRES.- Returns:
- Date and time at which the key material expires. This field is only present for symmetric encryption KMS
keys with
EXTERNALorigin in rotation list entries with anExpirationModelvalue ofKEY_MATERIAL_EXPIRES.
-
rotationDate
Date and time that the key material rotation completed. Formatted as Unix time. This field is not present for the first key material or an imported key material in
PENDING_ROTATIONstate.- Returns:
- Date and time that the key material rotation completed. Formatted as Unix time. This field is not present
for the first key material or an imported key material in
PENDING_ROTATIONstate.
-
rotationType
Identifies whether the key material rotation was a scheduled automatic rotation or an on-demand rotation. This field is not present for the first key material or an imported key material in
PENDING_ROTATIONstate.If the service returns an enum value that is not available in the current SDK version,
rotationTypewill returnRotationType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromrotationTypeAsString().- Returns:
- Identifies whether the key material rotation was a scheduled automatic
rotation or an on-demand
rotation. This field is not present for the first key material or an imported key material in
PENDING_ROTATIONstate. - See Also:
-
rotationTypeAsString
Identifies whether the key material rotation was a scheduled automatic rotation or an on-demand rotation. This field is not present for the first key material or an imported key material in
PENDING_ROTATIONstate.If the service returns an enum value that is not available in the current SDK version,
rotationTypewill returnRotationType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromrotationTypeAsString().- Returns:
- Identifies whether the key material rotation was a scheduled automatic
rotation or an on-demand
rotation. This field is not present for the first key material or an imported key material in
PENDING_ROTATIONstate. - See Also:
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<RotationsListEntry.Builder,RotationsListEntry>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
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
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-