// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.streamanalytics.fluent.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

/** The binding properties associated with a JavaScript function. */
@Fluent
public final class JavaScriptFunctionBindingProperties {
    @JsonIgnore private final ClientLogger logger = new ClientLogger(JavaScriptFunctionBindingProperties.class);

    /*
     * The JavaScript code containing a single function definition. For
     * example: 'function (x, y) { return x + y; }'
     */
    @JsonProperty(value = "script")
    private String script;

    /**
     * Get the script property: The JavaScript code containing a single function definition. For example: 'function (x,
     * y) { return x + y; }'.
     *
     * @return the script value.
     */
    public String script() {
        return this.script;
    }

    /**
     * Set the script property: The JavaScript code containing a single function definition. For example: 'function (x,
     * y) { return x + y; }'.
     *
     * @param script the script value to set.
     * @return the JavaScriptFunctionBindingProperties object itself.
     */
    public JavaScriptFunctionBindingProperties withScript(String script) {
        this.script = script;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
    }
}
