public Subscription withEndpoint(String endpoint) {
        setEndpoint(endpoint);
        return this;
    }
<p>
The subscription's endpoint (format depends on the protocol).
</p>

@param endpoint
       The subscription's endpoint (format depends on the protocol).
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/model/Subscription.java