com.google.api.services.integrations.v1alpha.model.GoogleCloudIntegrationsV1alphaTriggerConfig Maven / Gradle / Ivy
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/
package com.google.api.services.integrations.v1alpha.model;
/**
* Configuration detail of a trigger.
*
* This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Application Integration API. For a detailed
* explanation see:
* https://developers.google.com/api-client-library/java/google-http-java-client/json
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class GoogleCloudIntegrationsV1alphaTriggerConfig extends com.google.api.client.json.GenericJson {
/**
* Optional. An alert threshold configuration for the [trigger + client + integration] tuple. If
* these values are not specified in the trigger config, default values will be populated by the
* system. Note that there must be exactly one alert threshold configured per [client + trigger +
* integration] when published.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List alertConfig;
static {
// hack to force ProGuard to consider GoogleCloudIntegrationsV1alphaIntegrationAlertConfig used, since otherwise it would be stripped out
// see https://github.com/google/google-api-java-client/issues/543
com.google.api.client.util.Data.nullOf(GoogleCloudIntegrationsV1alphaIntegrationAlertConfig.class);
}
/**
* Optional. Cloud Scheduler Trigger related metadata
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private GoogleCloudIntegrationsV1alphaCloudSchedulerConfig cloudSchedulerConfig;
/**
* Optional. User-provided description intended to give additional business context about the
* task.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String description;
/**
* Optional. The user created label for a particular trigger.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String label;
/**
* Optional. Dictates how next tasks will be executed.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String nextTasksExecutionPolicy;
/**
* Optional. Configurable properties of the trigger, not to be confused with integration
* parameters. E.g. "name" is a property for API triggers and "subscription" is a property for
* Pub/sub triggers.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.Map properties;
/**
* Optional. Set of tasks numbers from where the integration execution is started by this trigger.
* If this is empty, then integration is executed with default start tasks. In the list of start
* tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same
* integration execution graph).
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List startTasks;
static {
// hack to force ProGuard to consider GoogleCloudIntegrationsV1alphaNextTask used, since otherwise it would be stripped out
// see https://github.com/google/google-api-java-client/issues/543
com.google.api.client.util.Data.nullOf(GoogleCloudIntegrationsV1alphaNextTask.class);
}
/**
* Optional. The backend trigger ID.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String triggerId;
/**
* Required. A number to uniquely identify each trigger config within the integration on UI.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String triggerNumber;
/**
* Optional. Type of trigger
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String triggerType;
/**
* Optional. An alert threshold configuration for the [trigger + client + integration] tuple. If
* these values are not specified in the trigger config, default values will be populated by the
* system. Note that there must be exactly one alert threshold configured per [client + trigger +
* integration] when published.
* @return value or {@code null} for none
*/
public java.util.List getAlertConfig() {
return alertConfig;
}
/**
* Optional. An alert threshold configuration for the [trigger + client + integration] tuple. If
* these values are not specified in the trigger config, default values will be populated by the
* system. Note that there must be exactly one alert threshold configured per [client + trigger +
* integration] when published.
* @param alertConfig alertConfig or {@code null} for none
*/
public GoogleCloudIntegrationsV1alphaTriggerConfig setAlertConfig(java.util.List alertConfig) {
this.alertConfig = alertConfig;
return this;
}
/**
* Optional. Cloud Scheduler Trigger related metadata
* @return value or {@code null} for none
*/
public GoogleCloudIntegrationsV1alphaCloudSchedulerConfig getCloudSchedulerConfig() {
return cloudSchedulerConfig;
}
/**
* Optional. Cloud Scheduler Trigger related metadata
* @param cloudSchedulerConfig cloudSchedulerConfig or {@code null} for none
*/
public GoogleCloudIntegrationsV1alphaTriggerConfig setCloudSchedulerConfig(GoogleCloudIntegrationsV1alphaCloudSchedulerConfig cloudSchedulerConfig) {
this.cloudSchedulerConfig = cloudSchedulerConfig;
return this;
}
/**
* Optional. User-provided description intended to give additional business context about the
* task.
* @return value or {@code null} for none
*/
public java.lang.String getDescription() {
return description;
}
/**
* Optional. User-provided description intended to give additional business context about the
* task.
* @param description description or {@code null} for none
*/
public GoogleCloudIntegrationsV1alphaTriggerConfig setDescription(java.lang.String description) {
this.description = description;
return this;
}
/**
* Optional. The user created label for a particular trigger.
* @return value or {@code null} for none
*/
public java.lang.String getLabel() {
return label;
}
/**
* Optional. The user created label for a particular trigger.
* @param label label or {@code null} for none
*/
public GoogleCloudIntegrationsV1alphaTriggerConfig setLabel(java.lang.String label) {
this.label = label;
return this;
}
/**
* Optional. Dictates how next tasks will be executed.
* @return value or {@code null} for none
*/
public java.lang.String getNextTasksExecutionPolicy() {
return nextTasksExecutionPolicy;
}
/**
* Optional. Dictates how next tasks will be executed.
* @param nextTasksExecutionPolicy nextTasksExecutionPolicy or {@code null} for none
*/
public GoogleCloudIntegrationsV1alphaTriggerConfig setNextTasksExecutionPolicy(java.lang.String nextTasksExecutionPolicy) {
this.nextTasksExecutionPolicy = nextTasksExecutionPolicy;
return this;
}
/**
* Optional. Configurable properties of the trigger, not to be confused with integration
* parameters. E.g. "name" is a property for API triggers and "subscription" is a property for
* Pub/sub triggers.
* @return value or {@code null} for none
*/
public java.util.Map getProperties() {
return properties;
}
/**
* Optional. Configurable properties of the trigger, not to be confused with integration
* parameters. E.g. "name" is a property for API triggers and "subscription" is a property for
* Pub/sub triggers.
* @param properties properties or {@code null} for none
*/
public GoogleCloudIntegrationsV1alphaTriggerConfig setProperties(java.util.Map properties) {
this.properties = properties;
return this;
}
/**
* Optional. Set of tasks numbers from where the integration execution is started by this trigger.
* If this is empty, then integration is executed with default start tasks. In the list of start
* tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same
* integration execution graph).
* @return value or {@code null} for none
*/
public java.util.List getStartTasks() {
return startTasks;
}
/**
* Optional. Set of tasks numbers from where the integration execution is started by this trigger.
* If this is empty, then integration is executed with default start tasks. In the list of start
* tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same
* integration execution graph).
* @param startTasks startTasks or {@code null} for none
*/
public GoogleCloudIntegrationsV1alphaTriggerConfig setStartTasks(java.util.List startTasks) {
this.startTasks = startTasks;
return this;
}
/**
* Optional. The backend trigger ID.
* @return value or {@code null} for none
*/
public java.lang.String getTriggerId() {
return triggerId;
}
/**
* Optional. The backend trigger ID.
* @param triggerId triggerId or {@code null} for none
*/
public GoogleCloudIntegrationsV1alphaTriggerConfig setTriggerId(java.lang.String triggerId) {
this.triggerId = triggerId;
return this;
}
/**
* Required. A number to uniquely identify each trigger config within the integration on UI.
* @return value or {@code null} for none
*/
public java.lang.String getTriggerNumber() {
return triggerNumber;
}
/**
* Required. A number to uniquely identify each trigger config within the integration on UI.
* @param triggerNumber triggerNumber or {@code null} for none
*/
public GoogleCloudIntegrationsV1alphaTriggerConfig setTriggerNumber(java.lang.String triggerNumber) {
this.triggerNumber = triggerNumber;
return this;
}
/**
* Optional. Type of trigger
* @return value or {@code null} for none
*/
public java.lang.String getTriggerType() {
return triggerType;
}
/**
* Optional. Type of trigger
* @param triggerType triggerType or {@code null} for none
*/
public GoogleCloudIntegrationsV1alphaTriggerConfig setTriggerType(java.lang.String triggerType) {
this.triggerType = triggerType;
return this;
}
@Override
public GoogleCloudIntegrationsV1alphaTriggerConfig set(String fieldName, Object value) {
return (GoogleCloudIntegrationsV1alphaTriggerConfig) super.set(fieldName, value);
}
@Override
public GoogleCloudIntegrationsV1alphaTriggerConfig clone() {
return (GoogleCloudIntegrationsV1alphaTriggerConfig) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy