public CreateDistributionRequest withOrigin(InputOrigin origin) {
        setOrigin(origin);
        return this;
    }
<p>
An object that describes the origin resource for the distribution, such as a Lightsail instance, bucket, or load
balancer.
</p>
<p>
The distribution pulls, caches, and serves content from the origin.
</p>

@param origin
       An object that describes the origin resource for the distribution, such as a Lightsail instance, bucket,
       or load balancer.</p>
       <p>
       The distribution pulls, caches, and serves content from the origin.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-lightsail/src/main/java/com/amazonaws/services/lightsail/model/CreateDistributionRequest.java