package ru.yandex.qe.dispenser.client.v1.builder;

import org.jetbrains.annotations.NotNull;

import ru.yandex.qe.dispenser.api.v1.DiEntitySpec;
import ru.yandex.qe.dispenser.api.v1.response.DiListResponse;
import ru.yandex.qe.dispenser.client.v1.impl.ServiceFilter;

public interface GetEntitySpecsRequestBuilder extends GetListRequestBuilder<DiListResponse<DiEntitySpec>, GetEntitySpecsRequestBuilder> {
    @NotNull
    default GetEntitySpecsRequestBuilder inService(@NotNull final String serviceKey) {
        return filterBy(ServiceFilter.by(serviceKey));
    }
}
