Class RotationsListEntry
- java.lang.Object
-
- software.amazon.awssdk.services.kms.model.RotationsListEntry
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<RotationsListEntry.Builder,RotationsListEntry>
@Generated("software.amazon.awssdk:codegen") public final class RotationsListEntry extends Object implements SdkPojo, Serializable, ToCopyableBuilder<RotationsListEntry.Builder,RotationsListEntry>
Each entry contains information about one of the key materials associated with a KMS key.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRotationsListEntry.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RotationsListEntry.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)ExpirationModelTypeexpirationModel()Indicates if the key material is configured to automatically expire.StringexpirationModelAsString()Indicates if the key material is configured to automatically expire.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()ImportStateimportState()Indicates if the key material is currently imported into KMS.StringimportStateAsString()Indicates if the key material is currently imported into KMS.StringkeyId()Unique identifier of the key.StringkeyMaterialDescription()User-specified description of the key material.StringkeyMaterialId()Unique identifier of the key material.KeyMaterialStatekeyMaterialState()There are three possible values for this field:CURRENT,NON_CURRENTandPENDING_ROTATION.StringkeyMaterialStateAsString()There are three possible values for this field:CURRENT,NON_CURRENTandPENDING_ROTATION.InstantrotationDate()Date and time that the key material rotation completed.RotationTyperotationType()Identifies whether the key material rotation was a scheduled automatic rotation or an on-demand rotation.StringrotationTypeAsString()Identifies whether the key material rotation was a scheduled automatic rotation or an on-demand rotation.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends RotationsListEntry.Builder>serializableBuilderClass()RotationsListEntry.BuildertoBuilder()StringtoString()Returns a string representation of this object.InstantvalidTo()Date and time at which the key material expires.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
keyId
public final String keyId()
Unique identifier of the key.
- Returns:
- Unique identifier of the key.
-
keyMaterialId
public final String keyMaterialId()
Unique identifier of the key material.
- Returns:
- Unique identifier of the key material.
-
keyMaterialDescription
public final String 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
public final ImportState 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:
ImportState
-
importStateAsString
public final String 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:
ImportState
-
keyMaterialState
public final KeyMaterialState keyMaterialState()
There are three possible values for this field:
CURRENT,NON_CURRENTandPENDING_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. Key material inPENDING_ROTATIONis not permanently associated with the KMS key. You can delete this key material and import different key material in its place. ThePENDING_ROTATIONvalue is 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 three possible values for this field:
CURRENT,NON_CURRENTandPENDING_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. Key material inPENDING_ROTATIONis not permanently associated with the KMS key. You can delete this key material and import different key material in its place. ThePENDING_ROTATIONvalue is 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:
KeyMaterialState
-
keyMaterialStateAsString
public final String keyMaterialStateAsString()
There are three possible values for this field:
CURRENT,NON_CURRENTandPENDING_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. Key material inPENDING_ROTATIONis not permanently associated with the KMS key. You can delete this key material and import different key material in its place. ThePENDING_ROTATIONvalue is 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 three possible values for this field:
CURRENT,NON_CURRENTandPENDING_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. Key material inPENDING_ROTATIONis not permanently associated with the KMS key. You can delete this key material and import different key material in its place. ThePENDING_ROTATIONvalue is 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:
KeyMaterialState
-
expirationModel
public final ExpirationModelType 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:
ExpirationModelType
-
expirationModelAsString
public final String 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:
ExpirationModelType
-
validTo
public final Instant 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
public final Instant 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
public final RotationType 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:
RotationType
-
rotationTypeAsString
public final String 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:
RotationType
-
toBuilder
public RotationsListEntry.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<RotationsListEntry.Builder,RotationsListEntry>
-
builder
public static RotationsListEntry.Builder builder()
-
serializableBuilderClass
public static Class<? extends RotationsListEntry.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String 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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-