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

package dev.plexapi.sdk.models.operations;

import dev.plexapi.sdk.utils.Utils;

public class GetRecentlyAddedRequestBuilder {

    private GetRecentlyAddedRequest request;
    private final SDKMethodInterfaces.MethodCallGetRecentlyAdded sdk;

    public GetRecentlyAddedRequestBuilder(SDKMethodInterfaces.MethodCallGetRecentlyAdded sdk) {
        this.sdk = sdk;
    }

    public GetRecentlyAddedRequestBuilder request(GetRecentlyAddedRequest request) {
        Utils.checkNotNull(request, "request");
        this.request = request;
        return this;
    }

    public GetRecentlyAddedResponse call() throws Exception {

        return sdk.getRecentlyAdded(
            request);
    }
}
