public WriteGetObjectResponseRequest withErrorCode(String errorCode) {
        this.errorCode = errorCode;
        return this;
    }
Set a string that uniquely identifies an error condition. Returned in the &lt;Code&gt; tag of the error XML response
for a corresponding <code>GetObject</code> call. Cannot be used with a successful <code>StatusCode</code> header
or when the transformed object is provided in the body.

@return This object for method chaining.
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/WriteGetObjectResponseRequest.java