com.google.api.services.eventarc.v1.model.ChannelConnection 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 ChannelConnection resource. A ChannelConnection is a resource which event
* providers create during the activation process to establish a connection between the provider and
* the subscriber channel.
*
* 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 ChannelConnection extends com.google.api.client.json.GenericJson {
/**
* Input only. Activation token for the channel. The token will be used during the creation of
* ChannelConnection to bind the channel with the provider project. This field will not be stored
* in the provider resource.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String activationToken;
/**
* Required. The name of the connected subscriber Channel. This is a weak reference to avoid cross
* project and cross accounts references. This must be in
* `projects/{project}/location/{location}/channels/{channel_id}` format.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String channel;
/**
* Output only. The creation time.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String createTime;
/**
* Required. The name of the connection.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String name;
/**
* Output only. Server assigned ID of the resource. The server guarantees uniqueness and
* immutability until 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;
/**
* Input only. Activation token for the channel. The token will be used during the creation of
* ChannelConnection to bind the channel with the provider project. This field will not be stored
* in the provider resource.
* @return value or {@code null} for none
*/
public java.lang.String getActivationToken() {
return activationToken;
}
/**
* Input only. Activation token for the channel. The token will be used during the creation of
* ChannelConnection to bind the channel with the provider project. This field will not be stored
* in the provider resource.
* @param activationToken activationToken or {@code null} for none
*/
public ChannelConnection setActivationToken(java.lang.String activationToken) {
this.activationToken = activationToken;
return this;
}
/**
* Required. The name of the connected subscriber Channel. This is a weak reference to avoid cross
* project and cross accounts references. This must be in
* `projects/{project}/location/{location}/channels/{channel_id}` format.
* @return value or {@code null} for none
*/
public java.lang.String getChannel() {
return channel;
}
/**
* Required. The name of the connected subscriber Channel. This is a weak reference to avoid cross
* project and cross accounts references. This must be in
* `projects/{project}/location/{location}/channels/{channel_id}` format.
* @param channel channel or {@code null} for none
*/
public ChannelConnection setChannel(java.lang.String channel) {
this.channel = channel;
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 ChannelConnection setCreateTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* Required. The name of the connection.
* @return value or {@code null} for none
*/
public java.lang.String getName() {
return name;
}
/**
* Required. The name of the connection.
* @param name name or {@code null} for none
*/
public ChannelConnection setName(java.lang.String name) {
this.name = name;
return this;
}
/**
* Output only. Server assigned ID of the resource. The server guarantees uniqueness and
* immutability until deleted.
* @return value or {@code null} for none
*/
public java.lang.String getUid() {
return uid;
}
/**
* Output only. Server assigned ID of the resource. The server guarantees uniqueness and
* immutability until deleted.
* @param uid uid or {@code null} for none
*/
public ChannelConnection 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 ChannelConnection setUpdateTime(String updateTime) {
this.updateTime = updateTime;
return this;
}
@Override
public ChannelConnection set(String fieldName, Object value) {
return (ChannelConnection) super.set(fieldName, value);
}
@Override
public ChannelConnection clone() {
return (ChannelConnection) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy