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

package dev.plexapi.sdk.models.operations;

import dev.plexapi.sdk.utils.Utils;
import java.lang.String;

public class UploadPlaylistRequestBuilder {

    private String path;
    private QueryParamForce force;
    private final SDKMethodInterfaces.MethodCallUploadPlaylist sdk;

    public UploadPlaylistRequestBuilder(SDKMethodInterfaces.MethodCallUploadPlaylist sdk) {
        this.sdk = sdk;
    }

    public UploadPlaylistRequestBuilder path(java.lang.String path) {
        Utils.checkNotNull(path, "path");
        this.path = path;
        return this;
    }

    public UploadPlaylistRequestBuilder force(dev.plexapi.sdk.models.operations.QueryParamForce force) {
        Utils.checkNotNull(force, "force");
        this.force = force;
        return this;
    }

    public UploadPlaylistResponse call() throws Exception {

        return sdk.uploadPlaylist(
            path,
            force);
    }
}
