public final class NetworkEndpoint extends 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
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
NetworkEndpoint() |
Modifier and Type | Method and Description |
---|---|
NetworkEndpoint |
clone() |
String |
getInstance()
The name for a specific VM instance that the IP address belongs to.
|
String |
getIpAddress()
Optional IPv4 address of network endpoint.
|
Integer |
getPort()
Optional port number of network endpoint.
|
NetworkEndpoint |
set(String fieldName,
Object value) |
NetworkEndpoint |
setInstance(String instance)
The name for a specific VM instance that the IP address belongs to.
|
NetworkEndpoint |
setIpAddress(String ipAddress)
Optional IPv4 address of network endpoint.
|
NetworkEndpoint |
setPort(Integer port)
Optional port number of network endpoint.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public String getInstance()
null
for nonepublic NetworkEndpoint setInstance(String instance)
instance
- instance or null
for nonepublic String getIpAddress()
null
for nonepublic NetworkEndpoint setIpAddress(String ipAddress)
ipAddress
- ipAddress or null
for nonepublic Integer getPort()
null
for nonepublic NetworkEndpoint setPort(Integer port)
port
- port or null
for nonepublic NetworkEndpoint set(String fieldName, Object value)
set
in class GenericJson
public NetworkEndpoint clone()
clone
in class GenericJson
Copyright © 2011–2019 Google. All rights reserved.