target.apidocs.com.google.api.services.compute.model.RouterBgp.html Maven / Gradle / Ivy
RouterBgp (Compute Engine API alpha-rev20200526-1.30.9)
com.google.api.services.compute.model
Class RouterBgp
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.compute.model.RouterBgp
-
public final class RouterBgp
extends GenericJson
Model definition for RouterBgp.
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
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
RouterBgp()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
RouterBgp
clone()
List<String>
getAdvertisedGroups()
User-specified list of prefix groups to advertise in custom mode.
List<RouterAdvertisedIpRange>
getAdvertisedIpRanges()
User-specified list of individual IP ranges to advertise in custom mode.
String
getAdvertiseMode()
User-specified flag to indicate which mode to use for advertisement.
Long
getAsn()
Local BGP Autonomous System Number (ASN).
Long
getKeepaliveInterval()
The interval in seconds between BGP keepalive messages that are sent to the peer.
RouterBgp
set(String fieldName,
Object value)
RouterBgp
setAdvertisedGroups(List<String> advertisedGroups)
User-specified list of prefix groups to advertise in custom mode.
RouterBgp
setAdvertisedIpRanges(List<RouterAdvertisedIpRange> advertisedIpRanges)
User-specified list of individual IP ranges to advertise in custom mode.
RouterBgp
setAdvertiseMode(String advertiseMode)
User-specified flag to indicate which mode to use for advertisement.
RouterBgp
setAsn(Long asn)
Local BGP Autonomous System Number (ASN).
RouterBgp
setKeepaliveInterval(Long keepaliveInterval)
The interval in seconds between BGP keepalive messages that are sent to the peer.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getAdvertiseMode
public String getAdvertiseMode()
User-specified flag to indicate which mode to use for advertisement. The options are DEFAULT or
CUSTOM.
- Returns:
- value or
null
for none
-
setAdvertiseMode
public RouterBgp setAdvertiseMode(String advertiseMode)
User-specified flag to indicate which mode to use for advertisement. The options are DEFAULT or
CUSTOM.
- Parameters:
advertiseMode
- advertiseMode or null
for none
-
getAdvertisedGroups
public List<String> getAdvertisedGroups()
User-specified list of prefix groups to advertise in custom mode. This field can only be
populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These
groups will be advertised in addition to any specified prefixes. Leave this field blank to
advertise no custom groups.
- Returns:
- value or
null
for none
-
setAdvertisedGroups
public RouterBgp setAdvertisedGroups(List<String> advertisedGroups)
User-specified list of prefix groups to advertise in custom mode. This field can only be
populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These
groups will be advertised in addition to any specified prefixes. Leave this field blank to
advertise no custom groups.
- Parameters:
advertisedGroups
- advertisedGroups or null
for none
-
getAdvertisedIpRanges
public List<RouterAdvertisedIpRange> getAdvertisedIpRanges()
User-specified list of individual IP ranges to advertise in custom mode. This field can only be
populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These IP
ranges will be advertised in addition to any specified groups. Leave this field blank to
advertise no custom IP ranges.
- Returns:
- value or
null
for none
-
setAdvertisedIpRanges
public RouterBgp setAdvertisedIpRanges(List<RouterAdvertisedIpRange> advertisedIpRanges)
User-specified list of individual IP ranges to advertise in custom mode. This field can only be
populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These IP
ranges will be advertised in addition to any specified groups. Leave this field blank to
advertise no custom IP ranges.
- Parameters:
advertisedIpRanges
- advertisedIpRanges or null
for none
-
getAsn
public Long getAsn()
Local BGP Autonomous System Number (ASN). Must be an RFC6996 private ASN, either 16-bit or
32-bit. The value will be fixed for this router resource. All VPN tunnels that link to this
router will have the same local ASN.
- Returns:
- value or
null
for none
-
setAsn
public RouterBgp setAsn(Long asn)
Local BGP Autonomous System Number (ASN). Must be an RFC6996 private ASN, either 16-bit or
32-bit. The value will be fixed for this router resource. All VPN tunnels that link to this
router will have the same local ASN.
- Parameters:
asn
- asn or null
for none
-
getKeepaliveInterval
public Long getKeepaliveInterval()
The interval in seconds between BGP keepalive messages that are sent to the peer. Not currently
available publicly. Hold time is three times the interval at which keepalive messages are sent,
and the hold time is the maximum number of seconds allowed to elapse between successive
keepalive messages that BGP receives from a peer. BGP will use the smaller of either the local
hold time value or the peer's hold time value as the hold time for the BGP connection between
the two peers. If set, this value must be between 1 and 120. The default is 20.
- Returns:
- value or
null
for none
-
setKeepaliveInterval
public RouterBgp setKeepaliveInterval(Long keepaliveInterval)
The interval in seconds between BGP keepalive messages that are sent to the peer. Not currently
available publicly. Hold time is three times the interval at which keepalive messages are sent,
and the hold time is the maximum number of seconds allowed to elapse between successive
keepalive messages that BGP receives from a peer. BGP will use the smaller of either the local
hold time value or the peer's hold time value as the hold time for the BGP connection between
the two peers. If set, this value must be between 1 and 120. The default is 20.
- Parameters:
keepaliveInterval
- keepaliveInterval or null
for none
-
set
public RouterBgp set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public RouterBgp clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2020 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy