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

com.google.api.services.compute.model.NetworkInterface Maven / Gradle / Ivy

There is a newer version: v1-rev20241105-2.0.0
Show newest version
/*
 * Copyright 2010 Google Inc.
 *
 * 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://code.google.com/p/google-apis-client-generator/
 * (build: 2013-05-14 03:07:32 UTC)
 * on 2013-05-15 at 01:58:25 UTC 
 * Modify at your own risk.
 */

package com.google.api.services.compute.model;

/**
 * A network interface resource attached to an instance.
 *
 * 

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 Compute Engine API. For a detailed explanation see: * http://code.google.com/p/google-api-java-client/wiki/Json *

* * @author Google, Inc. */ @SuppressWarnings("javadoc") public final class NetworkInterface extends com.google.api.client.json.GenericJson { /** * Array of configurations for this interface. This specifies how this interface is configured to * interact with other network services, such as connecting to the internet. Currently, * ONE_TO_ONE_NAT is the only access config supported. If there are no accessConfigs specified, * then this instance will have no external internet access. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List accessConfigs; static { // hack to force ProGuard to consider AccessConfig used, since otherwise it would be stripped out // see http://code.google.com/p/google-api-java-client/issues/detail?id=528 com.google.api.client.util.Data.nullOf(AccessConfig.class); } /** * Name of the network interface, determined by the server; for network devices, these are e.g. * eth0, eth1, etc. (output only). * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String name; /** * URL of the network resource attached to this interface. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String network; /** * An optional IPV4 internal network address assigned to the instance for this network interface * (output only). * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String networkIP; /** * Array of configurations for this interface. This specifies how this interface is configured to * interact with other network services, such as connecting to the internet. Currently, * ONE_TO_ONE_NAT is the only access config supported. If there are no accessConfigs specified, * then this instance will have no external internet access. * @return value or {@code null} for none */ public java.util.List getAccessConfigs() { return accessConfigs; } /** * Array of configurations for this interface. This specifies how this interface is configured to * interact with other network services, such as connecting to the internet. Currently, * ONE_TO_ONE_NAT is the only access config supported. If there are no accessConfigs specified, * then this instance will have no external internet access. * @param accessConfigs accessConfigs or {@code null} for none */ public NetworkInterface setAccessConfigs(java.util.List accessConfigs) { this.accessConfigs = accessConfigs; return this; } /** * Name of the network interface, determined by the server; for network devices, these are e.g. * eth0, eth1, etc. (output only). * @return value or {@code null} for none */ public java.lang.String getName() { return name; } /** * Name of the network interface, determined by the server; for network devices, these are e.g. * eth0, eth1, etc. (output only). * @param name name or {@code null} for none */ public NetworkInterface setName(java.lang.String name) { this.name = name; return this; } /** * URL of the network resource attached to this interface. * @return value or {@code null} for none */ public java.lang.String getNetwork() { return network; } /** * URL of the network resource attached to this interface. * @param network network or {@code null} for none */ public NetworkInterface setNetwork(java.lang.String network) { this.network = network; return this; } /** * An optional IPV4 internal network address assigned to the instance for this network interface * (output only). * @return value or {@code null} for none */ public java.lang.String getNetworkIP() { return networkIP; } /** * An optional IPV4 internal network address assigned to the instance for this network interface * (output only). * @param networkIP networkIP or {@code null} for none */ public NetworkInterface setNetworkIP(java.lang.String networkIP) { this.networkIP = networkIP; 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