public final class Subnetwork 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.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description | 
|---|
Subnetwork()  | 
| Modifier and Type | Method and Description | 
|---|---|
Subnetwork | 
clone()  | 
byte[] | 
decodeFingerprint()
Fingerprint of this resource. 
 | 
Subnetwork | 
encodeFingerprint(byte[] fingerprint)
Fingerprint of this resource. 
 | 
String | 
getAggregationInterval()
Can only be specified if VPC flow logging for this subnetwork is enabled. 
 | 
Boolean | 
getAllowSubnetCidrRoutesOverlap()
Whether this subnetwork can conflict with static routes. 
 | 
String | 
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format. 
 | 
String | 
getDescription()
An optional description of this resource. 
 | 
Boolean | 
getEnableFlowLogs()
Whether to enable flow logging for this subnetwork. 
 | 
Boolean | 
getEnablePrivateV6Access()
Deprecated in favor of enable in PrivateIpv6GoogleAccess. 
 | 
String | 
getExternalIpv6Prefix()
[Output Only] The range of external IPv6 addresses that are owned by this subnetwork. 
 | 
String | 
getFingerprint()
Fingerprint of this resource. 
 | 
Float | 
getFlowSampling()
Can only be specified if VPC flow logging for this subnetwork is enabled. 
 | 
String | 
getGatewayAddress()
[Output Only] The gateway address for default routes to reach destination addresses outside
 this subnetwork. 
 | 
BigInteger | 
getId()
[Output Only] The unique identifier for the resource. 
 | 
String | 
getIpCidrRange()
The range of internal addresses that are owned by this subnetwork. 
 | 
String | 
getIpv6AccessType()
The access type of IPv6 address this subnet holds. 
 | 
String | 
getIpv6CidrRange()
[Output Only] The range of internal IPv6 addresses that are owned by this subnetwork. 
 | 
String | 
getKind()
[Output Only] Type of the resource. 
 | 
SubnetworkLogConfig | 
getLogConfig()
This field denotes the VPC flow logging options for this subnetwork. 
 | 
String | 
getMetadata()
Can only be specified if VPC flow logging for this subnetwork is enabled. 
 | 
String | 
getName()
The name of the resource, provided by the client when initially creating the resource. 
 | 
String | 
getNetwork()
The URL of the network to which this subnetwork belongs, provided by the client when initially
 creating the subnetwork. 
 | 
Boolean | 
getPrivateIpGoogleAccess()
Whether the VMs in this subnet can access Google services without assigned external IP
 addresses. 
 | 
String | 
getPrivateIpv6GoogleAccess()
The private IPv6 google access type for the VMs in this subnet. 
 | 
List<String> | 
getPrivateIpv6GoogleAccessServiceAccounts()
Deprecated in favor of enable PrivateIpv6GoogleAccess on instance directly. 
 | 
String | 
getPurpose()
The purpose of the resource. 
 | 
String | 
getRegion()
URL of the region where the Subnetwork resides. 
 | 
String | 
getRole()
The role of subnetwork. 
 | 
List<SubnetworkSecondaryRange> | 
getSecondaryIpRanges()
An array of configurations for secondary IP ranges for VM instances contained in this
 subnetwork. 
 | 
String | 
getSelfLink()
[Output Only] Server-defined URL for the resource. 
 | 
String | 
getSelfLinkWithId()
[Output Only] Server-defined URL for this resource with the resource id. 
 | 
String | 
getStackType()
The stack type for this subnet to identify whether the IPv6 feature is enabled or not. 
 | 
String | 
getState()
[Output Only] The state of the subnetwork, which can be one of READY or DRAINING. 
 | 
Subnetwork | 
set(String fieldName,
   Object value)  | 
Subnetwork | 
setAggregationInterval(String aggregationInterval)
Can only be specified if VPC flow logging for this subnetwork is enabled. 
 | 
Subnetwork | 
setAllowSubnetCidrRoutesOverlap(Boolean allowSubnetCidrRoutesOverlap)
Whether this subnetwork can conflict with static routes. 
 | 
Subnetwork | 
setCreationTimestamp(String creationTimestamp)
[Output Only] Creation timestamp in RFC3339 text format. 
 | 
Subnetwork | 
setDescription(String description)
An optional description of this resource. 
 | 
Subnetwork | 
setEnableFlowLogs(Boolean enableFlowLogs)
Whether to enable flow logging for this subnetwork. 
 | 
