SqlUserDefinedFunctionCreateUpdateProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.cosmos.fluent.models.SqlUserDefinedFunctionCreateUpdateProperties

Implements

public final class SqlUserDefinedFunctionCreateUpdateProperties
implements JsonSerializable<SqlUserDefinedFunctionCreateUpdateProperties>

Properties to create and update Azure Cosmos DB userDefinedFunction.

Constructor Summary

Constructor Description
SqlUserDefinedFunctionCreateUpdateProperties()

Creates an instance of SqlUserDefinedFunctionCreateUpdateProperties class.

Method Summary

Modifier and Type Method and Description
static SqlUserDefinedFunctionCreateUpdateProperties fromJson(JsonReader jsonReader)

Reads an instance of SqlUserDefinedFunctionCreateUpdateProperties from the JsonReader.

CreateUpdateOptions options()

Get the options property: A key-value pair of options to be applied for the request.

SqlUserDefinedFunctionResource resource()

Get the resource property: The standard JSON format of a userDefinedFunction.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SqlUserDefinedFunctionCreateUpdateProperties withOptions(CreateUpdateOptions options)

Set the options property: A key-value pair of options to be applied for the request.

SqlUserDefinedFunctionCreateUpdateProperties withResource(SqlUserDefinedFunctionResource resource)

Set the resource property: The standard JSON format of a userDefinedFunction.

Methods inherited from java.lang.Object

Constructor Details

SqlUserDefinedFunctionCreateUpdateProperties

public SqlUserDefinedFunctionCreateUpdateProperties()

Creates an instance of SqlUserDefinedFunctionCreateUpdateProperties class.

Method Details

fromJson

public static SqlUserDefinedFunctionCreateUpdateProperties fromJson(JsonReader jsonReader)

Reads an instance of SqlUserDefinedFunctionCreateUpdateProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SqlUserDefinedFunctionCreateUpdateProperties 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.

options

public CreateUpdateOptions options()

Get the options property: A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.

Returns:

the options value.

resource

public SqlUserDefinedFunctionResource resource()

Get the resource property: The standard JSON format of a userDefinedFunction.

Returns:

the resource value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withOptions

public SqlUserDefinedFunctionCreateUpdateProperties withOptions(CreateUpdateOptions options)

Set the options property: A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.

Parameters:

options - the options value to set.

Returns:

the SqlUserDefinedFunctionCreateUpdateProperties object itself.

withResource

public SqlUserDefinedFunctionCreateUpdateProperties withResource(SqlUserDefinedFunctionResource resource)

Set the resource property: The standard JSON format of a userDefinedFunction.

Parameters:

resource - the resource value to set.

Returns:

the SqlUserDefinedFunctionCreateUpdateProperties object itself.

Applies to