SqlTriggerResource Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. SqlTriggerResource
- com.
Implements
public class SqlTriggerResource
implements JsonSerializable<SqlTriggerResource>
Cosmos DB SQL trigger resource object.
Constructor Summary
Constructor | Description |
---|---|
SqlTriggerResource() |
Creates an instance of Sql |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
body()
Get the body property: Body of the Trigger. |
static
Sql |
fromJson(JsonReader jsonReader)
Reads an instance of Sql |
String |
id()
Get the id property: Name of the Cosmos DB SQL trigger. |
Json |
toJson(JsonWriter jsonWriter) |
Trigger |
triggerOperation()
Get the trigger |
Trigger |
triggerType()
Get the trigger |
void |
validate()
Validates the instance. |
Sql |
withBody(String body)
Set the body property: Body of the Trigger. |
Sql |
withId(String id)
Set the id property: Name of the Cosmos DB SQL trigger. |
Sql |
withTriggerOperation(TriggerOperation triggerOperation)
Set the trigger |
Sql |
withTriggerType(TriggerType triggerType)
Set the trigger |
Methods inherited from java.lang.Object
Constructor Details
SqlTriggerResource
public SqlTriggerResource()
Creates an instance of SqlTriggerResource class.
Method Details
body
public String body()
Get the body property: Body of the Trigger.
Returns:
fromJson
public static SqlTriggerResource fromJson(JsonReader jsonReader)
Reads an instance of SqlTriggerResource from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Name of the Cosmos DB SQL trigger.
Returns:
toJson
triggerOperation
public TriggerOperation triggerOperation()
Get the triggerOperation property: The operation the trigger is associated with.
Returns:
triggerType
public TriggerType triggerType()
Get the triggerType property: Type of the Trigger.
Returns:
validate
public void validate()
Validates the instance.
withBody
public SqlTriggerResource withBody(String body)
Set the body property: Body of the Trigger.
Parameters:
Returns:
withId
public SqlTriggerResource withId(String id)
Set the id property: Name of the Cosmos DB SQL trigger.
Parameters:
Returns:
withTriggerOperation
public SqlTriggerResource withTriggerOperation(TriggerOperation triggerOperation)
Set the triggerOperation property: The operation the trigger is associated with.
Parameters:
Returns:
withTriggerType
public SqlTriggerResource withTriggerType(TriggerType triggerType)
Set the triggerType property: Type of the Trigger.
Parameters:
Returns:
Applies to
Azure SDK for Java