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

    private Level level;
    private String message;
    private String source;
    private final SDKMethodInterfaces.MethodCallLogLine sdk;

    public LogLineRequestBuilder(SDKMethodInterfaces.MethodCallLogLine sdk) {
        this.sdk = sdk;
    }

    public LogLineRequestBuilder level(Level level) {
        Utils.checkNotNull(level, "level");
        this.level = level;
        return this;
    }

    public LogLineRequestBuilder message(String message) {
        Utils.checkNotNull(message, "message");
        this.message = message;
        return this;
    }

    public LogLineRequestBuilder source(String source) {
        Utils.checkNotNull(source, "source");
        this.source = source;
        return this;
    }

    public LogLineResponse call() throws Exception {

        return sdk.logLine(
            level,
            message,
            source);
    }
}
