public EnableKeyRotationRequest withRotationPeriodInDays(Integer rotationPeriodInDays) {
        setRotationPeriodInDays(rotationPeriodInDays);
        return this;
    }
<p>
Use this parameter to specify a custom period of time between each rotation date. If no value is specified, the
default value is 365 days.
</p>
<p>
The rotation period defines the number of days after you enable automatic key rotation that KMS will rotate your
key material, and the number of days between each automatic rotation thereafter.
</p>
<p>
You can use the <a href=
"https://docs.aws.amazon.com/kms/latest/developerguide/conditions-kms.html#conditions-kms-rotation-period-in-days"
> <code>kms:RotationPeriodInDays</code> </a> condition key to further constrain the values that principals can
specify in the <code>RotationPeriodInDays</code> parameter.
</p>
<p>
</p>

@param rotationPeriodInDays
       Use this parameter to specify a custom period of time between each rotation date. If no value is
       specified, the default value is 365 days.</p>
       <p>
       The rotation period defines the number of days after you enable automatic key rotation that KMS will
       rotate your key material, and the number of days between each automatic rotation thereafter.
       </p>
       <p>
       You can use the <a href=
       "https://docs.aws.amazon.com/kms/latest/developerguide/conditions-kms.html#conditions-kms-rotation-period-in-days"
       > <code>kms:RotationPeriodInDays</code> </a> condition key to further constrain the values that principals
       can specify in the <code>RotationPeriodInDays</code> parameter.
       </p>
       <p>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-kms/src/main/java/com/amazonaws/services/kms/model/EnableKeyRotationRequest.java