Class GetKeyRotationStatusResponse
- 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.GetKeyRotationStatusResponse
-
- All Implemented Interfaces:
SdkPojo
,ToCopyableBuilder<GetKeyRotationStatusResponse.Builder,GetKeyRotationStatusResponse>
@Generated("software.amazon.awssdk:codegen") public final class GetKeyRotationStatusResponse extends KmsResponse implements ToCopyableBuilder<GetKeyRotationStatusResponse.Builder,GetKeyRotationStatusResponse>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
GetKeyRotationStatusResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GetKeyRotationStatusResponse.Builder
builder()
boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
String
keyId()
Identifies the specified symmetric encryption KMS key.Boolean
keyRotationEnabled()
A Boolean value that specifies whether key rotation is enabled.Instant
nextRotationDate()
The next date that KMS will automatically rotate the key material.Instant
onDemandRotationStartDate()
Identifies the date and time that an in progress on-demand rotation was initiated.Integer
rotationPeriodInDays()
The number of days between each automatic rotation.List<SdkField<?>>
sdkFields()
static Class<? extends GetKeyRotationStatusResponse.Builder>
serializableBuilderClass()
GetKeyRotationStatusResponse.Builder
toBuilder()
String
toString()
Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.services.kms.model.KmsResponse
responseMetadata
-
Methods inherited from class software.amazon.awssdk.core.SdkResponse
sdkHttpResponse
-
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
-
keyRotationEnabled
public final Boolean keyRotationEnabled()
A Boolean value that specifies whether key rotation is enabled.
- Returns:
- A Boolean value that specifies whether key rotation is enabled.
-
keyId
public final String keyId()
Identifies the specified symmetric encryption KMS key.
- Returns:
- Identifies the specified symmetric encryption KMS key.
-
rotationPeriodInDays
public final Integer rotationPeriodInDays()
The number of days between each automatic rotation. The default value is 365 days.
- Returns:
- The number of days between each automatic rotation. The default value is 365 days.
-
nextRotationDate
public final Instant nextRotationDate()
The next date that KMS will automatically rotate the key material.
- Returns:
- The next date that KMS will automatically rotate the key material.
-
onDemandRotationStartDate
public final Instant onDemandRotationStartDate()
Identifies the date and time that an in progress on-demand rotation was initiated.
The KMS API follows an eventual consistency model due to the distributed nature of the system. As a result, there might be a slight delay between initiating on-demand key rotation and the rotation's completion. Once the on-demand rotation is complete, use ListKeyRotations to view the details of the on-demand rotation.
- Returns:
- Identifies the date and time that an in progress on-demand rotation was initiated.
The KMS API follows an eventual consistency model due to the distributed nature of the system. As a result, there might be a slight delay between initiating on-demand key rotation and the rotation's completion. Once the on-demand rotation is complete, use ListKeyRotations to view the details of the on-demand rotation.
-
toBuilder
public GetKeyRotationStatusResponse.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<GetKeyRotationStatusResponse.Builder,GetKeyRotationStatusResponse>
- Specified by:
toBuilder
in classAwsResponse
-
builder
public static GetKeyRotationStatusResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends GetKeyRotationStatusResponse.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCode
in classAwsResponse
-
equals
public final boolean equals(Object obj)
- Overrides:
equals
in classAwsResponse
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in 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.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForField
in classSdkResponse
-
-