SqlUserDefinedFunctionResource Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. SqlUserDefinedFunctionResource
- com.
Implements
public class SqlUserDefinedFunctionResource
implements JsonSerializable<SqlUserDefinedFunctionResource>
Cosmos DB SQL userDefinedFunction resource object.
Constructor Summary
Constructor | Description |
---|---|
SqlUserDefinedFunctionResource() |
Creates an instance of Sql |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
body()
Get the body property: Body of the User Defined Function. |
static
Sql |
fromJson(JsonReader jsonReader)
Reads an instance of Sql |
String |
id()
Get the id property: Name of the Cosmos DB SQL user |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Sql |
withBody(String body)
Set the body property: Body of the User Defined Function. |
Sql |
withId(String id)
Set the id property: Name of the Cosmos DB SQL user |
Methods inherited from java.lang.Object
Constructor Details
SqlUserDefinedFunctionResource
public SqlUserDefinedFunctionResource()
Creates an instance of SqlUserDefinedFunctionResource class.
Method Details
body
public String body()
Get the body property: Body of the User Defined Function.
Returns:
fromJson
public static SqlUserDefinedFunctionResource fromJson(JsonReader jsonReader)
Reads an instance of SqlUserDefinedFunctionResource from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Name of the Cosmos DB SQL userDefinedFunction.
Returns:
toJson
validate
public void validate()
Validates the instance.
withBody
public SqlUserDefinedFunctionResource withBody(String body)
Set the body property: Body of the User Defined Function.
Parameters:
Returns:
withId
public SqlUserDefinedFunctionResource withId(String id)
Set the id property: Name of the Cosmos DB SQL userDefinedFunction.
Parameters:
Returns:
Applies to
Azure SDK for Java