public RebuildEnvironmentRequest withEnvironmentId(String environmentId) {
        setEnvironmentId(environmentId);
        return this;
    }
<p>
The ID of the environment to rebuild.
</p>
<p>
Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS Elastic
Beanstalk returns <code>MissingRequiredParameter</code> error.
</p>

@param environmentId
       The ID of the environment to rebuild.</p>
       <p>
       Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS
       Elastic Beanstalk returns <code>MissingRequiredParameter</code> error.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-elasticbeanstalk/src/main/java/com/amazonaws/services/elasticbeanstalk/model/RebuildEnvironmentRequest.java