SqlTriggerCreateUpdateParameters Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. core. management. Resource - com.
azure. resourcemanager. cosmos. models. ArmResourceProperties - com.
azure. resourcemanager. cosmos. models. SqlTriggerCreateUpdateParameters
- com.
- com.
- com.
- com.
public final class SqlTriggerCreateUpdateParameters
extends ArmResourceProperties
Parameters to create and update Cosmos DB trigger.
Constructor Summary
| Constructor | Description |
|---|---|
| SqlTriggerCreateUpdateParameters() |
Creates an instance of Sql |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Sql |
fromJson(JsonReader jsonReader)
Reads an instance of Sql |
| String |
id()
Get the id property: Fully qualified resource Id for the resource. |
| String |
name()
Get the name property: The name of the resource. |
|
Create |
options()
Get the options property: A key-value pair of options to be applied for the request. |
|
Sql |
resource()
Get the resource property: The standard JSON format of a trigger. |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: The type of the resource. |
| void |
validate()
Validates the instance. |
|
Sql |
withLocation(String location) |
|
Sql |
withOptions(CreateUpdateOptions options)
Set the options property: A key-value pair of options to be applied for the request. |
|
Sql |
withResource(SqlTriggerResource resource)
Set the resource property: The standard JSON format of a trigger. |
|
Sql |
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:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
SqlTriggerCreateUpdateParameters.id()Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
SqlTriggerCreateUpdateParameters.name()Returns:
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:
resource
public SqlTriggerResource resource()
Get the resource property: The standard JSON format of a trigger.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
SqlTriggerCreateUpdateParameters.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
SqlTriggerCreateUpdateParameters.type()Returns:
validate
public void validate()
Validates the instance.
Overrides:
SqlTriggerCreateUpdateParameters.validate()withLocation
public SqlTriggerCreateUpdateParameters withLocation(String location)
Overrides:
SqlTriggerCreateUpdateParameters.withLocation(String location)Parameters:
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:
Returns:
withResource
public SqlTriggerCreateUpdateParameters withResource(SqlTriggerResource resource)
Set the resource property: The standard JSON format of a trigger.
Parameters:
Returns:
withTags
public SqlTriggerCreateUpdateParameters withTags(Map<String,String> tags)
Overrides:
SqlTriggerCreateUpdateParameters.withTags(Map<String,String> tags)Parameters: