public GetEnvironmentResult withError(ErrorResponse error) {
        setError(error);
        return this;
    }
<p>
Any error associated with the environment resource.
</p>

@param error
       Any error associated with the environment resource.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-migrationhubrefactorspaces/src/main/java/com/amazonaws/services/migrationhubrefactorspaces/model/GetEnvironmentResult.java