Class JavaScriptFunctionBindingRetrievalProperties
- java.lang.Object
-
- com.azure.resourcemanager.streamanalytics.fluent.models.JavaScriptFunctionBindingRetrievalProperties
-
public final class JavaScriptFunctionBindingRetrievalProperties extends Object
The binding retrieval properties associated with a JavaScript function.
-
-
Constructor Summary
Constructors Constructor Description JavaScriptFunctionBindingRetrievalProperties()
-
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.UdfType
udfType()
Get the udfType property: The function type.void
validate()
Validates the instance.JavaScriptFunctionBindingRetrievalProperties
withScript(String script)
Set the script property: The JavaScript code containing a single function definition.JavaScriptFunctionBindingRetrievalProperties
withUdfType(UdfType udfType)
Set the udfType property: The function type.
-
-
-
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 JavaScriptFunctionBindingRetrievalProperties 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 JavaScriptFunctionBindingRetrievalProperties object itself.
-
udfType
public UdfType udfType()
Get the udfType property: The function type.- Returns:
- the udfType value.
-
withUdfType
public JavaScriptFunctionBindingRetrievalProperties withUdfType(UdfType udfType)
Set the udfType property: The function type.- Parameters:
udfType
- the udfType value to set.- Returns:
- the JavaScriptFunctionBindingRetrievalProperties object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-