package com.atlassian.bitbucket.internal.scm.git.lfs.model;

import javax.annotation.Nonnull;
import java.util.Collection;

import static java.util.Objects.requireNonNull;

public class BatchRequest {

    private final OperationType type;
    private final Collection<RequestObject> objects;

    public BatchRequest(@Nonnull OperationType type, @Nonnull Collection<RequestObject> objects) {
        this.type = requireNonNull(type, "type");
        this.objects = requireNonNull(objects, "objects");
    }

    @Nonnull
    public Collection<RequestObject> getObjects() {
        return objects;
    }

    @Nonnull
    public OperationType getType() {
        return type;
    }
}
