Condividi tramite


SqlTriggerCreateUpdateParameters Class

public final class SqlTriggerCreateUpdateParameters
extends ArmResourceProperties

Parameters to create and update Cosmos DB trigger.

Constructor Summary

Constructor Description
SqlTriggerCreateUpdateParameters()

Creates an instance of SqlTriggerCreateUpdateParameters class.

Method Summary

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

Reads an instance of SqlTriggerCreateUpdateParameters 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.

SqlTriggerResource resource()

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

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

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

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

SqlTriggerCreateUpdateParameters withResource(SqlTriggerResource resource)

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

SqlTriggerCreateUpdateParameters withTags(Map<String,String> tags)

Methods inherited from Resource

Methods inherited from ArmResourceProperties

Methods inherited from java.lang.Object

Constructor Details

SqlTriggerCreateUpdateParameters

public SqlTriggerCreateUpdateParameters()

Creates an instance of SqlTriggerCreateUpdateParameters class.

Method Details

fromJson

public static SqlTriggerCreateUpdateParameters fromJson(JsonReader jsonReader)

Reads an instance of SqlTriggerCreateUpdateParameters from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SqlTriggerCreateUpdateParameters 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:

SqlTriggerCreateUpdateParameters.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

SqlTriggerCreateUpdateParameters.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 SqlTriggerResource resource()

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

Returns:

the resource value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

SqlTriggerCreateUpdateParameters.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

SqlTriggerCreateUpdateParameters.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

SqlTriggerCreateUpdateParameters.validate()

withLocation

public SqlTriggerCreateUpdateParameters withLocation(String location)

Overrides:

SqlTriggerCreateUpdateParameters.withLocation(String location)

Parameters:

location

withOptions

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

withResource

public SqlTriggerCreateUpdateParameters withResource(SqlTriggerResource resource)

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

Parameters:

resource - the resource value to set.

Returns:

the SqlTriggerCreateUpdateParameters object itself.

withTags

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

Overrides:

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

Parameters:

tags

Applies to