Class SqlUserDefinedFunctionResource
- java.lang.Object
-
- com.azure.resourcemanager.cosmos.models.SqlUserDefinedFunctionResource
-
- Direct Known Subclasses:
SqlUserDefinedFunctionGetPropertiesResource
public class SqlUserDefinedFunctionResource extends Object
Cosmos DB SQL userDefinedFunction resource object.
-
-
Constructor Summary
Constructors Constructor Description SqlUserDefinedFunctionResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringbody()Get the body property: Body of the User Defined Function.Stringid()Get the id property: Name of the Cosmos DB SQL userDefinedFunction.voidvalidate()Validates the instance.SqlUserDefinedFunctionResourcewithBody(String body)Set the body property: Body of the User Defined Function.SqlUserDefinedFunctionResourcewithId(String id)Set the id property: Name of the Cosmos DB SQL userDefinedFunction.
-
-
-
Method Detail
-
id
public String id()
Get the id property: Name of the Cosmos DB SQL userDefinedFunction.- Returns:
- the id value.
-
withId
public SqlUserDefinedFunctionResource withId(String id)
Set the id property: Name of the Cosmos DB SQL userDefinedFunction.- Parameters:
id- the id value to set.- Returns:
- the SqlUserDefinedFunctionResource object itself.
-
body
public String body()
Get the body property: Body of the User Defined Function.- Returns:
- the body value.
-
withBody
public SqlUserDefinedFunctionResource withBody(String body)
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.
-
-