public BatchEvaluateGeofencesError withError(BatchItemError error) {
        setError(error);
        return this;
    }
<p>
Contains details associated to the batch error.
</p>

@param error
       Contains details associated to the batch error.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-location/src/main/java/com/amazonaws/services/location/model/BatchEvaluateGeofencesError.java