Package com.azure.data.cosmos
Class CosmosTrigger
- java.lang.Object
-
- com.azure.data.cosmos.CosmosTrigger
-
public class CosmosTrigger extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Mono<CosmosResponse>
delete()
Deletes a cosmos trigger.String
id()
Get the id of theCosmosTrigger
Mono<CosmosTriggerResponse>
read()
Reads a cosmos trigger by the trigger link.Mono<CosmosTriggerResponse>
replace(CosmosTriggerProperties triggerSettings)
Replaces a cosmos trigger.
-
-
-
Method Detail
-
id
public String id()
Get the id of theCosmosTrigger
- Returns:
- the id of the
CosmosTrigger
-
read
public Mono<CosmosTriggerResponse> read()
Reads a cosmos trigger by the trigger link.After subscription the operation will be performed. The
Mono
upon successful completion will contain a single resource response for the read trigger. In case of failure theMono
will error.- Returns:
- an
Mono
containing the single resource response for the read cosmos trigger or an error.
-
replace
public Mono<CosmosTriggerResponse> replace(CosmosTriggerProperties triggerSettings)
Replaces a cosmos trigger.After subscription the operation will be performed. The
Mono
upon successful completion will contain a single resource response with the replaced trigger. In case of failure theMono
will error.- Parameters:
triggerSettings
- the cosmos trigger properties.- Returns:
- an
Mono
containing the single resource response with the replaced cosmos trigger or an error.
-
delete
public Mono<CosmosResponse> delete()
Deletes a cosmos trigger.After subscription the operation will be performed. The
Mono
upon successful completion will contain a single resource response for the deleted trigger. In case of failure theMono
will error.- Returns:
- an
Mono
containing the single resource response for the deleted cosmos trigger or an error.
-
-