/* 
 * 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.Double;

public class GetPlaylistContentsRequestBuilder {

    private Double playlistID;
    private GetPlaylistContentsQueryParamType type;
    private final SDKMethodInterfaces.MethodCallGetPlaylistContents sdk;

    public GetPlaylistContentsRequestBuilder(SDKMethodInterfaces.MethodCallGetPlaylistContents sdk) {
        this.sdk = sdk;
    }

    public GetPlaylistContentsRequestBuilder playlistID(double playlistID) {
        Utils.checkNotNull(playlistID, "playlistID");
        this.playlistID = playlistID;
        return this;
    }

    public GetPlaylistContentsRequestBuilder type(GetPlaylistContentsQueryParamType type) {
        Utils.checkNotNull(type, "type");
        this.type = type;
        return this;
    }

    public GetPlaylistContentsResponse call() throws Exception {

        return sdk.getPlaylistContents(
            playlistID,
            type);
    }
}