Subnetwork | 
setEnablePrivateV6Access(Boolean enablePrivateV6Access)
Deprecated in favor of enable in PrivateIpv6GoogleAccess. 
 | 
Subnetwork | 
setExternalIpv6Prefix(String externalIpv6Prefix)
[Output Only] The range of external IPv6 addresses that are owned by this subnetwork. 
 | 
Subnetwork | 
setFingerprint(String fingerprint)
Fingerprint of this resource. 
 | 
Subnetwork | 
setFlowSampling(Float flowSampling)
Can only be specified if VPC flow logging for this subnetwork is enabled. 
 | 
Subnetwork | 
setGatewayAddress(String gatewayAddress)
[Output Only] The gateway address for default routes to reach destination addresses outside
 this subnetwork. 
 | 
Subnetwork | 
setId(BigInteger id)
[Output Only] The unique identifier for the resource. 
 | 
Subnetwork | 
setIpCidrRange(String ipCidrRange)
The range of internal addresses that are owned by this subnetwork. 
 | 
Subnetwork | 
setIpv6AccessType(String ipv6AccessType)
The access type of IPv6 address this subnet holds. 
 | 
Subnetwork | 
setIpv6CidrRange(String ipv6CidrRange)
[Output Only] The range of internal IPv6 addresses that are owned by this subnetwork. 
 | 
Subnetwork | 
setKind(String kind)
[Output Only] Type of the resource. 
 | 
Subnetwork | 
setLogConfig(SubnetworkLogConfig logConfig)
This field denotes the VPC flow logging options for this subnetwork. 
 | 
Subnetwork | 
setMetadata(String metadata)
Can only be specified if VPC flow logging for this subnetwork is enabled. 
 | 
Subnetwork | 
setName(String name)
The name of the resource, provided by the client when initially creating the resource. 
 | 
Subnetwork | 
setNetwork(String network)
The URL of the network to which this subnetwork belongs, provided by the client when initially
 creating the subnetwork. 
 | 
Subnetwork | 
setPrivateIpGoogleAccess(Boolean privateIpGoogleAccess)
Whether the VMs in this subnet can access Google services without assigned external IP
 addresses. 
 | 
Subnetwork | 
setPrivateIpv6GoogleAccess(String privateIpv6GoogleAccess)
The private IPv6 google access type for the VMs in this subnet. 
 | 
Subnetwork | 
setPrivateIpv6GoogleAccessServiceAccounts(List<String> privateIpv6GoogleAccessServiceAccounts)
Deprecated in favor of enable PrivateIpv6GoogleAccess on instance directly. 
 | 
Subnetwork | 
setPurpose(String purpose)
The purpose of the resource. 
 | 
Subnetwork | 
setRegion(String region)
URL of the region where the Subnetwork resides. 
 | 
Subnetwork | 
setRole(String role)
The role of subnetwork. 
 | 
Subnetwork | 
setSecondaryIpRanges(List<SubnetworkSecondaryRange> secondaryIpRanges)
An array of configurations for secondary IP ranges for VM instances contained in this
 subnetwork. 
 | 
Subnetwork | 
setSelfLink(String selfLink)
[Output Only] Server-defined URL for the resource. 
 | 
Subnetwork | 
setSelfLinkWithId(String selfLinkWithId)
[Output Only] Server-defined URL for this resource with the resource id. 
 | 
Subnetwork | 
setStackType(String stackType)
The stack type for this subnet to identify whether the IPv6 feature is enabled or not. 
 | 
Subnetwork | 
setState(String state)
[Output Only] The state of the subnetwork, which can be one of READY or DRAINING. 
 | 
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 String getAggregationInterval()
null for nonepublic Subnetwork setAggregationInterval(String aggregationInterval)
aggregationInterval - aggregationInterval or null for nonepublic Boolean getAllowSubnetCidrRoutesOverlap()
null for nonepublic Subnetwork setAllowSubnetCidrRoutesOverlap(Boolean allowSubnetCidrRoutesOverlap)
allowSubnetCidrRoutesOverlap - allowSubnetCidrRoutesOverlap or null for nonepublic String getCreationTimestamp()
null for nonepublic Subnetwork setCreationTimestamp(String creationTimestamp)
creationTimestamp - creationTimestamp or null for nonepublic String getDescription()
null for nonepublic Subnetwork setDescription(String description)
description - description or null for nonepublic Boolean getEnableFlowLogs()
null for nonepublic Subnetwork setEnableFlowLogs(Boolean enableFlowLogs)
enableFlowLogs - enableFlowLogs or null for nonepublic Boolean getEnablePrivateV6Access()
null for nonepublic Subnetwork setEnablePrivateV6Access(Boolean enablePrivateV6Access)
enablePrivateV6Access - enablePrivateV6Access or null for nonepublic String getExternalIpv6Prefix()
null for nonepublic Subnetwork setExternalIpv6Prefix(String externalIpv6Prefix)
externalIpv6Prefix - externalIpv6Prefix or null for nonepublic String getFingerprint()
null for nonedecodeFingerprint()public byte[] decodeFingerprint()
null for nonegetFingerprint()public Subnetwork setFingerprint(String fingerprint)
fingerprint - fingerprint or null for none#encodeFingerprint()public Subnetwork encodeFingerprint(byte[] fingerprint)
 The value is encoded Base64 or {@code null} for none.
 
