public void setValidity(Long validity) {
        this.validity = validity;
    }
<p>
The time that the streaming URL will be valid, in seconds. Specify a value between 1 and 604800 seconds. The
default is 3600 seconds.
</p>

@param validity
       The time that the streaming URL will be valid, in seconds. Specify a value between 1 and 604800 seconds.
       The default is 3600 seconds.
aws-java-sdk-appstream/src/main/java/com/amazonaws/services/appstream/model/CreateImageBuilderStreamingURLRequest.java