public EnvironmentError withCode(String code) {
        setCode(code);
        return this;
    }
<p>
The error code for the failure reason for the environment deployment.
</p>

@param code
       The error code for the failure reason for the environment deployment.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-datazoneexternal/src/main/java/com/amazonaws/services/datazone/model/EnvironmentError.java