public void setTtl(TimeToLive ttl) {
        this.ttl = ttl;
    }
<p>
Modifies Time to Live custom settings for the table. The options are:
</p>
<ul>
<li>
<p>
<code>status:enabled</code>
</p>
</li>
<li>
<p>
<code>status:disabled</code>
</p>
</li>
</ul>
<p>
The default is <code>status:disabled</code>. After <code>ttl</code> is enabled, you can't disable it for the
table.
</p>
<p>
For more information, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/TTL.html">Expiring data
by using Amazon Keyspaces Time to Live (TTL)</a> in the <i>Amazon Keyspaces Developer Guide</i>.
</p>

@param ttl
       Modifies Time to Live custom settings for the table. The options are:</p>
       <ul>
       <li>
       <p>
       <code>status:enabled</code>
       </p>
       </li>
       <li>
       <p>
       <code>status:disabled</code>
       </p>
       </li>
       </ul>
       <p>
       The default is <code>status:disabled</code>. After <code>ttl</code> is enabled, you can't disable it for
       the table.
       </p>
       <p>
       For more information, see <a
       href="https://docs.aws.amazon.com/keyspaces/latest/devguide/TTL.html">Expiring data by using Amazon
       Keyspaces Time to Live (TTL)</a> in the <i>Amazon Keyspaces Developer Guide</i>.
aws-java-sdk-keyspaces/src/main/java/com/amazonaws/services/keyspaces/model/UpdateTableRequest.java