public Float getFlowSampling()
null for nonepublic Subnetwork setFlowSampling(Float flowSampling)
flowSampling - flowSampling or null for nonepublic String getGatewayAddress()
null for nonepublic Subnetwork setGatewayAddress(String gatewayAddress)
gatewayAddress - gatewayAddress or null for nonepublic BigInteger getId()
null for nonepublic Subnetwork setId(BigInteger id)
id - id or null for nonepublic String getIpCidrRange()
null for nonepublic Subnetwork setIpCidrRange(String ipCidrRange)
ipCidrRange - ipCidrRange or null for nonepublic String getIpv6AccessType()
null for nonepublic Subnetwork setIpv6AccessType(String ipv6AccessType)
ipv6AccessType - ipv6AccessType or null for nonepublic String getIpv6CidrRange()
null for nonepublic Subnetwork setIpv6CidrRange(String ipv6CidrRange)
ipv6CidrRange - ipv6CidrRange or null for nonepublic String getKind()
null for nonepublic Subnetwork setKind(String kind)
kind - kind or null for nonepublic SubnetworkLogConfig getLogConfig()
null for nonepublic Subnetwork setLogConfig(SubnetworkLogConfig logConfig)
logConfig - logConfig or null for nonepublic String getMetadata()
null for nonepublic Subnetwork setMetadata(String metadata)
metadata - metadata or null for nonepublic String getName()
null for nonepublic Subnetwork setName(String name)
name - name or null for nonepublic String getNetwork()
null for nonepublic Subnetwork setNetwork(String network)
network - network or null for nonepublic Boolean getPrivateIpGoogleAccess()
null for nonepublic Subnetwork setPrivateIpGoogleAccess(Boolean privateIpGoogleAccess)
privateIpGoogleAccess - privateIpGoogleAccess or null for nonepublic String getPrivateIpv6GoogleAccess()
null for nonepublic Subnetwork setPrivateIpv6GoogleAccess(String privateIpv6GoogleAccess)
privateIpv6GoogleAccess - privateIpv6GoogleAccess or null for nonepublic List<String> getPrivateIpv6GoogleAccessServiceAccounts()
null for nonepublic Subnetwork setPrivateIpv6GoogleAccessServiceAccounts(List<String> privateIpv6GoogleAccessServiceAccounts)
privateIpv6GoogleAccessServiceAccounts - privateIpv6GoogleAccessServiceAccounts or null for nonepublic String getPurpose()
null for nonepublic Subnetwork setPurpose(String purpose)
purpose - purpose or null for nonepublic String getRegion()
null for nonepublic Subnetwork setRegion(String region)
region - region or null for nonepublic String getRole()
null for nonepublic Subnetwork setRole(String role)
role - role or null for nonepublic List<SubnetworkSecondaryRange> getSecondaryIpRanges()
null for nonepublic Subnetwork setSecondaryIpRanges(List<SubnetworkSecondaryRange> secondaryIpRanges)
secondaryIpRanges - secondaryIpRanges or null for nonepublic String getSelfLink()
null for nonepublic Subnetwork setSelfLink(String selfLink)
selfLink - selfLink or null for nonepublic String getSelfLinkWithId()
null for nonepublic Subnetwork setSelfLinkWithId(String selfLinkWithId)
selfLinkWithId - selfLinkWithId or null for nonepublic String getStackType()
null for nonepublic Subnetwork setStackType(String stackType)
stackType - stackType or null for nonepublic String getState()
null for nonepublic Subnetwork setState(String state)
state - state or null for nonepublic Subnetwork set(String fieldName, Object value)
set in class GenericJsonpublic Subnetwork clone()
clone in class GenericJsonCopyright © 2011–2020 Google. All rights reserved.