public CreateInstanceRequest withEbsOptimized(Boolean ebsOptimized) {
        setEbsOptimized(ebsOptimized);
        return this;
    }
<p>
Whether to create an Amazon EBS-optimized instance.
</p>

@param ebsOptimized
       Whether to create an Amazon EBS-optimized instance.
@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/CreateInstanceRequest.java