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 interfaceGetKeyRotationStatusResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GetKeyRotationStatusResponse.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringkeyId()Identifies the specified symmetric encryption KMS key.BooleankeyRotationEnabled()A Boolean value that specifies whether key rotation is enabled.InstantnextRotationDate()The next date that KMS will automatically rotate the key material.InstantonDemandRotationStartDate()Identifies the date and time that an in progress on-demand rotation was initiated.IntegerrotationPeriodInDays()The number of days between each automatic rotation.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends GetKeyRotationStatusResponse.Builder>serializableBuilderClass()GetKeyRotationStatusResponse.BuildertoBuilder()StringtoString()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.
KMS uses a background process to perform rotations. 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, KMS removes this field from the response. You can use ListKeyRotations to view the details of the completed on-demand rotation.
- Returns:
- Identifies the date and time that an in progress on-demand rotation was initiated.
KMS uses a background process to perform rotations. 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, KMS removes this field from the response. You can use ListKeyRotations to view the details of the completed on-demand rotation.
-
toBuilder
public GetKeyRotationStatusResponse.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<GetKeyRotationStatusResponse.Builder,GetKeyRotationStatusResponse>- Specified by:
toBuilderin classAwsResponse
-
builder
public static GetKeyRotationStatusResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends GetKeyRotationStatusResponse.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsResponse
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsResponse
-
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.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkResponse
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-