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

package dev.plexapi.sdk.models.operations;

import dev.plexapi.sdk.utils.Utils;

public class CreatePlaylistRequestBuilder {

    private CreatePlaylistRequest request;
    private final SDKMethodInterfaces.MethodCallCreatePlaylist sdk;

    public CreatePlaylistRequestBuilder(SDKMethodInterfaces.MethodCallCreatePlaylist sdk) {
        this.sdk = sdk;
    }

    public CreatePlaylistRequestBuilder request(CreatePlaylistRequest request) {
        Utils.checkNotNull(request, "request");
        this.request = request;
        return this;
    }

    public CreatePlaylistResponse call() throws Exception {

        return sdk.createPlaylist(
            request);
    }
}
