Interface RotationsListEntry.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<RotationsListEntry.Builder,RotationsListEntry>,SdkBuilder<RotationsListEntry.Builder,RotationsListEntry>,SdkPojo
- Enclosing class:
- RotationsListEntry
@Mutable @NotThreadSafe public static interface RotationsListEntry.Builder extends SdkPojo, CopyableBuilder<RotationsListEntry.Builder,RotationsListEntry>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RotationsListEntry.BuilderexpirationModel(String expirationModel)Indicates if the key material is configured to automatically expire.RotationsListEntry.BuilderexpirationModel(ExpirationModelType expirationModel)Indicates if the key material is configured to automatically expire.RotationsListEntry.BuilderimportState(String importState)Indicates if the key material is currently imported into KMS.RotationsListEntry.BuilderimportState(ImportState importState)Indicates if the key material is currently imported into KMS.RotationsListEntry.BuilderkeyId(String keyId)Unique identifier of the key.RotationsListEntry.BuilderkeyMaterialDescription(String keyMaterialDescription)User-specified description of the key material.RotationsListEntry.BuilderkeyMaterialId(String keyMaterialId)Unique identifier of the key material.RotationsListEntry.BuilderkeyMaterialState(String keyMaterialState)There are four possible values for this field:CURRENT,NON_CURRENT,PENDING_MULTI_REGION_IMPORT_AND_ROTATIONandPENDING_ROTATION.RotationsListEntry.BuilderkeyMaterialState(KeyMaterialState keyMaterialState)There are four possible values for this field:CURRENT,NON_CURRENT,PENDING_MULTI_REGION_IMPORT_AND_ROTATIONandPENDING_ROTATION.RotationsListEntry.BuilderrotationDate(Instant rotationDate)Date and time that the key material rotation completed.RotationsListEntry.BuilderrotationType(String rotationType)Identifies whether the key material rotation was a scheduled automatic rotation or an on-demand rotation.RotationsListEntry.BuilderrotationType(RotationType rotationType)Identifies whether the key material rotation was a scheduled automatic rotation or an on-demand rotation.RotationsListEntry.BuildervalidTo(Instant validTo)Date and time at which the key material expires.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
keyId
RotationsListEntry.Builder keyId(String keyId)
Unique identifier of the key.
- Parameters:
keyId- Unique identifier of the key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
keyMaterialId
RotationsListEntry.Builder keyMaterialId(String keyMaterialId)
Unique identifier of the key material.
- Parameters:
keyMaterialId- Unique identifier of the key material.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
keyMaterialDescription
RotationsListEntry.Builder keyMaterialDescription(String keyMaterialDescription)
User-specified description of the key material. This field is only present for symmetric encryption KMS keys with
EXTERNALorigin.- Parameters:
keyMaterialDescription- User-specified description of the key material. This field is only present for symmetric encryption KMS keys withEXTERNALorigin.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
importState
RotationsListEntry.Builder importState(String 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.- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ImportState,ImportState
-
importState
RotationsListEntry.Builder importState(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.- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ImportState,ImportState
-
keyMaterialState
RotationsListEntry.Builder keyMaterialState(String 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.- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
KeyMaterialState,KeyMaterialState
-
keyMaterialState
RotationsListEntry.Builder keyMaterialState(KeyMaterialState 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.- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
KeyMaterialState,KeyMaterialState
-
expirationModel
RotationsListEntry.Builder expirationModel(String 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.- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ExpirationModelType,ExpirationModelType
-
expirationModel
RotationsListEntry.Builder expirationModel(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.- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ExpirationModelType,ExpirationModelType
-
validTo
RotationsListEntry.Builder validTo(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.- Parameters:
validTo- Date and time at which the key material expires. This field is only present for symmetric encryption KMS keys withEXTERNALorigin in rotation list entries with anExpirationModelvalue ofKEY_MATERIAL_EXPIRES.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rotationDate
RotationsListEntry.Builder rotationDate(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.- Parameters:
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 inPENDING_ROTATIONstate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rotationType
RotationsListEntry.Builder rotationType(String 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.- Parameters:
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 inPENDING_ROTATIONstate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RotationType,RotationType
-
rotationType
RotationsListEntry.Builder rotationType(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.- Parameters:
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 inPENDING_ROTATIONstate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RotationType,RotationType
-
-