public CreateComponentRequest withEnvironmentName(String environmentName) {
        setEnvironmentName(environmentName);
        return this;
    }
<p>
The name of the Proton environment that you want to associate this component with. You must specify this when you
don't specify <code>serviceInstanceName</code> and <code>serviceName</code>.
</p>

@param environmentName
       The name of the Proton environment that you want to associate this component with. You must specify this
       when you don't specify <code>serviceInstanceName</code> and <code>serviceName</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-proton/src/main/java/com/amazonaws/services/proton/model/CreateComponentRequest.java