public void setTimeToLive(Integer timeToLive) {
        this.timeToLive = timeToLive;
    }
<p>
How long the text message is valid for, in seconds. By default this is 72 hours. If the messages isn't handed off
before the TTL expires we stop attempting to hand off the message and return <code>TTL_EXPIRED</code> event.
</p>

@param timeToLive
       How long the text message is valid for, in seconds. By default this is 72 hours. If the messages isn't
       handed off before the TTL expires we stop attempting to hand off the message and return
       <code>TTL_EXPIRED</code> event.
aws-java-sdk-pinpointsmsvoicev2/src/main/java/com/amazonaws/services/pinpointsmsvoicev2/model/SendTextMessageRequest.java