com.google.api.services.run.v2.model.GoogleCloudRunV2NetworkInterface 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.run.v2.model;
/**
* Direct VPC egress settings.
*
* 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 Cloud Run Admin 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 GoogleCloudRunV2NetworkInterface extends com.google.api.client.json.GenericJson {
/**
* Optional. The VPC network that the Cloud Run resource will be able to send traffic to. At least
* one of network or subnetwork must be specified. If both network and subnetwork are specified,
* the given VPC subnetwork must belong to the given VPC network. If network is not specified, it
* will be looked up from the subnetwork.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String network;
/**
* Optional. The VPC subnetwork that the Cloud Run resource will get IPs from. At least one of
* network or subnetwork must be specified. If both network and subnetwork are specified, the
* given VPC subnetwork must belong to the given VPC network. If subnetwork is not specified, the
* subnetwork with the same name with the network will be used.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String subnetwork;
/**
* Optional. Network tags applied to this Cloud Run resource.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List tags;
/**
* Optional. The VPC network that the Cloud Run resource will be able to send traffic to. At least
* one of network or subnetwork must be specified. If both network and subnetwork are specified,
* the given VPC subnetwork must belong to the given VPC network. If network is not specified, it
* will be looked up from the subnetwork.
* @return value or {@code null} for none
*/
public java.lang.String getNetwork() {
return network;
}
/**
* Optional. The VPC network that the Cloud Run resource will be able to send traffic to. At least
* one of network or subnetwork must be specified. If both network and subnetwork are specified,
* the given VPC subnetwork must belong to the given VPC network. If network is not specified, it
* will be looked up from the subnetwork.
* @param network network or {@code null} for none
*/
public GoogleCloudRunV2NetworkInterface setNetwork(java.lang.String network) {
this.network = network;
return this;
}
/**
* Optional. The VPC subnetwork that the Cloud Run resource will get IPs from. At least one of
* network or subnetwork must be specified. If both network and subnetwork are specified, the
* given VPC subnetwork must belong to the given VPC network. If subnetwork is not specified, the
* subnetwork with the same name with the network will be used.
* @return value or {@code null} for none
*/
public java.lang.String getSubnetwork() {
return subnetwork;
}
/**
* Optional. The VPC subnetwork that the Cloud Run resource will get IPs from. At least one of
* network or subnetwork must be specified. If both network and subnetwork are specified, the
* given VPC subnetwork must belong to the given VPC network. If subnetwork is not specified, the
* subnetwork with the same name with the network will be used.
* @param subnetwork subnetwork or {@code null} for none
*/
public GoogleCloudRunV2NetworkInterface setSubnetwork(java.lang.String subnetwork) {
this.subnetwork = subnetwork;
return this;
}
/**
* Optional. Network tags applied to this Cloud Run resource.
* @return value or {@code null} for none
*/
public java.util.List getTags() {
return tags;
}
/**
* Optional. Network tags applied to this Cloud Run resource.
* @param tags tags or {@code null} for none
*/
public GoogleCloudRunV2NetworkInterface setTags(java.util.List tags) {
this.tags = tags;
return this;
}
@Override
public GoogleCloudRunV2NetworkInterface set(String fieldName, Object value) {
return (GoogleCloudRunV2NetworkInterface) super.set(fieldName, value);
}
@Override
public GoogleCloudRunV2NetworkInterface clone() {
return (GoogleCloudRunV2NetworkInterface) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy