Class JavaScriptFunctionBinding
- java.lang.Object
-
- com.azure.resourcemanager.streamanalytics.models.FunctionBinding
-
- com.azure.resourcemanager.streamanalytics.models.JavaScriptFunctionBinding
-
public final class JavaScriptFunctionBinding extends FunctionBinding
The binding to a JavaScript function.
-
-
Constructor Summary
Constructors Constructor Description JavaScriptFunctionBinding()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
script()
Get the script property: The JavaScript code containing a single function definition.void
validate()
Validates the instance.JavaScriptFunctionBinding
withScript(String script)
Set the script property: The JavaScript code containing a single function definition.
-
-
-
Method Detail
-
script
public String script()
Get the script property: The JavaScript code containing a single function definition. For example: 'function (x, y) { return x + y; }'.- Returns:
- the script value.
-
withScript
public JavaScriptFunctionBinding withScript(String script)
Set the script property: The JavaScript code containing a single function definition. For example: 'function (x, y) { return x + y; }'.- Parameters:
script
- the script value to set.- Returns:
- the JavaScriptFunctionBinding object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classFunctionBinding
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-