public ErrorDetail withDetailedErrorCode(String detailedErrorCode) {
        setDetailedErrorCode(detailedErrorCode);
        return this;
    }
A detailed error code.

@param detailedErrorCode
       A detailed error code.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/model/ErrorDetail.java