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
AbstractMap.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 |
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.
|
String |
getExternalIpv6Prefix()
The external IPv6 address range that is owned by this subnetwork.
|
String |
getFingerprint()
Fingerprint of this resource.
|
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 |
getInternalIpv6Prefix()
The internal IPv6 address range that is owned by this subnetwork.
|
String |
getIpCidrRange()
The range of internal addresses that are owned by this subnetwork.
|
String |
getIpCollection()
Reference to the source of IP, like a PublicDelegatedPrefix (PDP) for BYOIP.
|
String |
getIpv6AccessType()
The access type of IPv6 address this subnet holds.
|
String |
getIpv6CidrRange()
[Output Only] This field is for internal use.
|
String |
getIpv6GceEndpoint()
[Output Only] Possible endpoints of this subnetwork.
|
String |
getKind()
[Output Only] Type of the resource.
|
SubnetworkLogConfig |
getLogConfig()
This field denotes the VPC flow logging options for this subnetwork.
|
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.
|
SubnetworkParams |
getParams()
Input only.
|
Boolean |
getPrivateIpGoogleAccess()
Whether the VMs in this subnet can access Google services without assigned external IP
addresses.
|
String |
getPrivateIpv6GoogleAccess()
This field is for internal use.
|
String |
getPurpose() |
String |
getRegion()
URL of the region where the Subnetwork resides.
|
String |
getReservedInternalRange()
The URL of the reserved internal range.
|
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 |
getStackType()
The stack type for the subnet.
|
String |
getState()
[Output Only] The state of the subnetwork, which can be one of the following values: READY:
Subnetwork is created and ready to use DRAINING: only applicable to subnetworks that have the
purpose set to INTERNAL_HTTPS_LOAD_BALANCER and indicates that connections to the load balancer
are being drained.
|
List<String> |
getSystemReservedExternalIpv6Ranges()
Output only.
|
List<String> |
getSystemReservedInternalIpv6Ranges()
Output only.
|
Subnetwork |
set(String fieldName,
Object value) |
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 |
setExternalIpv6Prefix(String externalIpv6Prefix)
The external IPv6 address range that is owned by this subnetwork.
|
Subnetwork |
setFingerprint(String fingerprint)
Fingerprint of this resource.
|
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 |
setInternalIpv6Prefix(String internalIpv6Prefix)
The internal IPv6 address range that is owned by this subnetwork.
|
Subnetwork |
setIpCidrRange(String ipCidrRange)
The range of internal addresses that are owned by this subnetwork.
|
Subnetwork |
setIpCollection(String ipCollection)
Reference to the source of IP, like a PublicDelegatedPrefix (PDP) for BYOIP.
|
Subnetwork |
setIpv6AccessType(String ipv6AccessType)
The access type of IPv6 address this subnet holds.
|
Subnetwork |
setIpv6CidrRange(String ipv6CidrRange)
[Output Only] This field is for internal use.
|
Subnetwork |
setIpv6GceEndpoint(String ipv6GceEndpoint)
[Output Only] Possible endpoints of 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 |
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 |
setParams(SubnetworkParams params)
Input only.
|
Subnetwork |
setPrivateIpGoogleAccess(Boolean privateIpGoogleAccess)
Whether the VMs in this subnet can access Google services without assigned external IP
addresses.
|
Subnetwork |
setPrivateIpv6GoogleAccess(String privateIpv6GoogleAccess)
This field is for internal use.
|
Subnetwork |
setPurpose(String purpose) |
Subnetwork |
setRegion(String region)
URL of the region where the Subnetwork resides.
|
Subnetwork |
setReservedInternalRange(String reservedInternalRange)
The URL of the reserved internal range.
|
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 |
setStackType(String stackType)
The stack type for the subnet.
|
Subnetwork |
setState(String state)
[Output Only] The state of the subnetwork, which can be one of the following values: READY:
Subnetwork is created and ready to use DRAINING: only applicable to subnetworks that have the
purpose set to INTERNAL_HTTPS_LOAD_BALANCER and indicates that connections to the load balancer
are being drained.
|
Subnetwork |
setSystemReservedExternalIpv6Ranges(List<String> systemReservedExternalIpv6Ranges)
Output only.
|
Subnetwork |
setSystemReservedInternalIpv6Ranges(List<String> systemReservedInternalIpv6Ranges)
Output only.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public 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 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 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 getInternalIpv6Prefix()
null
for nonepublic Subnetwork setInternalIpv6Prefix(String internalIpv6Prefix)
internalIpv6Prefix
- internalIpv6Prefix or null
for nonepublic String getIpCidrRange()
null
for nonepublic Subnetwork setIpCidrRange(String ipCidrRange)
ipCidrRange
- ipCidrRange or null
for nonepublic String getIpCollection()
null
for nonepublic Subnetwork setIpCollection(String ipCollection)
ipCollection
- ipCollection 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 getIpv6GceEndpoint()
null
for nonepublic Subnetwork setIpv6GceEndpoint(String ipv6GceEndpoint)
ipv6GceEndpoint
- ipv6GceEndpoint 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 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 SubnetworkParams getParams()
null
for nonepublic Subnetwork setParams(SubnetworkParams params)
params
- params 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 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 getReservedInternalRange()
null
for nonepublic Subnetwork setReservedInternalRange(String reservedInternalRange)
reservedInternalRange
- reservedInternalRange 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 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 List<String> getSystemReservedExternalIpv6Ranges()
null
for nonepublic Subnetwork setSystemReservedExternalIpv6Ranges(List<String> systemReservedExternalIpv6Ranges)
systemReservedExternalIpv6Ranges
- systemReservedExternalIpv6Ranges or null
for nonepublic List<String> getSystemReservedInternalIpv6Ranges()
null
for nonepublic Subnetwork setSystemReservedInternalIpv6Ranges(List<String> systemReservedInternalIpv6Ranges)
systemReservedInternalIpv6Ranges
- systemReservedInternalIpv6Ranges or null
for nonepublic Subnetwork set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public Subnetwork clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2025 Google. All rights reserved.