public final class NetworkInterface
extends com.google.api.client.json.GenericJson
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: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
NetworkInterface() |
| Modifier and Type | Method and Description |
|---|---|
NetworkInterface |
clone() |
byte[] |
decodeFingerprint()
Fingerprint hash of contents stored in this network interface.
|
NetworkInterface |
encodeFingerprint(byte[] fingerprint)
Fingerprint hash of contents stored in this network interface.
|
List<AccessConfig> |
getAccessConfigs()
An array of configurations for this interface.
|
List<AliasIpRange> |
getAliasIpRanges()
An array of alias IP ranges for this network interface.
|
String |
getFingerprint()
Fingerprint hash of contents stored in this network interface.
|
Integer |
getInternalIpv6PrefixLength()
The prefix length of the primary internal IPv6 range.
|
List<AccessConfig> |
getIpv6AccessConfigs()
An array of IPv6 access configurations for this interface.
|
String |
getIpv6AccessType()
[Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the
Internet.
|
String |
getIpv6Address()
An IPv6 internal network address for this network interface.
|
String |
getKind()
[Output Only] Type of the resource.
|
String |
getName()
[Output Only] The name of the network interface, which is generated by the server.
|
String |
getNetwork()
URL of the VPC network resource for this instance.
|
String |
getNetworkAttachment()
The URL of the network attachment that this interface should connect to in the following
format:
projects/{project_number}/regions/{region_name}/networkAttachments/{network_attachment_name}.
|
String |
getNetworkIP()
An IPv4 internal IP address to assign to the instance for this network interface.
|
String |
getNicType()
The type of vNIC to be used on this interface.
|
Integer |
getQueueCount()
The networking queue count that's specified by users for the network interface.
|
String |
getStackType()
The stack type for this network interface.
|
String |
getSubnetwork()
The URL of the Subnetwork resource for this instance.
|
NetworkInterface |
set(String fieldName,
Object value) |
NetworkInterface |
setAccessConfigs(List<AccessConfig> accessConfigs)
An array of configurations for this interface.
|
NetworkInterface |
setAliasIpRanges(List<AliasIpRange> aliasIpRanges)
An array of alias IP ranges for this network interface.
|
NetworkInterface |
setFingerprint(String fingerprint)
Fingerprint hash of contents stored in this network interface.
|
NetworkInterface |
setInternalIpv6PrefixLength(Integer internalIpv6PrefixLength)
The prefix length of the primary internal IPv6 range.
|
NetworkInterface |
setIpv6AccessConfigs(List<AccessConfig> ipv6AccessConfigs)
An array of IPv6 access configurations for this interface.
|
NetworkInterface |
setIpv6AccessType(String ipv6AccessType)
[Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the
Internet.
|
NetworkInterface |
setIpv6Address(String ipv6Address)
An IPv6 internal network address for this network interface.
|
NetworkInterface |
setKind(String kind)
[Output Only] Type of the resource.
|
NetworkInterface |
setName(String name)
[Output Only] The name of the network interface, which is generated by the server.
|
NetworkInterface |
setNetwork(String network)
URL of the VPC network resource for this instance.
|
NetworkInterface |
setNetworkAttachment(String networkAttachment)
The URL of the network attachment that this interface should connect to in the following
format:
projects/{project_number}/regions/{region_name}/networkAttachments/{network_attachment_name}.
|
NetworkInterface |
setNetworkIP(String networkIP)
An IPv4 internal IP address to assign to the instance for this network interface.
|
NetworkInterface |
setNicType(String nicType)
The type of vNIC to be used on this interface.
|
NetworkInterface |
setQueueCount(Integer queueCount)
The networking queue count that's specified by users for the network interface.
|
NetworkInterface |
setStackType(String stackType)
The stack type for this network interface.
|
NetworkInterface |
setSubnetwork(String subnetwork)
The URL of the Subnetwork resource for this instance.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic List<AccessConfig> getAccessConfigs()
null for nonepublic NetworkInterface setAccessConfigs(List<AccessConfig> accessConfigs)
accessConfigs - accessConfigs or null for nonepublic List<AliasIpRange> getAliasIpRanges()
null for nonepublic NetworkInterface setAliasIpRanges(List<AliasIpRange> aliasIpRanges)
aliasIpRanges - aliasIpRanges or null for nonepublic String getFingerprint()
null for nonedecodeFingerprint()public byte[] decodeFingerprint()
null for nonegetFingerprint()public NetworkInterface setFingerprint(String fingerprint)
fingerprint - fingerprint or null for none#encodeFingerprint()public NetworkInterface encodeFingerprint(byte[] fingerprint)
The value is encoded Base64 or {@code null} for none.
public Integer getInternalIpv6PrefixLength()
null for nonepublic NetworkInterface setInternalIpv6PrefixLength(Integer internalIpv6PrefixLength)
internalIpv6PrefixLength - internalIpv6PrefixLength or null for nonepublic List<AccessConfig> getIpv6AccessConfigs()
null for nonepublic NetworkInterface setIpv6AccessConfigs(List<AccessConfig> ipv6AccessConfigs)
ipv6AccessConfigs - ipv6AccessConfigs or null for nonepublic String getIpv6AccessType()
null for nonepublic NetworkInterface setIpv6AccessType(String ipv6AccessType)
ipv6AccessType - ipv6AccessType or null for nonepublic String getIpv6Address()
null for nonepublic NetworkInterface setIpv6Address(String ipv6Address)
ipv6Address - ipv6Address or null for nonepublic String getKind()
null for nonepublic NetworkInterface setKind(String kind)
kind - kind or null for nonepublic String getName()
null for nonepublic NetworkInterface setName(String name)
name - name or null for nonepublic String getNetwork()
null for nonepublic NetworkInterface setNetwork(String network)
network - network or null for nonepublic String getNetworkAttachment()
null for nonepublic NetworkInterface setNetworkAttachment(String networkAttachment)
networkAttachment - networkAttachment or null for nonepublic String getNetworkIP()
null for nonepublic NetworkInterface setNetworkIP(String networkIP)
networkIP - networkIP or null for nonepublic String getNicType()
null for nonepublic NetworkInterface setNicType(String nicType)
nicType - nicType or null for nonepublic Integer getQueueCount()
null for nonepublic NetworkInterface setQueueCount(Integer queueCount)
queueCount - queueCount or null for nonepublic String getStackType()
null for nonepublic NetworkInterface setStackType(String stackType)
stackType - stackType or null for nonepublic String getSubnetwork()
null for nonepublic NetworkInterface setSubnetwork(String subnetwork)
subnetwork - subnetwork or null for nonepublic NetworkInterface set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic NetworkInterface clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2023 Google. All rights reserved.