public class SqlTriggerResource extends Object
| Constructor and Description |
|---|
SqlTriggerResource() |
| Modifier and Type | Method and Description |
|---|---|
String |
body()
Get body of the Trigger.
|
String |
id()
Get name of the Cosmos DB SQL trigger.
|
TriggerOperation |
triggerOperation()
Get the operation the trigger is associated with.
|
TriggerType |
triggerType()
Get type of the Trigger.
|
SqlTriggerResource |
withBody(String body)
Set body of the Trigger.
|
SqlTriggerResource |
withId(String id)
Set name of the Cosmos DB SQL trigger.
|
SqlTriggerResource |
withTriggerOperation(TriggerOperation triggerOperation)
Set the operation the trigger is associated with.
|
SqlTriggerResource |
withTriggerType(TriggerType triggerType)
Set type of the Trigger.
|
public String id()
public SqlTriggerResource withId(String id)
id - the id value to setpublic String body()
public SqlTriggerResource withBody(String body)
body - the body value to setpublic TriggerType triggerType()
public SqlTriggerResource withTriggerType(TriggerType triggerType)
triggerType - the triggerType value to setpublic TriggerOperation triggerOperation()
public SqlTriggerResource withTriggerOperation(TriggerOperation triggerOperation)
triggerOperation - the triggerOperation value to set/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/