public GCMMessage withTimeToLive(Integer timeToLive) {
        setTimeToLive(timeToLive);
        return this;
    }
<p>
The amount of time, in seconds, that FCM should store and attempt to deliver the push notification, if the
service is unable to deliver the notification the first time. If you don't specify this value, FCM defaults to
the maximum value, which is 2,419,200 seconds (28 days).
</p>
<p>
Amazon Pinpoint specifies this value in the FCM time_to_live parameter when it sends the notification message to
FCM.
</p>

@param timeToLive
       The amount of time, in seconds, that FCM should store and attempt to deliver the push notification, if the
       service is unable to deliver the notification the first time. If you don't specify this value, FCM
       defaults to the maximum value, which is 2,419,200 seconds (28 days).</p>
       <p>
       Amazon Pinpoint specifies this value in the FCM time_to_live parameter when it sends the notification
       message to FCM.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/GCMMessage.java