public ValidationException withErrorCode(String errorCode) {
        setErrorCode(errorCode);
        return this;
    }
<p>
A description of what caused the validation error.
</p>

@param errorCode
       A description of what caused the validation error.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-backupgateway/src/main/java/com/amazonaws/services/backupgateway/model/ValidationException.java