com.google.api.services.batch.v1.model.NetworkInterface 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.batch.v1.model;
/**
* A network interface.
*
* 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 Batch 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 NetworkInterface extends com.google.api.client.json.GenericJson {
/**
* The URL of an existing network resource. You can specify the network as a full or partial URL.
* For example, the following are all valid URLs: *
* https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network} *
* projects/{project}/global/networks/{network} * global/networks/{network}
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String network;
/**
* Default is false (with an external IP address). Required if no external public IP address is
* attached to the VM. If no external public IP address, additional configuration is required to
* allow the VM to access Google Services. See https://cloud.google.com/vpc/docs/configure-
* private-google-access and https://cloud.google.com/nat/docs/gce-example#create-nat for more
* information.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean noExternalIpAddress;
/**
* The URL of an existing subnetwork resource in the network. You can specify the subnetwork as a
* full or partial URL. For example, the following are all valid URLs: * https://www.googleapis.co
* m/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork} *
* projects/{project}/regions/{region}/subnetworks/{subnetwork} *
* regions/{region}/subnetworks/{subnetwork}
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String subnetwork;
/**
* The URL of an existing network resource. You can specify the network as a full or partial URL.
* For example, the following are all valid URLs: *
* https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network} *
* projects/{project}/global/networks/{network} * global/networks/{network}
* @return value or {@code null} for none
*/
public java.lang.String getNetwork() {
return network;
}
/**
* The URL of an existing network resource. You can specify the network as a full or partial URL.
* For example, the following are all valid URLs: *
* https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network} *
* projects/{project}/global/networks/{network} * global/networks/{network}
* @param network network or {@code null} for none
*/
public NetworkInterface setNetwork(java.lang.String network) {
this.network = network;
return this;
}
/**
* Default is false (with an external IP address). Required if no external public IP address is
* attached to the VM. If no external public IP address, additional configuration is required to
* allow the VM to access Google Services. See https://cloud.google.com/vpc/docs/configure-
* private-google-access and https://cloud.google.com/nat/docs/gce-example#create-nat for more
* information.
* @return value or {@code null} for none
*/
public java.lang.Boolean getNoExternalIpAddress() {
return noExternalIpAddress;
}
/**
* Default is false (with an external IP address). Required if no external public IP address is
* attached to the VM. If no external public IP address, additional configuration is required to
* allow the VM to access Google Services. See https://cloud.google.com/vpc/docs/configure-
* private-google-access and https://cloud.google.com/nat/docs/gce-example#create-nat for more
* information.
* @param noExternalIpAddress noExternalIpAddress or {@code null} for none
*/
public NetworkInterface setNoExternalIpAddress(java.lang.Boolean noExternalIpAddress) {
this.noExternalIpAddress = noExternalIpAddress;
return this;
}
/**
* The URL of an existing subnetwork resource in the network. You can specify the subnetwork as a
* full or partial URL. For example, the following are all valid URLs: * https://www.googleapis.co
* m/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork} *
* projects/{project}/regions/{region}/subnetworks/{subnetwork} *
* regions/{region}/subnetworks/{subnetwork}
* @return value or {@code null} for none
*/
public java.lang.String getSubnetwork() {
return subnetwork;
}
/**
* The URL of an existing subnetwork resource in the network. You can specify the subnetwork as a
* full or partial URL. For example, the following are all valid URLs: * https://www.googleapis.co
* m/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork} *
* projects/{project}/regions/{region}/subnetworks/{subnetwork} *
* regions/{region}/subnetworks/{subnetwork}
* @param subnetwork subnetwork or {@code null} for none
*/
public NetworkInterface setSubnetwork(java.lang.String subnetwork) {
this.subnetwork = subnetwork;
return this;
}
@Override
public NetworkInterface set(String fieldName, Object value) {
return (NetworkInterface) super.set(fieldName, value);
}
@Override
public NetworkInterface clone() {
return (NetworkInterface) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy