public Builder errors(Collection<ShapeId> errorShapeIds) {
            errors.clear();
            errorShapeIds.forEach(this::addError);
            return this;
        }
Sets and replaces the errors of the operation.

@param errorShapeIds Error shape IDs to set.
@return Returns the builder.
smithy-model/src/main/java/software/amazon/smithy/model/shapes/OperationShape.java