All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ca.ibodrov.mica.api.model.BatchOperationRequest Maven / Gradle / Ivy

There is a newer version: 0.0.25
Show newest version
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));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy