public ServiceSpecification withEC2Specification(EC2Specification eC2Specification) {
        setEC2Specification(eC2Specification);
        return this;
    }
<p>
The Amazon EC2 hardware specifications that you want Amazon Web Services to provide recommendations for.
</p>

@param eC2Specification
       The Amazon EC2 hardware specifications that you want Amazon Web Services to provide recommendations for.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-costexplorer/src/main/java/com/amazonaws/services/costexplorer/model/ServiceSpecification.java