Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License. See License.txt in the project root for
license information.
Code generated by Microsoft (R) AutoRest Code Generator.
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.cosmosdb;
import com.fasterxml.jackson.annotation.JsonProperty;
Cosmos DB SQL trigger resource object.
/**
* Cosmos DB SQL trigger resource object.
*/
public class SqlTriggerResource {
Name of the Cosmos DB SQL trigger.
/**
* Name of the Cosmos DB SQL trigger.
*/
@JsonProperty(value = "id", required = true)
private String id;
Body of the Trigger.
/**
* Body of the Trigger.
*/
@JsonProperty(value = "body")
private String body;
Type of the Trigger. Possible values include: 'Pre', 'Post'.
/**
* Type of the Trigger. Possible values include: 'Pre', 'Post'.
*/
@JsonProperty(value = "triggerType")
private TriggerType triggerType;
The operation the trigger is associated with. Possible values include:
'All', 'Create', 'Update', 'Delete', 'Replace'.
/**
* The operation the trigger is associated with. Possible values include:
* 'All', 'Create', 'Update', 'Delete', 'Replace'.
*/
@JsonProperty(value = "triggerOperation")
private TriggerOperation triggerOperation;
Get name of the Cosmos DB SQL trigger.
Returns: the id value
/**
* Get name of the Cosmos DB SQL trigger.
*
* @return the id value
*/
public String id() {
return this.id;
}
Set name of the Cosmos DB SQL trigger.
Params: - id – the id value to set
Returns: the SqlTriggerResource object itself.
/**
* Set name of the Cosmos DB SQL trigger.
*
* @param id the id value to set
* @return the SqlTriggerResource object itself.
*/
public SqlTriggerResource withId(String id) {
this.id = id;
return this;
}
Get body of the Trigger.
Returns: the body value
/**
* Get body of the Trigger.
*
* @return the body value
*/
public String body() {
return this.body;
}
Set body of the Trigger.
Params: - body – the body value to set
Returns: the SqlTriggerResource object itself.
/**
* Set body of the Trigger.
*
* @param body the body value to set
* @return the SqlTriggerResource object itself.
*/
public SqlTriggerResource withBody(String body) {
this.body = body;
return this;
}
Get type of the Trigger. Possible values include: 'Pre', 'Post'.
Returns: the triggerType value
/**
* Get type of the Trigger. Possible values include: 'Pre', 'Post'.
*
* @return the triggerType value
*/
public TriggerType triggerType() {
return this.triggerType;
}
Set type of the Trigger. Possible values include: 'Pre', 'Post'.
Params: - triggerType – the triggerType value to set
Returns: the SqlTriggerResource object itself.
/**
* Set type of the Trigger. Possible values include: 'Pre', 'Post'.
*
* @param triggerType the triggerType value to set
* @return the SqlTriggerResource object itself.
*/
public SqlTriggerResource withTriggerType(TriggerType triggerType) {
this.triggerType = triggerType;
return this;
}
Get the operation the trigger is associated with. Possible values include: 'All', 'Create', 'Update', 'Delete', 'Replace'.
Returns: the triggerOperation value
/**
* Get the operation the trigger is associated with. Possible values include: 'All', 'Create', 'Update', 'Delete', 'Replace'.
*
* @return the triggerOperation value
*/
public TriggerOperation triggerOperation() {
return this.triggerOperation;
}
Set the operation the trigger is associated with. Possible values include: 'All', 'Create', 'Update', 'Delete', 'Replace'.
Params: - triggerOperation – the triggerOperation value to set
Returns: the SqlTriggerResource object itself.
/**
* Set the operation the trigger is associated with. Possible values include: 'All', 'Create', 'Update', 'Delete', 'Replace'.
*
* @param triggerOperation the triggerOperation value to set
* @return the SqlTriggerResource object itself.
*/
public SqlTriggerResource withTriggerOperation(TriggerOperation triggerOperation) {
this.triggerOperation = triggerOperation;
return this;
}
}