/* 
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */

package dev.plexapi.sdk.models.operations;

import dev.plexapi.sdk.utils.Utils;

public class GetSearchAllLibrariesRequestBuilder {

    private GetSearchAllLibrariesRequest request;
    private final SDKMethodInterfaces.MethodCallGetSearchAllLibraries sdk;

    public GetSearchAllLibrariesRequestBuilder(SDKMethodInterfaces.MethodCallGetSearchAllLibraries sdk) {
        this.sdk = sdk;
    }

    public GetSearchAllLibrariesRequestBuilder request(GetSearchAllLibrariesRequest request) {
        Utils.checkNotNull(request, "request");
        this.request = request;
        return this;
    }

    public GetSearchAllLibrariesResponse call() throws Exception {

        return sdk.getSearchAllLibraries(
            request);
    }
}
