CosmosTriggerProperties Class

  • java.lang.Object
    • com.azure.cosmos.models.CosmosTriggerProperties

public final class CosmosTriggerProperties

The type Cosmos trigger properties.

Constructor Summary

Constructor Description
CosmosTriggerProperties(String id, String body)

Constructor.

Method Summary

Modifier and Type Method and Description
String getBody()

Get the body of the trigger.

String getETag()

Get the entity tag associated with the resource.

String getId()

Gets the name of the resource.

Instant getTimestamp()

Get the last modified timestamp associated with the resource.

TriggerOperation getTriggerOperation()

Get the operation type of the trigger.

TriggerType getTriggerType()

Get the type of the trigger.

CosmosTriggerProperties setBody(String body)

Set the body of the trigger.

CosmosTriggerProperties setId(String id)

Sets the id

CosmosTriggerProperties setTriggerOperation(TriggerOperation triggerOperation)

Set the operation type of the trigger.

CosmosTriggerProperties setTriggerType(TriggerType triggerType)

Set the type of the resource.

Methods inherited from java.lang.Object

Constructor Details

CosmosTriggerProperties

public CosmosTriggerProperties(String id, String body)

Constructor.

Parameters:

id - the id of the Cosmos trigger.
body - the body of the Cosmos trigger.

Method Details

getBody

public String getBody()

Get the body of the trigger.

Returns:

the body of the trigger.

getETag

public String getETag()

Get the entity tag associated with the resource. This is only relevant when getting response from the server.

Returns:

the e tag.

getId

public String getId()

Gets the name of the resource.

Returns:

the name of the resource.

getTimestamp

public Instant getTimestamp()

Get the last modified timestamp associated with the resource. This is only relevant when getting response from the server.

Returns:

the timestamp.

getTriggerOperation

public TriggerOperation getTriggerOperation()

Get the operation type of the trigger.

Returns:

the trigger operation.

getTriggerType

public TriggerType getTriggerType()

Get the type of the trigger.

Returns:

the trigger type.

setBody

public CosmosTriggerProperties setBody(String body)

Set the body of the trigger.

Parameters:

body - the body of the trigger.

Returns:

the CosmosTriggerProperties.

setId

public CosmosTriggerProperties setId(String id)

Sets the id

Parameters:

id - the name of the resource.

Returns:

the current cosmos trigger properties instance

setTriggerOperation

public CosmosTriggerProperties setTriggerOperation(TriggerOperation triggerOperation)

Set the operation type of the trigger.

Parameters:

triggerOperation - the trigger operation.

Returns:

the CosmosTriggerProperties.

setTriggerType

public CosmosTriggerProperties setTriggerType(TriggerType triggerType)

Set the type of the resource.

Parameters:

triggerType - the trigger type.

Returns:

the CosmosTriggerProperties.

Applies to