SqlUserDefinedFunctionCreateUpdateParameters Class

public final class SqlUserDefinedFunctionCreateUpdateParameters
extends ArmResourceProperties

Parameters to create and update Cosmos DB userDefinedFunction.

Constructor Summary

Constructor Description
SqlUserDefinedFunctionCreateUpdateParameters()

Creates an instance of SqlUserDefinedFunctionCreateUpdateParameters class.

Method Summary

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

Reads an instance of SqlUserDefinedFunctionCreateUpdateParameters from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String name()

Get the name property: The name of the resource.

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)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

SqlUserDefinedFunctionCreateUpdateParameters withLocation(String location)
SqlUserDefinedFunctionCreateUpdateParameters withOptions(CreateUpdateOptions options)

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

SqlUserDefinedFunctionCreateUpdateParameters withResource(SqlUserDefinedFunctionResource resource)

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

SqlUserDefinedFunctionCreateUpdateParameters withTags(Map<String,String> tags)

Methods inherited from Resource

Methods inherited from ArmResourceProperties

Methods inherited from java.lang.Object

Constructor Details

SqlUserDefinedFunctionCreateUpdateParameters

public SqlUserDefinedFunctionCreateUpdateParameters()

Creates an instance of SqlUserDefinedFunctionCreateUpdateParameters class.

Method Details

fromJson

public static SqlUserDefinedFunctionCreateUpdateParameters fromJson(JsonReader jsonReader)

Reads an instance of SqlUserDefinedFunctionCreateUpdateParameters from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SqlUserDefinedFunctionCreateUpdateParameters 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: Fully qualified resource Id for the resource.

Overrides:

SqlUserDefinedFunctionCreateUpdateParameters.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

SqlUserDefinedFunctionCreateUpdateParameters.name()

Returns:

the name value.

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)

Overrides:

SqlUserDefinedFunctionCreateUpdateParameters.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

SqlUserDefinedFunctionCreateUpdateParameters.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

SqlUserDefinedFunctionCreateUpdateParameters.validate()

withLocation

public SqlUserDefinedFunctionCreateUpdateParameters withLocation(String location)

Overrides:

SqlUserDefinedFunctionCreateUpdateParameters.withLocation(String location)

Parameters:

location

withOptions

public SqlUserDefinedFunctionCreateUpdateParameters 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 SqlUserDefinedFunctionCreateUpdateParameters object itself.

withResource

public SqlUserDefinedFunctionCreateUpdateParameters withResource(SqlUserDefinedFunctionResource resource)

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

Parameters:

resource - the resource value to set.

Returns:

the SqlUserDefinedFunctionCreateUpdateParameters object itself.

withTags

public SqlUserDefinedFunctionCreateUpdateParameters withTags(Map<String,String> tags)

Overrides:

SqlUserDefinedFunctionCreateUpdateParameters.withTags(Map<String,String> tags)

Parameters:

tags

Applies to