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

package dev.plexapi.sdk.models.operations;

import dev.plexapi.sdk.utils.Utils;

public class StopTaskRequestBuilder {

    private PathParamTaskName taskName;
    private final SDKMethodInterfaces.MethodCallStopTask sdk;

    public StopTaskRequestBuilder(SDKMethodInterfaces.MethodCallStopTask sdk) {
        this.sdk = sdk;
    }

    public StopTaskRequestBuilder taskName(PathParamTaskName taskName) {
        Utils.checkNotNull(taskName, "taskName");
        this.taskName = taskName;
        return this;
    }

    public StopTaskResponse call() throws Exception {

        return sdk.stopTask(
            taskName);
    }
}
