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

package dev.plexapi.sdk.models.operations;

import dev.plexapi.sdk.utils.Utils;

public class GetAllMediaLibraryRequestBuilder {

    private GetAllMediaLibraryRequest request;
    private final SDKMethodInterfaces.MethodCallGetAllMediaLibrary sdk;

    public GetAllMediaLibraryRequestBuilder(SDKMethodInterfaces.MethodCallGetAllMediaLibrary sdk) {
        this.sdk = sdk;
    }

    public GetAllMediaLibraryRequestBuilder request(GetAllMediaLibraryRequest request) {
        Utils.checkNotNull(request, "request");
        this.request = request;
        return this;
    }

    public GetAllMediaLibraryResponse call() throws Exception {

        return sdk.getAllMediaLibrary(
            request);
    }
}
