public final class Route
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
Modifier and Type | Class and Description |
---|---|
static class |
Route.Warnings
Model definition for RouteWarnings.
|
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Route() |
Modifier and Type | Method and Description |
---|---|
Route |
clone() |
List<RouteAsPath> |
getAsPaths()
[Output Only] AS path.
|
String |
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
String |
getDescription()
An optional description of this resource.
|
String |
getDestRange()
The destination range of outgoing packets that this route applies to.
|
BigInteger |
getId()
[Output Only] The unique identifier for the resource.
|
String |
getKind()
[Output Only] Type of this resource.
|
String |
getName()
Name of the resource.
|
String |
getNetwork()
Fully-qualified URL of the network that this route applies to.
|
String |
getNextHopGateway()
The URL to a gateway that should handle matching packets.
|
String |
getNextHopHub()
[Output Only] The full resource name of the Network Connectivity Center hub that will handle
matching packets.
|
String |
getNextHopIlb()
The URL to a forwarding rule of type loadBalancingScheme=INTERNAL that should handle matching
packets or the IP address of the forwarding Rule.
|
String |
getNextHopInstance()
The URL to an instance that should handle matching packets.
|
Long |
getNextHopInterRegionCost()
[Output only] Internal fixed region-to-region cost that Google Cloud calculates based on
factors such as network performance, distance, and available bandwidth between regions.
|
String |
getNextHopIp()
The network IP address of an instance that should handle matching packets.
|
Long |
getNextHopMed()
[Output Only] Multi-Exit Discriminator, a BGP route metric that indicates the desirability of a
particular route in a network.
|
String |
getNextHopNetwork()
The URL of the local network if it should handle matching packets.
|
String |
getNextHopOrigin()
[Output Only] Indicates the origin of the route.
|
String |
getNextHopPeering()
[Output Only] The network peering name that should handle matching packets, which should
conform to RFC1035.
|
String |
getNextHopVpnTunnel()
The URL to a VpnTunnel that should handle matching packets.
|
RouteParams |
getParams()
Input only.
|
Long |
getPriority()
The priority of this route.
|
String |
getRouteStatus()
[Output only] The status of the route.
|
String |
getRouteType()
[Output Only] The type of this route, which can be one of the following values: - 'TRANSIT' for
a transit route that this router learned from another Cloud Router and will readvertise to one
of its BGP peers - 'SUBNET' for a route from a subnet of the VPC - 'BGP' for a route learned
from a BGP peer of this router - 'STATIC' for a static route
|
String |
getSelfLink()
[Output Only] Server-defined fully-qualified URL for this resource.
|
List<String> |
getTags()
A list of instance tags to which this route applies.
|
List<Route.Warnings> |
getWarnings()
[Output Only] If potential misconfigurations are detected for this route, this field will be
populated with warning messages.
|
Route |
set(String fieldName,
Object value) |
Route |
setAsPaths(List<RouteAsPath> asPaths)
[Output Only] AS path.
|
Route |
setCreationTimestamp(String creationTimestamp)
[Output Only] Creation timestamp in RFC3339 text format.
|
Route |
setDescription(String description)
An optional description of this resource.
|
Route |
setDestRange(String destRange)
The destination range of outgoing packets that this route applies to.
|
Route |
setId(BigInteger id)
[Output Only] The unique identifier for the resource.
|
Route |
setKind(String kind)
[Output Only] Type of this resource.
|
Route |
setName(String name)
Name of the resource.
|
Route |
setNetwork(String network)
Fully-qualified URL of the network that this route applies to.
|
Route |
setNextHopGateway(String nextHopGateway)
The URL to a gateway that should handle matching packets.
|
Route |
setNextHopHub(String nextHopHub)
[Output Only] The full resource name of the Network Connectivity Center hub that will handle
matching packets.
|
Route |
setNextHopIlb(String nextHopIlb)
The URL to a forwarding rule of type loadBalancingScheme=INTERNAL that should handle matching
packets or the IP address of the forwarding Rule.
|
Route |
setNextHopInstance(String nextHopInstance)
The URL to an instance that should handle matching packets.
|
Route |
setNextHopInterRegionCost(Long nextHopInterRegionCost)
[Output only] Internal fixed region-to-region cost that Google Cloud calculates based on
factors such as network performance, distance, and available bandwidth between regions.
|
Route |
setNextHopIp(String nextHopIp)
The network IP address of an instance that should handle matching packets.
|
Route |
setNextHopMed(Long nextHopMed)
[Output Only] Multi-Exit Discriminator, a BGP route metric that indicates the desirability of a
particular route in a network.
|
Route |
setNextHopNetwork(String nextHopNetwork)
The URL of the local network if it should handle matching packets.
|
Route |
setNextHopOrigin(String nextHopOrigin)
[Output Only] Indicates the origin of the route.
|
Route |
setNextHopPeering(String nextHopPeering)
[Output Only] The network peering name that should handle matching packets, which should
conform to RFC1035.
|
Route |
setNextHopVpnTunnel(String nextHopVpnTunnel)
The URL to a VpnTunnel that should handle matching packets.
|
Route |
setParams(RouteParams params)
Input only.
|
Route |
setPriority(Long priority)
The priority of this route.
|
Route |
setRouteStatus(String routeStatus)
[Output only] The status of the route.
|
Route |
setRouteType(String routeType)
[Output Only] The type of this route, which can be one of the following values: - 'TRANSIT' for
a transit route that this router learned from another Cloud Router and will readvertise to one
of its BGP peers - 'SUBNET' for a route from a subnet of the VPC - 'BGP' for a route learned
from a BGP peer of this router - 'STATIC' for a static route
|
Route |
setSelfLink(String selfLink)
[Output Only] Server-defined fully-qualified URL for this resource.
|
Route |
setTags(List<String> tags)
A list of instance tags to which this route applies.
|
Route |
setWarnings(List<Route.Warnings> warnings)
[Output Only] If potential misconfigurations are detected for this route, this field will be
populated with warning messages.
|
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 List<RouteAsPath> getAsPaths()
null
for nonepublic Route setAsPaths(List<RouteAsPath> asPaths)
asPaths
- asPaths or null
for nonepublic String getCreationTimestamp()
null
for nonepublic Route setCreationTimestamp(String creationTimestamp)
creationTimestamp
- creationTimestamp or null
for nonepublic String getDescription()
null
for nonepublic Route setDescription(String description)
description
- description or null
for nonepublic String getDestRange()
null
for nonepublic Route setDestRange(String destRange)
destRange
- destRange or null
for nonepublic BigInteger getId()
null
for nonepublic Route setId(BigInteger id)
id
- id or null
for nonepublic String getKind()
null
for nonepublic Route setKind(String kind)
kind
- kind or null
for nonepublic String getName()
null
for nonepublic Route setName(String name)
name
- name or null
for nonepublic String getNetwork()
null
for nonepublic Route setNetwork(String network)
network
- network or null
for nonepublic String getNextHopGateway()
null
for nonepublic Route setNextHopGateway(String nextHopGateway)
nextHopGateway
- nextHopGateway or null
for nonepublic String getNextHopHub()
null
for nonepublic Route setNextHopHub(String nextHopHub)
nextHopHub
- nextHopHub or null
for nonepublic String getNextHopIlb()
null
for nonepublic Route setNextHopIlb(String nextHopIlb)
nextHopIlb
- nextHopIlb or null
for nonepublic String getNextHopInstance()
null
for nonepublic Route setNextHopInstance(String nextHopInstance)
nextHopInstance
- nextHopInstance or null
for nonepublic Long getNextHopInterRegionCost()
null
for nonepublic Route setNextHopInterRegionCost(Long nextHopInterRegionCost)
nextHopInterRegionCost
- nextHopInterRegionCost or null
for nonepublic String getNextHopIp()
null
for nonepublic Route setNextHopIp(String nextHopIp)
nextHopIp
- nextHopIp or null
for nonepublic Long getNextHopMed()
null
for nonepublic Route setNextHopMed(Long nextHopMed)
nextHopMed
- nextHopMed or null
for nonepublic String getNextHopNetwork()
null
for nonepublic Route setNextHopNetwork(String nextHopNetwork)
nextHopNetwork
- nextHopNetwork or null
for nonepublic String getNextHopOrigin()
null
for nonepublic Route setNextHopOrigin(String nextHopOrigin)
nextHopOrigin
- nextHopOrigin or null
for nonepublic String getNextHopPeering()
null
for nonepublic Route setNextHopPeering(String nextHopPeering)
nextHopPeering
- nextHopPeering or null
for nonepublic String getNextHopVpnTunnel()
null
for nonepublic Route setNextHopVpnTunnel(String nextHopVpnTunnel)
nextHopVpnTunnel
- nextHopVpnTunnel or null
for nonepublic RouteParams getParams()
null
for nonepublic Route setParams(RouteParams params)
params
- params or null
for nonepublic Long getPriority()
null
for nonepublic Route setPriority(Long priority)
priority
- priority or null
for nonepublic String getRouteStatus()
null
for nonepublic Route setRouteStatus(String routeStatus)
routeStatus
- routeStatus or null
for nonepublic String getRouteType()
null
for nonepublic Route setRouteType(String routeType)
routeType
- routeType or null
for nonepublic String getSelfLink()
null
for nonepublic Route setSelfLink(String selfLink)
selfLink
- selfLink or null
for nonepublic List<String> getTags()
null
for nonepublic Route setTags(List<String> tags)
tags
- tags or null
for nonepublic List<Route.Warnings> getWarnings()
null
for nonepublic Route setWarnings(List<Route.Warnings> warnings)
warnings
- warnings or null
for nonepublic Route set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public Route clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2025 Google. All rights reserved.