ca.ibodrov.mica.api.model.BatchOperationRequest Maven / Gradle / Ivy
package ca.ibodrov.mica.api.model;
import javax.validation.constraints.NotNull;
import java.util.List;
import java.util.Optional;
public record BatchOperationRequest(@NotNull BatchOperation operation, Optional> namePatterns) {
public static BatchOperationRequest deleteByNamePatterns(List namePatterns) {
return new BatchOperationRequest(BatchOperation.DELETE, Optional.of(namePatterns));
}
}