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

@param error
       Contains details associated to the batch error.
aws-java-sdk-location/src/main/java/com/amazonaws/services/location/model/BatchEvaluateGeofencesError.java