public final class Route 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
| Modifier and Type | Class and Description | 
|---|---|
| static class  | Route.WarningsModel definition for RouteWarnings. | 
GenericData.FlagsAbstractMap.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 | 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. | 
| String | getNextHopInterconnectAttachment()[Output Only] The URL to an InterconnectAttachment which is the next hop for the route. | 
| String | getNextHopIp()The network IP address of an instance that should handle matching packets. | 
| String | getNextHopNetwork()The URL of the local network if it should handle matching packets. | 
| 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. | 
| 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 | 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 | setNextHopInterconnectAttachment(String nextHopInterconnectAttachment)[Output Only] The URL to an InterconnectAttachment which is the next hop for the route. | 
| Route | setNextHopIp(String nextHopIp)The network IP address of an instance that should handle matching packets. | 
| Route | setNextHopNetwork(String nextHopNetwork)The URL of the local network if it should handle matching packets. | 
| 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 | 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, 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 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 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 String getNextHopInterconnectAttachment()
null for nonepublic Route setNextHopInterconnectAttachment(String nextHopInterconnectAttachment)
nextHopInterconnectAttachment - nextHopInterconnectAttachment or null for nonepublic String getNextHopIp()
null for nonepublic Route setNextHopIp(String nextHopIp)
nextHopIp - nextHopIp or null for nonepublic String getNextHopNetwork()
null for nonepublic Route setNextHopNetwork(String nextHopNetwork)
nextHopNetwork - nextHopNetwork 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 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 GenericJsonpublic Route clone()
clone in class GenericJsonCopyright © 2011–2022 Google. All rights reserved.