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

package dev.plexapi.sdk.models.operations;

import dev.plexapi.sdk.utils.Utils;

public class GetRecentlyAddedLibraryRequestBuilder {

    private GetRecentlyAddedLibraryRequest request;
    private final SDKMethodInterfaces.MethodCallGetRecentlyAddedLibrary sdk;

    public GetRecentlyAddedLibraryRequestBuilder(SDKMethodInterfaces.MethodCallGetRecentlyAddedLibrary sdk) {
        this.sdk = sdk;
    }

    public GetRecentlyAddedLibraryRequestBuilder request(GetRecentlyAddedLibraryRequest request) {
        Utils.checkNotNull(request, "request");
        this.request = request;
        return this;
    }

    public GetRecentlyAddedLibraryResponse call() throws Exception {

        return sdk.getRecentlyAddedLibrary(
            request);
    }
}
