public ListComponentsRequest withEnvironmentName(String environmentName) {
        setEnvironmentName(environmentName);
        return this;
    }
<p>
The name of an environment for result list filtering. Proton returns components associated with the environment
or attached to service instances running in it.
</p>

@param environmentName
       The name of an environment for result list filtering. Proton returns components associated with the
       environment or attached to service instances running in it.
@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/ListComponentsRequest.java