/* 
 * 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 GetMediaProvidersRequestBuilder {

    private String xPlexToken;
    private final SDKMethodInterfaces.MethodCallGetMediaProviders sdk;

    public GetMediaProvidersRequestBuilder(SDKMethodInterfaces.MethodCallGetMediaProviders sdk) {
        this.sdk = sdk;
    }

    public GetMediaProvidersRequestBuilder xPlexToken(String xPlexToken) {
        Utils.checkNotNull(xPlexToken, "xPlexToken");
        this.xPlexToken = xPlexToken;
        return this;
    }

    public GetMediaProvidersResponse call() throws Exception {

        return sdk.getMediaProviders(
            xPlexToken);
    }
}
