Class 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>
  • Method Details

    • 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

      Specified by:
      toBuilder in interface ToCopyableBuilder<GetKeyRotationStatusResponse.Builder,GetKeyRotationStatusResponse>
      Specified by:
      toBuilder in class AwsResponse
    • builder

      public static GetKeyRotationStatusResponse.Builder builder()
    • serializableBuilderClass

      public static Class<? extends GetKeyRotationStatusResponse.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class AwsResponse
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class AwsResponse
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Specified by:
      equalsBySdkFields in interface SdkPojo
    • 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.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
      Overrides:
      getValueForField in class SdkResponse
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo