public EventSource withExpirationTime(java.util.Date expirationTime) {
        setExpirationTime(expirationTime);
        return this;
    }
<p>
The date and time that the event source will expire, if the Amazon Web Services account doesn't create a matching
event bus for it.
</p>

@param expirationTime
       The date and time that the event source will expire, if the Amazon Web Services account doesn't create a
       matching event bus for it.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-eventbridge/src/main/java/com/amazonaws/services/eventbridge/model/EventSource.java