public void setRetentionPeriod(Integer retentionPeriod) {
        this.retentionPeriod = retentionPeriod;
    }
<p>
The retention period of the event data store, in days. If <code>BillingMode</code> is set to
<code>EXTENDABLE_RETENTION_PRICING</code>, you can set a retention period of up to 3653 days, the equivalent of
10 years. If <code>BillingMode</code> is set to <code>FIXED_RETENTION_PRICING</code>, you can set a retention
period of up to 2557 days, the equivalent of seven years.
</p>
<p>
CloudTrail Lake determines whether to retain an event by checking if the <code>eventTime</code> of the event is
within the specified retention period. For example, if you set a retention period of 90 days, CloudTrail will
remove events when the <code>eventTime</code> is older than 90 days.
</p>
<note>
<p>
If you plan to copy trail events to this event data store, we recommend that you consider both the age of the
events that you want to copy as well as how long you want to keep the copied events in your event data store. For
example, if you copy trail events that are 5 years old and specify a retention period of 7 years, the event data
store will retain those events for two years.
</p>
</note>

@param retentionPeriod
       The retention period of the event data store, in days. If <code>BillingMode</code> is set to
       <code>EXTENDABLE_RETENTION_PRICING</code>, you can set a retention period of up to 3653 days, the
       equivalent of 10 years. If <code>BillingMode</code> is set to <code>FIXED_RETENTION_PRICING</code>, you
       can set a retention period of up to 2557 days, the equivalent of seven years.</p>
       <p>
       CloudTrail Lake determines whether to retain an event by checking if the <code>eventTime</code> of the
       event is within the specified retention period. For example, if you set a retention period of 90 days,
       CloudTrail will remove events when the <code>eventTime</code> is older than 90 days.
       </p>
       <note>
       <p>
       If you plan to copy trail events to this event data store, we recommend that you consider both the age of
       the events that you want to copy as well as how long you want to keep the copied events in your event data
       store. For example, if you copy trail events that are 5 years old and specify a retention period of 7
       years, the event data store will retain those events for two years.
       </p>
aws-java-sdk-cloudtrail/src/main/java/com/amazonaws/services/cloudtrail/model/CreateEventDataStoreRequest.java