SqlUserDefinedFunctionResource Class

  • java.lang.Object
    • com.azure.resourcemanager.cosmos.models.SqlUserDefinedFunctionResource

Implements

public class SqlUserDefinedFunctionResource
implements JsonSerializable<SqlUserDefinedFunctionResource>

Cosmos DB SQL userDefinedFunction resource object.

Constructor Summary

Constructor Description
SqlUserDefinedFunctionResource()

Creates an instance of SqlUserDefinedFunctionResource class.

Method Summary

Modifier and Type Method and Description
String body()

Get the body property: Body of the User Defined Function.

static SqlUserDefinedFunctionResource fromJson(JsonReader jsonReader)

Reads an instance of SqlUserDefinedFunctionResource from the JsonReader.

String id()

Get the id property: Name of the Cosmos DB SQL userDefinedFunction.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SqlUserDefinedFunctionResource withBody(String body)

Set the body property: Body of the User Defined Function.

SqlUserDefinedFunctionResource withId(String id)

Set the id property: Name of the Cosmos DB SQL userDefinedFunction.

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:

the body value.

fromJson

public static SqlUserDefinedFunctionResource fromJson(JsonReader jsonReader)

Reads an instance of SqlUserDefinedFunctionResource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SqlUserDefinedFunctionResource if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Name of the Cosmos DB SQL userDefinedFunction.

Returns:

the id value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

Applies to