Interface GetKeyRotationStatusResponse.Builder

All Superinterfaces:
AwsResponse.Builder, Buildable, CopyableBuilder<GetKeyRotationStatusResponse.Builder,GetKeyRotationStatusResponse>, KmsResponse.Builder, SdkBuilder<GetKeyRotationStatusResponse.Builder,GetKeyRotationStatusResponse>, SdkPojo, SdkResponse.Builder
Enclosing class:
GetKeyRotationStatusResponse

public static interface GetKeyRotationStatusResponse.Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<GetKeyRotationStatusResponse.Builder,GetKeyRotationStatusResponse>
  • Method Details

    • keyRotationEnabled

      GetKeyRotationStatusResponse.Builder keyRotationEnabled(Boolean keyRotationEnabled)

      A Boolean value that specifies whether key rotation is enabled.

      Parameters:
      keyRotationEnabled - A Boolean value that specifies whether key rotation is enabled.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • keyId

      Identifies the specified symmetric encryption KMS key.

      Parameters:
      keyId - Identifies the specified symmetric encryption KMS key.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • rotationPeriodInDays

      GetKeyRotationStatusResponse.Builder rotationPeriodInDays(Integer rotationPeriodInDays)

      The number of days between each automatic rotation. The default value is 365 days.

      Parameters:
      rotationPeriodInDays - The number of days between each automatic rotation. The default value is 365 days.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • nextRotationDate

      GetKeyRotationStatusResponse.Builder nextRotationDate(Instant nextRotationDate)

      The next date that KMS will automatically rotate the key material.

      Parameters:
      nextRotationDate - The next date that KMS will automatically rotate the key material.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • onDemandRotationStartDate

      GetKeyRotationStatusResponse.Builder onDemandRotationStartDate(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.

      Parameters:
      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:
      Returns a reference to this object so that method calls can be chained together.