public final class Subnetwork
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 |
---|
Subnetwork() |
Modifier and Type | Method and Description |
---|---|
Subnetwork |
clone() |
byte[] |
decodeFingerprint()
Fingerprint of this resource.
|
Subnetwork |
encodeFingerprint(byte[] fingerprint)
Fingerprint of this resource.
|
java.lang.String |
getAggregationInterval()
Can only be specified if VPC flow logging for this subnetwork is enabled.
|
java.lang.Boolean |
getAllowSubnetCidrRoutesOverlap()
Whether this subnetwork can conflict with static routes.
|
java.lang.String |
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
java.lang.String |
getDescription()
An optional description of this resource.
|
java.lang.Boolean |
getEnableFlowLogs()
Whether to enable flow logging for this subnetwork.
|
java.lang.Boolean |
getEnablePrivateV6Access()
Deprecated in favor of enable in PrivateIpv6GoogleAccess.
|
java.lang.String |
getFingerprint()
Fingerprint of this resource.
|
java.lang.Float |
getFlowSampling()
Can only be specified if VPC flow logging for this subnetwork is enabled.
|
java.lang.String |
getGatewayAddress()
[Output Only] The gateway address for default routes to reach destination addresses outside
this subnetwork.
|
java.math.BigInteger |
getId()
[Output Only] The unique identifier for the resource.
|
java.lang.String |
getIpCidrRange()
The range of internal addresses that are owned by this subnetwork.
|
java.lang.String |
getIpv6CidrRange()
[Output Only] The range of internal IPv6 addresses that are owned by this subnetwork.
|
java.lang.String |
getKind()
[Output Only] Type of the resource.
|
SubnetworkLogConfig |
getLogConfig()
This field denotes the logging options for the load balancer traffic served by this backend
service.
|
java.lang.String |
getMetadata()
Can only be specified if VPC flow logging for this subnetwork is enabled.
|
java.lang.String |
getName()
The name of the resource, provided by the client when initially creating the resource.
|
java.lang.String |
getNetwork()
The URL of the network to which this subnetwork belongs, provided by the client when initially
creating the subnetwork.
|
java.lang.Boolean |
getPrivateIpGoogleAccess()
Whether the VMs in this subnet can access Google services without assigned external IP
addresses.
|
java.lang.String |
getPrivateIpv6GoogleAccess()
The private IPv6 google access type for the VMs in this subnet.
|
java.lang.String |
getPurpose()
The purpose of the resource.
|
java.lang.String |
getRangeType()
The type of IP CIDR range to associate with this subnetwork.
|
java.lang.String |
getRegion()
URL of the region where the Subnetwork resides.
|
java.lang.String |
getRole()
The role of subnetwork.
|
java.util.List<SubnetworkSecondaryRange> |
getSecondaryIpRanges()
An array of configurations for secondary IP ranges for VM instances contained in this
subnetwork.
|
java.lang.String |
getSelfLink()
[Output Only] Server-defined URL for the resource.
|
java.lang.String |
getSelfLinkWithId()
[Output Only] Server-defined URL for this resource with the resource id.
|
java.lang.String |
getState()
[Output Only] The state of the subnetwork, which can be one of READY or DRAINING.
|
Subnetwork |
set(java.lang.String fieldName,
java.lang.Object value) |
Subnetwork |
setAggregationInterval(java.lang.String aggregationInterval)
Can only be specified if VPC flow logging for this subnetwork is enabled.
|
Subnetwork |
setAllowSubnetCidrRoutesOverlap(java.lang.Boolean allowSubnetCidrRoutesOverlap)
Whether this subnetwork can conflict with static routes.
|
Subnetwork |
setCreationTimestamp(java.lang.String creationTimestamp)
[Output Only] Creation timestamp in RFC3339 text format.
|
Subnetwork |
setDescription(java.lang.String description)
An optional description of this resource.
|
Subnetwork |
setEnableFlowLogs(java.lang.Boolean enableFlowLogs)
Whether to enable flow logging for this subnetwork.
|
Subnetwork |
setEnablePrivateV6Access(java.lang.Boolean enablePrivateV6Access)
Deprecated in favor of enable in PrivateIpv6GoogleAccess.
|
Subnetwork |
setFingerprint(java.lang.String fingerprint)
Fingerprint of this resource.
|
Subnetwork |
setFlowSampling(java.lang.Float flowSampling)
Can only be specified if VPC flow logging for this subnetwork is enabled.
|
Subnetwork |
setGatewayAddress(java.lang.String gatewayAddress)
[Output Only] The gateway address for default routes to reach destination addresses outside
this subnetwork.
|
Subnetwork |
setId(java.math.BigInteger id)
[Output Only] The unique identifier for the resource.
|
Subnetwork |
setIpCidrRange(java.lang.String ipCidrRange)
The range of internal addresses that are owned by this subnetwork.
|
Subnetwork |
setIpv6CidrRange(java.lang.String ipv6CidrRange)
[Output Only] The range of internal IPv6 addresses that are owned by this subnetwork.
|
Subnetwork |
setKind(java.lang.String kind)
[Output Only] Type of the resource.
|
Subnetwork |
setLogConfig(SubnetworkLogConfig logConfig)
This field denotes the logging options for the load balancer traffic served by this backend
service.
|
Subnetwork |
setMetadata(java.lang.String metadata)
Can only be specified if VPC flow logging for this subnetwork is enabled.
|
Subnetwork |
setName(java.lang.String name)
The name of the resource, provided by the client when initially creating the resource.
|
Subnetwork |
setNetwork(java.lang.String network)
The URL of the network to which this subnetwork belongs, provided by the client when initially
creating the subnetwork.
|
Subnetwork |
setPrivateIpGoogleAccess(java.lang.Boolean privateIpGoogleAccess)
Whether the VMs in this subnet can access Google services without assigned external IP
addresses.
|
Subnetwork |
setPrivateIpv6GoogleAccess(java.lang.String privateIpv6GoogleAccess)
The private IPv6 google access type for the VMs in this subnet.
|
Subnetwork |
setPurpose(java.lang.String purpose)
The purpose of the resource.
|
Subnetwork |
setRangeType(java.lang.String rangeType)
The type of IP CIDR range to associate with this subnetwork.
|
Subnetwork |
setRegion(java.lang.String region)
URL of the region where the Subnetwork resides.
|
Subnetwork |
setRole(java.lang.String role)
The role of subnetwork.
|
Subnetwork |
setSecondaryIpRanges(java.util.List<SubnetworkSecondaryRange> secondaryIpRanges)
An array of configurations for secondary IP ranges for VM instances contained in this
subnetwork.
|
Subnetwork |
setSelfLink(java.lang.String selfLink)
[Output Only] Server-defined URL for the resource.
|
Subnetwork |
setSelfLinkWithId(java.lang.String selfLinkWithId)
[Output Only] Server-defined URL for this resource with the resource id.
|
Subnetwork |
setState(java.lang.String state)
[Output Only] The state of the subnetwork, which can be one of READY or DRAINING.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.String getAggregationInterval()
null
for nonepublic Subnetwork setAggregationInterval(java.lang.String aggregationInterval)
aggregationInterval
- aggregationInterval or null
for nonepublic java.lang.Boolean getAllowSubnetCidrRoutesOverlap()
null
for nonepublic Subnetwork setAllowSubnetCidrRoutesOverlap(java.lang.Boolean allowSubnetCidrRoutesOverlap)
allowSubnetCidrRoutesOverlap
- allowSubnetCidrRoutesOverlap or null
for nonepublic java.lang.String getCreationTimestamp()
null
for nonepublic Subnetwork setCreationTimestamp(java.lang.String creationTimestamp)
creationTimestamp
- creationTimestamp or null
for nonepublic java.lang.String getDescription()
null
for nonepublic Subnetwork setDescription(java.lang.String description)
description
- description or null
for nonepublic java.lang.Boolean getEnableFlowLogs()
null
for nonepublic Subnetwork setEnableFlowLogs(java.lang.Boolean enableFlowLogs)
enableFlowLogs
- enableFlowLogs or null
for nonepublic java.lang.Boolean getEnablePrivateV6Access()
null
for nonepublic Subnetwork setEnablePrivateV6Access(java.lang.Boolean enablePrivateV6Access)
enablePrivateV6Access
- enablePrivateV6Access or null
for nonepublic java.lang.String getFingerprint()
null
for nonedecodeFingerprint()
public byte[] decodeFingerprint()
null
for nonegetFingerprint()
public Subnetwork setFingerprint(java.lang.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 java.lang.Float getFlowSampling()
null
for nonepublic Subnetwork setFlowSampling(java.lang.Float flowSampling)
flowSampling
- flowSampling or null
for nonepublic java.lang.String getGatewayAddress()
null
for nonepublic Subnetwork setGatewayAddress(java.lang.String gatewayAddress)
gatewayAddress
- gatewayAddress or null
for nonepublic java.math.BigInteger getId()
null
for nonepublic Subnetwork setId(java.math.BigInteger id)
id
- id or null
for nonepublic java.lang.String getIpCidrRange()
null
for nonepublic Subnetwork setIpCidrRange(java.lang.String ipCidrRange)
ipCidrRange
- ipCidrRange or null
for nonepublic java.lang.String getIpv6CidrRange()
null
for nonepublic Subnetwork setIpv6CidrRange(java.lang.String ipv6CidrRange)
ipv6CidrRange
- ipv6CidrRange or null
for nonepublic java.lang.String getKind()
null
for nonepublic Subnetwork setKind(java.lang.String kind)
kind
- kind or null
for nonepublic SubnetworkLogConfig getLogConfig()
null
for nonepublic Subnetwork setLogConfig(SubnetworkLogConfig logConfig)
logConfig
- logConfig or null
for nonepublic java.lang.String getMetadata()
null
for nonepublic Subnetwork setMetadata(java.lang.String metadata)
metadata
- metadata or null
for nonepublic java.lang.String getName()
null
for nonepublic Subnetwork setName(java.lang.String name)
name
- name or null
for nonepublic java.lang.String getNetwork()
null
for nonepublic Subnetwork setNetwork(java.lang.String network)
network
- network or null
for nonepublic java.lang.Boolean getPrivateIpGoogleAccess()
null
for nonepublic Subnetwork setPrivateIpGoogleAccess(java.lang.Boolean privateIpGoogleAccess)
privateIpGoogleAccess
- privateIpGoogleAccess or null
for nonepublic java.lang.String getPrivateIpv6GoogleAccess()
null
for nonepublic Subnetwork setPrivateIpv6GoogleAccess(java.lang.String privateIpv6GoogleAccess)
privateIpv6GoogleAccess
- privateIpv6GoogleAccess or null
for nonepublic java.lang.String getPurpose()
null
for nonepublic Subnetwork setPurpose(java.lang.String purpose)
purpose
- purpose or null
for nonepublic java.lang.String getRangeType()
null
for nonepublic Subnetwork setRangeType(java.lang.String rangeType)
rangeType
- rangeType or null
for nonepublic java.lang.String getRegion()
null
for nonepublic Subnetwork setRegion(java.lang.String region)
region
- region or null
for nonepublic java.lang.String getRole()
null
for nonepublic Subnetwork setRole(java.lang.String role)
role
- role or null
for nonepublic java.util.List<SubnetworkSecondaryRange> getSecondaryIpRanges()
null
for nonepublic Subnetwork setSecondaryIpRanges(java.util.List<SubnetworkSecondaryRange> secondaryIpRanges)
secondaryIpRanges
- secondaryIpRanges or null
for nonepublic java.lang.String getSelfLink()
null
for nonepublic Subnetwork setSelfLink(java.lang.String selfLink)
selfLink
- selfLink or null
for nonepublic java.lang.String getSelfLinkWithId()
null
for nonepublic Subnetwork setSelfLinkWithId(java.lang.String selfLinkWithId)
selfLinkWithId
- selfLinkWithId or null
for nonepublic java.lang.String getState()
null
for nonepublic Subnetwork setState(java.lang.String state)
state
- state or null
for nonepublic Subnetwork set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Subnetwork clone()
clone
in class com.google.api.client.json.GenericJson