public class SqlTriggerResource extends Object
| Constructor and Description |
|---|
SqlTriggerResource() |
| Modifier and Type | Method and Description |
|---|---|
String |
body()
Get the body property: Body of the Trigger.
|
String |
id()
Get the id property: Name of the Cosmos DB SQL trigger.
|
TriggerOperation |
triggerOperation()
Get the triggerOperation property: The operation the trigger is associated with.
|
TriggerType |
triggerType()
Get the triggerType property: Type of the Trigger.
|
void |
validate()
Validates the instance.
|
SqlTriggerResource |
withBody(String body)
Set the body property: Body of the Trigger.
|
SqlTriggerResource |
withId(String id)
Set the id property: Name of the Cosmos DB SQL trigger.
|
SqlTriggerResource |
withTriggerOperation(TriggerOperation triggerOperation)
Set the triggerOperation property: The operation the trigger is associated with.
|
SqlTriggerResource |
withTriggerType(TriggerType triggerType)
Set the triggerType property: Type of the Trigger.
|
public String id()
public SqlTriggerResource withId(String id)
id - the id value to set.public String body()
public SqlTriggerResource withBody(String body)
body - the body value to set.public TriggerType triggerType()
public SqlTriggerResource withTriggerType(TriggerType triggerType)
triggerType - the triggerType value to set.public TriggerOperation triggerOperation()
public SqlTriggerResource withTriggerOperation(TriggerOperation triggerOperation)
triggerOperation - the triggerOperation value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.