public final class TargetInstance
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.Flags| Constructor and Description |
|---|
TargetInstance() |
| Modifier and Type | Method and Description |
|---|---|
TargetInstance |
clone() |
java.lang.String |
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
java.lang.String |
getDescription()
An optional description of this resource.
|
java.math.BigInteger |
getId()
[Output Only] The unique identifier for the resource.
|
java.lang.String |
getInstance()
A URL to the virtual machine instance that handles traffic for this target instance.
|
java.lang.String |
getKind()
[Output Only] The type of the resource.
|
java.lang.String |
getName()
Name of the resource.
|
java.lang.String |
getNatPolicy()
NAT option controlling how IPs are NAT'ed to the instance.
|
java.lang.String |
getSelfLink()
[Output Only] Server-defined URL for the resource.
|
java.lang.String |
getZone()
[Output Only] URL of the zone where the target instance resides.
|
TargetInstance |
set(java.lang.String fieldName,
java.lang.Object value) |
TargetInstance |
setCreationTimestamp(java.lang.String creationTimestamp)
[Output Only] Creation timestamp in RFC3339 text format.
|
TargetInstance |
setDescription(java.lang.String description)
An optional description of this resource.
|
TargetInstance |
setId(java.math.BigInteger id)
[Output Only] The unique identifier for the resource.
|
TargetInstance |
setInstance(java.lang.String instance)
A URL to the virtual machine instance that handles traffic for this target instance.
|
TargetInstance |
setKind(java.lang.String kind)
[Output Only] The type of the resource.
|
TargetInstance |
setName(java.lang.String name)
Name of the resource.
|
TargetInstance |
setNatPolicy(java.lang.String natPolicy)
NAT option controlling how IPs are NAT'ed to the instance.
|
TargetInstance |
setSelfLink(java.lang.String selfLink)
[Output Only] Server-defined URL for the resource.
|
TargetInstance |
setZone(java.lang.String zone)
[Output Only] URL of the zone where the target instance resides.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeyspublic java.lang.String getCreationTimestamp()
null for nonepublic TargetInstance setCreationTimestamp(java.lang.String creationTimestamp)
creationTimestamp - creationTimestamp or null for nonepublic java.lang.String getDescription()
null for nonepublic TargetInstance setDescription(java.lang.String description)
description - description or null for nonepublic java.math.BigInteger getId()
null for nonepublic TargetInstance setId(java.math.BigInteger id)
id - id or null for nonepublic java.lang.String getInstance()
null for nonepublic TargetInstance setInstance(java.lang.String instance)
instance - instance or null for nonepublic java.lang.String getKind()
null for nonepublic TargetInstance setKind(java.lang.String kind)
kind - kind or null for nonepublic java.lang.String getName()
null for nonepublic TargetInstance setName(java.lang.String name)
name - name or null for nonepublic java.lang.String getNatPolicy()
null for nonepublic TargetInstance setNatPolicy(java.lang.String natPolicy)
natPolicy - natPolicy or null for nonepublic java.lang.String getSelfLink()
null for nonepublic TargetInstance setSelfLink(java.lang.String selfLink)
selfLink - selfLink or null for nonepublic java.lang.String getZone()
null for nonepublic TargetInstance setZone(java.lang.String zone)
zone - zone or null for nonepublic TargetInstance set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic TargetInstance clone()
clone in class com.google.api.client.json.GenericJson