Package com.azure.data.cosmos.sync
Class CosmosSyncTrigger
- java.lang.Object
-
- com.azure.data.cosmos.sync.CosmosSyncTrigger
-
public class CosmosSyncTrigger extends Object
The type Cosmos sync trigger.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CosmosSyncResponse
delete()
Delete cosmos trigger.String
id()
Gets id.CosmosSyncTriggerResponse
read()
Read cosmos trigger.CosmosSyncTriggerResponse
replace(CosmosTriggerProperties triggerSettings)
Replace cosmos trigger.
-
-
-
Method Detail
-
id
public String id()
Gets id.- Returns:
- the string
-
read
public CosmosSyncTriggerResponse read() throws CosmosClientException
Read cosmos trigger.- Returns:
- the cosmos sync trigger response
- Throws:
CosmosClientException
- the cosmos client exception
-
replace
public CosmosSyncTriggerResponse replace(CosmosTriggerProperties triggerSettings) throws CosmosClientException
Replace cosmos trigger.- Parameters:
triggerSettings
- the trigger settings- Returns:
- the cosmos sync trigger response
- Throws:
CosmosClientException
- the cosmos client exception
-
delete
public CosmosSyncResponse delete() throws CosmosClientException
Delete cosmos trigger.- Returns:
- the cosmos sync response
- Throws:
CosmosClientException
- the cosmos client exception
-
-