com.google.api.services.eventarc.v1.model.Destination 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;
/**
* Represents a target of an invocation over HTTP.
*
* 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 Destination extends com.google.api.client.json.GenericJson {
/**
* The Cloud Function resource name. Cloud Functions V1 and V2 are supported. Format:
* `projects/{project}/locations/{location}/functions/{function}` This is a read-only field.
* Creating Cloud Functions V1/V2 triggers is only supported via the Cloud Functions product. An
* error will be returned if the user sets this value.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String cloudFunction;
/**
* Cloud Run fully-managed resource that receives the events. The resource should be in the same
* project as the trigger.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private CloudRun cloudRun;
/**
* A GKE service capable of receiving events. The service should be running in the same project as
* the trigger.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private GKE gke;
/**
* An HTTP endpoint destination described by an URI.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private HttpEndpoint httpEndpoint;
/**
* Optional. Network config is used to configure how Eventarc resolves and connect to a
* destination. This should only be used with HttpEndpoint destination type.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private NetworkConfig networkConfig;
/**
* The resource name of the Workflow whose Executions are triggered by the events. The Workflow
* resource should be deployed in the same project as the trigger. Format:
* `projects/{project}/locations/{location}/workflows/{workflow}`
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String workflow;
/**
* The Cloud Function resource name. Cloud Functions V1 and V2 are supported. Format:
* `projects/{project}/locations/{location}/functions/{function}` This is a read-only field.
* Creating Cloud Functions V1/V2 triggers is only supported via the Cloud Functions product. An
* error will be returned if the user sets this value.
* @return value or {@code null} for none
*/
public java.lang.String getCloudFunction() {
return cloudFunction;
}
/**
* The Cloud Function resource name. Cloud Functions V1 and V2 are supported. Format:
* `projects/{project}/locations/{location}/functions/{function}` This is a read-only field.
* Creating Cloud Functions V1/V2 triggers is only supported via the Cloud Functions product. An
* error will be returned if the user sets this value.
* @param cloudFunction cloudFunction or {@code null} for none
*/
public Destination setCloudFunction(java.lang.String cloudFunction) {
this.cloudFunction = cloudFunction;
return this;
}
/**
* Cloud Run fully-managed resource that receives the events. The resource should be in the same
* project as the trigger.
* @return value or {@code null} for none
*/
public CloudRun getCloudRun() {
return cloudRun;
}
/**
* Cloud Run fully-managed resource that receives the events. The resource should be in the same
* project as the trigger.
* @param cloudRun cloudRun or {@code null} for none
*/
public Destination setCloudRun(CloudRun cloudRun) {
this.cloudRun = cloudRun;
return this;
}
/**
* A GKE service capable of receiving events. The service should be running in the same project as
* the trigger.
* @return value or {@code null} for none
*/
public GKE getGke() {
return gke;
}
/**
* A GKE service capable of receiving events. The service should be running in the same project as
* the trigger.
* @param gke gke or {@code null} for none
*/
public Destination setGke(GKE gke) {
this.gke = gke;
return this;
}
/**
* An HTTP endpoint destination described by an URI.
* @return value or {@code null} for none
*/
public HttpEndpoint getHttpEndpoint() {
return httpEndpoint;
}
/**
* An HTTP endpoint destination described by an URI.
* @param httpEndpoint httpEndpoint or {@code null} for none
*/
public Destination setHttpEndpoint(HttpEndpoint httpEndpoint) {
this.httpEndpoint = httpEndpoint;
return this;
}
/**
* Optional. Network config is used to configure how Eventarc resolves and connect to a
* destination. This should only be used with HttpEndpoint destination type.
* @return value or {@code null} for none
*/
public NetworkConfig getNetworkConfig() {
return networkConfig;
}
/**
* Optional. Network config is used to configure how Eventarc resolves and connect to a
* destination. This should only be used with HttpEndpoint destination type.
* @param networkConfig networkConfig or {@code null} for none
*/
public Destination setNetworkConfig(NetworkConfig networkConfig) {
this.networkConfig = networkConfig;
return this;
}
/**
* The resource name of the Workflow whose Executions are triggered by the events. The Workflow
* resource should be deployed in the same project as the trigger. Format:
* `projects/{project}/locations/{location}/workflows/{workflow}`
* @return value or {@code null} for none
*/
public java.lang.String getWorkflow() {
return workflow;
}
/**
* The resource name of the Workflow whose Executions are triggered by the events. The Workflow
* resource should be deployed in the same project as the trigger. Format:
* `projects/{project}/locations/{location}/workflows/{workflow}`
* @param workflow workflow or {@code null} for none
*/
public Destination setWorkflow(java.lang.String workflow) {
this.workflow = workflow;
return this;
}
@Override
public Destination set(String fieldName, Object value) {
return (Destination) super.set(fieldName, value);
}
@Override
public Destination clone() {
return (Destination) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy