public Ec2InstanceConfiguration withInstance(InstanceConfiguration instance) {
        setInstance(instance);
        return this;
    }
<p>
Details about the instance.
</p>

@param instance
       Details about the instance.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-costoptimizationhub/src/main/java/com/amazonaws/services/costoptimizationhub/model/Ec2InstanceConfiguration.java