com.microsoft.azure.management.cosmosdb.implementation.SqlTriggerGetResultsInner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-mgmt-cosmosdb Show documentation
Show all versions of azure-mgmt-cosmosdb Show documentation
This package contains Microsoft Azure CosmosDB SDK. A new set of management libraries are now Generally Available. For documentation on how to use the new libraries, please see https://aka.ms/azsdk/java/mgmt
/**
* 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.implementation;
import com.microsoft.azure.management.cosmosdb.TriggerType;
import com.microsoft.azure.management.cosmosdb.TriggerOperation;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
import com.microsoft.azure.management.cosmosdb.ARMResourceProperties;
/**
* An Azure Cosmos DB trigger.
*/
@JsonFlatten
public class SqlTriggerGetResultsInner extends ARMResourceProperties {
/**
* Name of the Cosmos DB SQL trigger.
*/
@JsonProperty(value = "properties.id", required = true)
private String sqlTriggerGetResultsId;
/**
* Body of the Trigger.
*/
@JsonProperty(value = "properties.body")
private String body;
/**
* Type of the Trigger. Possible values include: 'Pre', 'Post'.
*/
@JsonProperty(value = "properties.triggerType")
private TriggerType triggerType;
/**
* The operation the trigger is associated with. Possible values include:
* 'All', 'Create', 'Update', 'Delete', 'Replace'.
*/
@JsonProperty(value = "properties.triggerOperation")
private TriggerOperation triggerOperation;
/**
* A system generated property. A unique identifier.
*/
@JsonProperty(value = "properties._rid", access = JsonProperty.Access.WRITE_ONLY)
private String _rid;
/**
* A system generated property that denotes the last updated timestamp of
* the resource.
*/
@JsonProperty(value = "properties._ts", access = JsonProperty.Access.WRITE_ONLY)
private Object _ts;
/**
* A system generated property representing the resource etag required for
* optimistic concurrency control.
*/
@JsonProperty(value = "properties._etag", access = JsonProperty.Access.WRITE_ONLY)
private String _etag;
/**
* Get name of the Cosmos DB SQL trigger.
*
* @return the sqlTriggerGetResultsId value
*/
public String sqlTriggerGetResultsId() {
return this.sqlTriggerGetResultsId;
}
/**
* Set name of the Cosmos DB SQL trigger.
*
* @param sqlTriggerGetResultsId the sqlTriggerGetResultsId value to set
* @return the SqlTriggerGetResultsInner object itself.
*/
public SqlTriggerGetResultsInner withSqlTriggerGetResultsId(String sqlTriggerGetResultsId) {
this.sqlTriggerGetResultsId = sqlTriggerGetResultsId;
return this;
}
/**
* Get body of the Trigger.
*
* @return the body value
*/
public String body() {
return this.body;
}
/**
* Set body of the Trigger.
*
* @param body the body value to set
* @return the SqlTriggerGetResultsInner object itself.
*/
public SqlTriggerGetResultsInner withBody(String body) {
this.body = body;
return this;
}
/**
* 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'.
*
* @param triggerType the triggerType value to set
* @return the SqlTriggerGetResultsInner object itself.
*/
public SqlTriggerGetResultsInner withTriggerType(TriggerType triggerType) {
this.triggerType = triggerType;
return this;
}
/**
* 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'.
*
* @param triggerOperation the triggerOperation value to set
* @return the SqlTriggerGetResultsInner object itself.
*/
public SqlTriggerGetResultsInner withTriggerOperation(TriggerOperation triggerOperation) {
this.triggerOperation = triggerOperation;
return this;
}
/**
* Get a system generated property. A unique identifier.
*
* @return the _rid value
*/
public String _rid() {
return this._rid;
}
/**
* Get a system generated property that denotes the last updated timestamp of the resource.
*
* @return the _ts value
*/
public Object _ts() {
return this._ts;
}
/**
* Get a system generated property representing the resource etag required for optimistic concurrency control.
*
* @return the _etag value
*/
public String _etag() {
return this._etag;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy