All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.services.eventarc.v1.model.Trigger 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.eventarc.v1.model;

/**
 * A representation of the trigger resource.
 *
 * 

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 Eventarc 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 Trigger extends com.google.api.client.json.GenericJson { /** * Optional. The name of the channel associated with the trigger in * `projects/{project}/locations/{location}/channels/{channel}` format. You must provide a channel * to receive events from Eventarc SaaS partners. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String channel; /** * Output only. The reason(s) why a trigger is in FAILED state. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.Map conditions; static { // hack to force ProGuard to consider StateCondition 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(StateCondition.class); } /** * Output only. The creation time. * The value may be {@code null}. */ @com.google.api.client.util.Key private String createTime; /** * Required. Destination specifies where the events should be sent to. * The value may be {@code null}. */ @com.google.api.client.util.Key private Destination destination; /** * Output only. This checksum is computed by the server based on the value of other fields, and * might be sent only on create requests to ensure that the client has an up-to-date value before * proceeding. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String etag; /** * Optional. EventDataContentType specifies the type of payload in MIME format that is expected * from the CloudEvent data field. This is set to `application/json` if the value is not defined. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String eventDataContentType; /** * Required. Unordered list. The list of filters that applies to event attributes. Only events * that match all the provided filters are sent to the destination. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List eventFilters; static { // hack to force ProGuard to consider EventFilter 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(EventFilter.class); } /** * Optional. User labels attached to the triggers that can be used to group resources. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.Map labels; /** * Required. The resource name of the trigger. Must be unique within the location of the project * and must be in `projects/{project}/locations/{location}/triggers/{trigger}` format. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String name; /** * Optional. The IAM service account email associated with the trigger. The service account * represents the identity of the trigger. The `iam.serviceAccounts.actAs` permission must be * granted on the service account to allow a principal to impersonate the service account. For * more information, see the [Roles and permissions](/eventarc/docs/all-roles-permissions) page * specific to the trigger destination. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String serviceAccount; /** * Optional. To deliver messages, Eventarc might use other Google Cloud products as a transport * intermediary. This field contains a reference to that transport intermediary. This information * can be used for debugging purposes. * The value may be {@code null}. */ @com.google.api.client.util.Key private Transport transport; /** * Output only. Server-assigned unique identifier for the trigger. The value is a UUID4 string and * guaranteed to remain unchanged until the resource is deleted. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String uid; /** * Output only. The last-modified time. * The value may be {@code null}. */ @com.google.api.client.util.Key private String updateTime; /** * Optional. The name of the channel associated with the trigger in * `projects/{project}/locations/{location}/channels/{channel}` format. You must provide a channel * to receive events from Eventarc SaaS partners. * @return value or {@code null} for none */ public java.lang.String getChannel() { return channel; } /** * Optional. The name of the channel associated with the trigger in * `projects/{project}/locations/{location}/channels/{channel}` format. You must provide a channel * to receive events from Eventarc SaaS partners. * @param channel channel or {@code null} for none */ public Trigger setChannel(java.lang.String channel) { this.channel = channel; return this; } /** * Output only. The reason(s) why a trigger is in FAILED state. * @return value or {@code null} for none */ public java.util.Map getConditions() { return conditions; } /** * Output only. The reason(s) why a trigger is in FAILED state. * @param conditions conditions or {@code null} for none */ public Trigger setConditions(java.util.Map conditions) { this.conditions = conditions; return this; } /** * Output only. The creation time. * @return value or {@code null} for none */ public String getCreateTime() { return createTime; } /** * Output only. The creation time. * @param createTime createTime or {@code null} for none */ public Trigger setCreateTime(String createTime) { this.createTime = createTime; return this; } /** * Required. Destination specifies where the events should be sent to. * @return value or {@code null} for none */ public Destination getDestination() { return destination; } /** * Required. Destination specifies where the events should be sent to. * @param destination destination or {@code null} for none */ public Trigger setDestination(Destination destination) { this.destination = destination; return this; } /** * Output only. This checksum is computed by the server based on the value of other fields, and * might be sent only on create requests to ensure that the client has an up-to-date value before * proceeding. * @return value or {@code null} for none */ public java.lang.String getEtag() { return etag; } /** * Output only. This checksum is computed by the server based on the value of other fields, and * might be sent only on create requests to ensure that the client has an up-to-date value before * proceeding. * @param etag etag or {@code null} for none */ public Trigger setEtag(java.lang.String etag) { this.etag = etag; return this; } /** * Optional. EventDataContentType specifies the type of payload in MIME format that is expected * from the CloudEvent data field. This is set to `application/json` if the value is not defined. * @return value or {@code null} for none */ public java.lang.String getEventDataContentType() { return eventDataContentType; } /** * Optional. EventDataContentType specifies the type of payload in MIME format that is expected * from the CloudEvent data field. This is set to `application/json` if the value is not defined. * @param eventDataContentType eventDataContentType or {@code null} for none */ public Trigger setEventDataContentType(java.lang.String eventDataContentType) { this.eventDataContentType = eventDataContentType; return this; } /** * Required. Unordered list. The list of filters that applies to event attributes. Only events * that match all the provided filters are sent to the destination. * @return value or {@code null} for none */ public java.util.List getEventFilters() { return eventFilters; } /** * Required. Unordered list. The list of filters that applies to event attributes. Only events * that match all the provided filters are sent to the destination. * @param eventFilters eventFilters or {@code null} for none */ public Trigger setEventFilters(java.util.List eventFilters) { this.eventFilters = eventFilters; return this; } /** * Optional. User labels attached to the triggers that can be used to group resources. * @return value or {@code null} for none */ public java.util.Map getLabels() { return labels; } /** * Optional. User labels attached to the triggers that can be used to group resources. * @param labels labels or {@code null} for none */ public Trigger setLabels(java.util.Map labels) { this.labels = labels; return this; } /** * Required. The resource name of the trigger. Must be unique within the location of the project * and must be in `projects/{project}/locations/{location}/triggers/{trigger}` format. * @return value or {@code null} for none */ public java.lang.String getName() { return name; } /** * Required. The resource name of the trigger. Must be unique within the location of the project * and must be in `projects/{project}/locations/{location}/triggers/{trigger}` format. * @param name name or {@code null} for none */ public Trigger setName(java.lang.String name) { this.name = name; return this; } /** * Optional. The IAM service account email associated with the trigger. The service account * represents the identity of the trigger. The `iam.serviceAccounts.actAs` permission must be * granted on the service account to allow a principal to impersonate the service account. For * more information, see the [Roles and permissions](/eventarc/docs/all-roles-permissions) page * specific to the trigger destination. * @return value or {@code null} for none */ public java.lang.String getServiceAccount() { return serviceAccount; } /** * Optional. The IAM service account email associated with the trigger. The service account * represents the identity of the trigger. The `iam.serviceAccounts.actAs` permission must be * granted on the service account to allow a principal to impersonate the service account. For * more information, see the [Roles and permissions](/eventarc/docs/all-roles-permissions) page * specific to the trigger destination. * @param serviceAccount serviceAccount or {@code null} for none */ public Trigger setServiceAccount(java.lang.String serviceAccount) { this.serviceAccount = serviceAccount; return this; } /** * Optional. To deliver messages, Eventarc might use other Google Cloud products as a transport * intermediary. This field contains a reference to that transport intermediary. This information * can be used for debugging purposes. * @return value or {@code null} for none */ public Transport getTransport() { return transport; } /** * Optional. To deliver messages, Eventarc might use other Google Cloud products as a transport * intermediary. This field contains a reference to that transport intermediary. This information * can be used for debugging purposes. * @param transport transport or {@code null} for none */ public Trigger setTransport(Transport transport) { this.transport = transport; return this; } /** * Output only. Server-assigned unique identifier for the trigger. The value is a UUID4 string and * guaranteed to remain unchanged until the resource is deleted. * @return value or {@code null} for none */ public java.lang.String getUid() { return uid; } /** * Output only. Server-assigned unique identifier for the trigger. The value is a UUID4 string and * guaranteed to remain unchanged until the resource is deleted. * @param uid uid or {@code null} for none */ public Trigger setUid(java.lang.String uid) { this.uid = uid; return this; } /** * Output only. The last-modified time. * @return value or {@code null} for none */ public String getUpdateTime() { return updateTime; } /** * Output only. The last-modified time. * @param updateTime updateTime or {@code null} for none */ public Trigger setUpdateTime(String updateTime) { this.updateTime = updateTime; return this; } @Override public Trigger set(String fieldName, Object value) { return (Trigger) super.set(fieldName, value); } @Override public Trigger clone() { return (Trigger) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy