public BatchPermissionsFailureEntry withError(ErrorDetail error) {
        setError(error);
        return this;
    }
<p>
An error message that applies to the failure of the entry.
</p>

@param error
       An error message that applies to the failure of the entry.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-lakeformation/src/main/java/com/amazonaws/services/lakeformation/model/BatchPermissionsFailureEntry.java