Class SqlTriggerResource
- java.lang.Object
-
- com.azure.resourcemanager.cosmos.models.SqlTriggerResource
-
- Direct Known Subclasses:
SqlTriggerGetPropertiesResource
public class SqlTriggerResource extends Object
Cosmos DB SQL trigger resource object.
-
-
Constructor Summary
Constructors Constructor Description SqlTriggerResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringbody()Get the body property: Body of the Trigger.Stringid()Get the id property: Name of the Cosmos DB SQL trigger.TriggerOperationtriggerOperation()Get the triggerOperation property: The operation the trigger is associated with.TriggerTypetriggerType()Get the triggerType property: Type of the Trigger.voidvalidate()Validates the instance.SqlTriggerResourcewithBody(String body)Set the body property: Body of the Trigger.SqlTriggerResourcewithId(String id)Set the id property: Name of the Cosmos DB SQL trigger.SqlTriggerResourcewithTriggerOperation(TriggerOperation triggerOperation)Set the triggerOperation property: The operation the trigger is associated with.SqlTriggerResourcewithTriggerType(TriggerType triggerType)Set the triggerType property: Type of the Trigger.
-
-
-
Method Detail
-
id
public String id()
Get the id property: Name of the Cosmos DB SQL trigger.- Returns:
- the id value.
-
withId
public SqlTriggerResource withId(String id)
Set the id property: Name of the Cosmos DB SQL trigger.- Parameters:
id- the id value to set.- Returns:
- the SqlTriggerResource object itself.
-
body
public String body()
Get the body property: Body of the Trigger.- Returns:
- the body value.
-
withBody
public SqlTriggerResource withBody(String body)
Set the body property: Body of the Trigger.- Parameters:
body- the body value to set.- Returns:
- the SqlTriggerResource object itself.
-
triggerType
public TriggerType triggerType()
Get the triggerType property: Type of the Trigger.- Returns:
- the triggerType value.
-
withTriggerType
public SqlTriggerResource withTriggerType(TriggerType triggerType)
Set the triggerType property: Type of the Trigger.- Parameters:
triggerType- the triggerType value to set.- Returns:
- the SqlTriggerResource object itself.
-
triggerOperation
public TriggerOperation triggerOperation()
Get the triggerOperation property: The operation the trigger is associated with.- Returns:
- the triggerOperation value.
-
withTriggerOperation
public SqlTriggerResource withTriggerOperation(TriggerOperation triggerOperation)
Set the triggerOperation property: The operation the trigger is associated with.- Parameters:
triggerOperation- the triggerOperation value to set.- Returns:
- the SqlTriggerResource object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-