Class SqlUserDefinedFunctionResource
java.lang.Object
com.azure.resourcemanager.cosmos.models.SqlUserDefinedFunctionResource
- Direct Known Subclasses:
SqlUserDefinedFunctionGetPropertiesResource
Cosmos DB SQL userDefinedFunction resource object.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of SqlUserDefinedFunctionResource class. -
Method Summary
Modifier and TypeMethodDescriptionbody()Get the body property: Body of the User Defined Function.id()Get the id property: Name of the Cosmos DB SQL userDefinedFunction.voidvalidate()Validates the instance.Set the body property: Body of the User Defined Function.Set the id property: Name of the Cosmos DB SQL userDefinedFunction.
-
Constructor Details
-
SqlUserDefinedFunctionResource
public SqlUserDefinedFunctionResource()Creates an instance of SqlUserDefinedFunctionResource class.
-
-
Method Details
-
id
Get the id property: Name of the Cosmos DB SQL userDefinedFunction.- Returns:
- the id value.
-
withId
Set the id property: Name of the Cosmos DB SQL userDefinedFunction.- Parameters:
id- the id value to set.- Returns:
- the SqlUserDefinedFunctionResource object itself.
-
body
Get the body property: Body of the User Defined Function.- Returns:
- the body value.
-
withBody
Set the body property: Body of the User Defined Function.- Parameters:
body- the body value to set.- Returns:
- the SqlUserDefinedFunctionResource object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-