public CreateCampaignRequest withExpiryTime(java.util.Date expiryTime) {
        setExpiryTime(expiryTime);
        return this;
    }
<p>
(Optional) The time the campaign expires, in seconds since epoch (January 1, 1970 at midnight UTC time). Vehicle
data isn't collected after the campaign expires.
</p>
<p>
Default: 253402214400 (December 31, 9999, 00:00:00 UTC)
</p>

@param expiryTime
       (Optional) The time the campaign expires, in seconds since epoch (January 1, 1970 at midnight UTC time).
       Vehicle data isn't collected after the campaign expires. </p>
       <p>
       Default: 253402214400 (December 31, 9999, 00:00:00 UTC)
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iotfleetwise/src/main/java/com/amazonaws/services/iotfleetwise/model/CreateCampaignRequest.java