public Instance withElasticIp(String elasticIp) {
        setElasticIp(elasticIp);
        return this;
    }
<p>
The instance <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html">Elastic
IP address</a>.
</p>

@param elasticIp
       The instance <a
       href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html">Elastic IP
       address</a>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-opsworks/src/main/java/com/amazonaws/services/opsworks/model/Instance.java