Class VirtualEdgeNetworkGatewayRouteRibEntry
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<VirtualEdgeNetworkGatewayRouteRibEntry.Builder,VirtualEdgeNetworkGatewayRouteRibEntry>
Describes a route in the routing information base (RIB) of a virtual edge network gateway route table.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionThe highest target to which the route is announced.final StringThe highest target to which the route is announced.final IntegerThe length of the BGP AS path of the route.The scope of the route announcement on the Amazon Web Services network.final StringThe scope of the route announcement on the Amazon Web Services network.builder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final Booleanfiltered()Indicates whether the route is filtered out of the forwarding information base (FIB).The reason that the route is filtered out of the FIB.final StringThe reason that the route is filtered out of the FIB.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final booleanFor responses, this returns true if the service returned a value for the Targets property.The scope of the route announcement on the internet.final StringThe scope of the route announcement on the internet.final StringThe IPv4 CIDR block used for the destination match.final StringThe IPv6 CIDR block used for the destination match.final IntegerThe BGP local preference of the route.final Integermed()The BGP multi-exit discriminator (MED) of the route.final Integermtu()The maximum transmission unit (MTU), in bytes, for the route.origin()The origin of the route.final StringThe origin of the route.final IntegerThe number of times the AS path is prepended for the route, from 1 to 3.final IntegerThe route preference of the route.static Class<? extends VirtualEdgeNetworkGatewayRouteRibEntry.Builder> status()The status of a route learned from a route server peer.final StringThe status of a route learned from a route server peer.targets()The targets that the route forwards traffic to.The type of target for the route, which determines where the gateway forwards matching traffic.final StringThe type of target for the route, which determines where the gateway forwards matching traffic.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
ipv4DestinationCidrBlock
The IPv4 CIDR block used for the destination match.
- Returns:
- The IPv4 CIDR block used for the destination match.
-
ipv6DestinationCidrBlock
The IPv6 CIDR block used for the destination match.
- Returns:
- The IPv6 CIDR block used for the destination match.
-
targetType
The type of target for the route, which determines where the gateway forwards matching traffic. Valid values:
-
blackhole– Drops matching traffic. -
internet– Forwards matching traffic to the internet. -
subnet– Forwards matching traffic to a secondary subnet.
If the service returns an enum value that is not available in the current SDK version,
targetTypewill returnVirtualEdgeNetworkGatewayRouteTargetType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtargetTypeAsString().- Returns:
- The type of target for the route, which determines where the gateway forwards matching traffic. Valid
values:
-
blackhole– Drops matching traffic. -
internet– Forwards matching traffic to the internet. -
subnet– Forwards matching traffic to a secondary subnet.
-
- See Also:
-
-
targetTypeAsString
The type of target for the route, which determines where the gateway forwards matching traffic. Valid values:
-
blackhole– Drops matching traffic. -
internet– Forwards matching traffic to the internet. -
subnet– Forwards matching traffic to a secondary subnet.
If the service returns an enum value that is not available in the current SDK version,
targetTypewill returnVirtualEdgeNetworkGatewayRouteTargetType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtargetTypeAsString().- Returns:
- The type of target for the route, which determines where the gateway forwards matching traffic. Valid
values:
-
blackhole– Drops matching traffic. -
internet– Forwards matching traffic to the internet. -
subnet– Forwards matching traffic to a secondary subnet.
-
- See Also:
-
-
hasTargets
public final boolean hasTargets()For responses, this returns true if the service returned a value for the Targets property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
targets
The targets that the route forwards traffic to. A target is one of the following:
-
A blackhole, which drops the traffic.
-
An IP address.
-
A secondary subnet.
-
The internet.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasTargets()method.- Returns:
- The targets that the route forwards traffic to. A target is one of the following:
-
A blackhole, which drops the traffic.
-
An IP address.
-
A secondary subnet.
-
The internet.
-
-
-
announcementTarget
The highest target to which the route is announced.
localannounces the route within the virtual edge network only.aws-global-networkalso announces it to the Amazon Web Services global network.internetalso announces it to the internet.If the service returns an enum value that is not available in the current SDK version,
announcementTargetwill returnVirtualEdgeNetworkGatewayRouteAnnouncementTarget.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromannouncementTargetAsString().- Returns:
- The highest target to which the route is announced.
localannounces the route within the virtual edge network only.aws-global-networkalso announces it to the Amazon Web Services global network.internetalso announces it to the internet. - See Also:
-
announcementTargetAsString
The highest target to which the route is announced.
localannounces the route within the virtual edge network only.aws-global-networkalso announces it to the Amazon Web Services global network.internetalso announces it to the internet.If the service returns an enum value that is not available in the current SDK version,
announcementTargetwill returnVirtualEdgeNetworkGatewayRouteAnnouncementTarget.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromannouncementTargetAsString().- Returns:
- The highest target to which the route is announced.
localannounces the route within the virtual edge network only.aws-global-networkalso announces it to the Amazon Web Services global network.internetalso announces it to the internet. - See Also:
-
borderScope
The scope of the route announcement on the Amazon Web Services network.
regionannounces it within the edge location's Amazon Web Services Region.continentalannounces it within the edge location's continent.globalannounces it worldwide.If the service returns an enum value that is not available in the current SDK version,
borderScopewill returnVirtualEdgeNetworkGatewayRouteBorderScope.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromborderScopeAsString().- Returns:
- The scope of the route announcement on the Amazon Web Services network.
regionannounces it within the edge location's Amazon Web Services Region.continentalannounces it within the edge location's continent.globalannounces it worldwide. - See Also:
-
borderScopeAsString
The scope of the route announcement on the Amazon Web Services network.
regionannounces it within the edge location's Amazon Web Services Region.continentalannounces it within the edge location's continent.globalannounces it worldwide.If the service returns an enum value that is not available in the current SDK version,
borderScopewill returnVirtualEdgeNetworkGatewayRouteBorderScope.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromborderScopeAsString().- Returns:
- The scope of the route announcement on the Amazon Web Services network.
regionannounces it within the edge location's Amazon Web Services Region.continentalannounces it within the edge location's continent.globalannounces it worldwide. - See Also:
-
internetScope
The scope of the route announcement on the internet.
cityannounces it to the internet from the edge location's metro only.If the service returns an enum value that is not available in the current SDK version,
internetScopewill returnVirtualEdgeNetworkGatewayRouteInternetScope.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frominternetScopeAsString().- Returns:
- The scope of the route announcement on the internet.
cityannounces it to the internet from the edge location's metro only. - See Also:
-
internetScopeAsString
The scope of the route announcement on the internet.
cityannounces it to the internet from the edge location's metro only.If the service returns an enum value that is not available in the current SDK version,
internetScopewill returnVirtualEdgeNetworkGatewayRouteInternetScope.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frominternetScopeAsString().- Returns:
- The scope of the route announcement on the internet.
cityannounces it to the internet from the edge location's metro only. - See Also:
-
prependCount
The number of times the AS path is prepended for the route, from 1 to 3. The value is 0 for blackhole routes.
- Returns:
- The number of times the AS path is prepended for the route, from 1 to 3. The value is 0 for blackhole routes.
-
routePreference
The route preference of the route.
- Returns:
- The route preference of the route.
-
origin
The origin of the route. Valid values:
-
create-virtual-edge-network-gateway-route– A static route. -
route-server-peer-endpoint-1– A route learned from a route server peer on route server endpoint 1. -
route-server-peer-endpoint-2– A route learned from a route server peer on route server endpoint 2.
If the service returns an enum value that is not available in the current SDK version,
originwill returnVirtualEdgeNetworkGatewayRouteOrigin.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromoriginAsString().- Returns:
- The origin of the route. Valid values:
-
create-virtual-edge-network-gateway-route– A static route. -
route-server-peer-endpoint-1– A route learned from a route server peer on route server endpoint 1. -
route-server-peer-endpoint-2– A route learned from a route server peer on route server endpoint 2.
-
- See Also:
-
-
originAsString
The origin of the route. Valid values:
-
create-virtual-edge-network-gateway-route– A static route. -
route-server-peer-endpoint-1– A route learned from a route server peer on route server endpoint 1. -
route-server-peer-endpoint-2– A route learned from a route server peer on route server endpoint 2.
If the service returns an enum value that is not available in the current SDK version,
originwill returnVirtualEdgeNetworkGatewayRouteOrigin.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromoriginAsString().- Returns:
- The origin of the route. Valid values:
-
create-virtual-edge-network-gateway-route– A static route. -
route-server-peer-endpoint-1– A route learned from a route server peer on route server endpoint 1. -
route-server-peer-endpoint-2– A route learned from a route server peer on route server endpoint 2.
-
- See Also:
-
-
status
The status of a route learned from a route server peer. Valid values:
-
active– Both route server endpoints report the same route. -
mismatch– Only one route server endpoint reports the route, or the endpoints report different versions of it.
Static routes don't have a status.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnVirtualEdgeNetworkGatewayRouteStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of a route learned from a route server peer. Valid values:
-
active– Both route server endpoints report the same route. -
mismatch– Only one route server endpoint reports the route, or the endpoints report different versions of it.
Static routes don't have a status.
-
- See Also:
-
-
statusAsString
The status of a route learned from a route server peer. Valid values:
-
active– Both route server endpoints report the same route. -
mismatch– Only one route server endpoint reports the route, or the endpoints report different versions of it.
Static routes don't have a status.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnVirtualEdgeNetworkGatewayRouteStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of a route learned from a route server peer. Valid values:
-
active– Both route server endpoints report the same route. -
mismatch– Only one route server endpoint reports the route, or the endpoints report different versions of it.
Static routes don't have a status.
-
- See Also:
-
-
asPathLength
The length of the BGP AS path of the route.
- Returns:
- The length of the BGP AS path of the route.
-
med
The BGP multi-exit discriminator (MED) of the route.
- Returns:
- The BGP multi-exit discriminator (MED) of the route.
-
localPref
The BGP local preference of the route.
- Returns:
- The BGP local preference of the route.
-
mtu
The maximum transmission unit (MTU), in bytes, for the route.
- Returns:
- The maximum transmission unit (MTU), in bytes, for the route.
-
filtered
Indicates whether the route is filtered out of the forwarding information base (FIB).
- Returns:
- Indicates whether the route is filtered out of the forwarding information base (FIB).
-
filteredReason
The reason that the route is filtered out of the FIB.
-
another-route-preferred– BGP best-path selection prefers another route for the same prefix (higher local preference, shorter AS path, or lower MED). -
bogon-or-martian– The route is for a bogon or martian prefix (an address range that shouldn't appear on the public internet) and is announced beyond the virtual edge network. Bogon prefixes include 0.0.0.0/0, 10.0.0.0/8, 100.64.0.0/10, 127.0.0.0/8, 169.254.0.0/16, 172.16.0.0/12, 192.0.2.0/24, 192.168.0.0/16, 198.51.100.0/24, 203.0.113.0/24, 240.0.0.0/4, ::/0, 2001:db8::/32, and fc00::/7. -
dampened– The route is suppressed because it was repeatedly announced and withdrawn. -
internal-error– The route is filtered because of an internal error. -
invalid-prepend-value– The AS path prepend value is invalid. The prepend value must be between 1 and 3. -
invalid-scope-community-value– The route carries a community with ASN 16509 and an unsupported function or value, or a public prefix doesn't carry an announcement community. The supported announcement communities are16509:1:1000000,16509:1:2100000,16509:1:2200000,16509:1:2300000,16509:1:3110000,16509:1:3210000, and16509:1:3310000. -
prefix-length-exceeded– The route is more specific than the maximum prefix length of the route filter or the maximum prefix length for its announcement target. The maximum prefix length for IPv4 is /32 forlocal, /28 foraws-global-network, and /24 forinternet. For IPv6, the maximum prefix length is /128 forlocal, /64 foraws-global-network, and /48 forinternet. -
prefix-limit-exceeded– The secondary network has reached the maximum number of routes learned from route server peers for the announcement target. -
prefix-not-allowed– The route is for a public prefix that isn't covered by an allowed advertisement of the virtual edge network gateway. -
private-prefix-requires-community– The route is for a private prefix and isn't limited to the virtual edge network. Private prefixes are 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, and 100.64.0.0/10 for IPv4, and unique local address prefixes in fd00::/8 outside fd00::/16 for IPv6. A private prefix must carry theNO_EXPORTcommunity, the blackhole community65535:666, or the community16509:1:1000000. -
route-propagation-disabled– Route propagation is disabled for the route table association. -
transit-violation– A prefix learned from Direct Connect is re-advertised beyond the virtual edge network.
If the service returns an enum value that is not available in the current SDK version,
filteredReasonwill returnVirtualEdgeNetworkGatewayRouteFilteredReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromfilteredReasonAsString().- Returns:
- The reason that the route is filtered out of the FIB.
-
another-route-preferred– BGP best-path selection prefers another route for the same prefix (higher local preference, shorter AS path, or lower MED). -
bogon-or-martian– The route is for a bogon or martian prefix (an address range that shouldn't appear on the public internet) and is announced beyond the virtual edge network. Bogon prefixes include 0.0.0.0/0, 10.0.0.0/8, 100.64.0.0/10, 127.0.0.0/8, 169.254.0.0/16, 172.16.0.0/12, 192.0.2.0/24, 192.168.0.0/16, 198.51.100.0/24, 203.0.113.0/24, 240.0.0.0/4, ::/0, 2001:db8::/32, and fc00::/7. -
dampened– The route is suppressed because it was repeatedly announced and withdrawn. -
internal-error– The route is filtered because of an internal error. -
invalid-prepend-value– The AS path prepend value is invalid. The prepend value must be between 1 and 3. -
invalid-scope-community-value– The route carries a community with ASN 16509 and an unsupported function or value, or a public prefix doesn't carry an announcement community. The supported announcement communities are16509:1:1000000,16509:1:2100000,16509:1:2200000,16509:1:2300000,16509:1:3110000,16509:1:3210000, and16509:1:3310000. -
prefix-length-exceeded– The route is more specific than the maximum prefix length of the route filter or the maximum prefix length for its announcement target. The maximum prefix length for IPv4 is /32 forlocal, /28 foraws-global-network, and /24 forinternet. For IPv6, the maximum prefix length is /128 forlocal, /64 foraws-global-network, and /48 forinternet. -
prefix-limit-exceeded– The secondary network has reached the maximum number of routes learned from route server peers for the announcement target. -
prefix-not-allowed– The route is for a public prefix that isn't covered by an allowed advertisement of the virtual edge network gateway. -
private-prefix-requires-community– The route is for a private prefix and isn't limited to the virtual edge network. Private prefixes are 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, and 100.64.0.0/10 for IPv4, and unique local address prefixes in fd00::/8 outside fd00::/16 for IPv6. A private prefix must carry theNO_EXPORTcommunity, the blackhole community65535:666, or the community16509:1:1000000. -
route-propagation-disabled– Route propagation is disabled for the route table association. -
transit-violation– A prefix learned from Direct Connect is re-advertised beyond the virtual edge network.
-
- See Also:
-
-
filteredReasonAsString
The reason that the route is filtered out of the FIB.
-
another-route-preferred– BGP best-path selection prefers another route for the same prefix (higher local preference, shorter AS path, or lower MED). -
bogon-or-martian– The route is for a bogon or martian prefix (an address range that shouldn't appear on the public internet) and is announced beyond the virtual edge network. Bogon prefixes include 0.0.0.0/0, 10.0.0.0/8, 100.64.0.0/10, 127.0.0.0/8, 169.254.0.0/16, 172.16.0.0/12, 192.0.2.0/24, 192.168.0.0/16, 198.51.100.0/24, 203.0.113.0/24, 240.0.0.0/4, ::/0, 2001:db8::/32, and fc00::/7. -
dampened– The route is suppressed because it was repeatedly announced and withdrawn. -
internal-error– The route is filtered because of an internal error. -
invalid-prepend-value– The AS path prepend value is invalid. The prepend value must be between 1 and 3. -
invalid-scope-community-value– The route carries a community with ASN 16509 and an unsupported function or value, or a public prefix doesn't carry an announcement community. The supported announcement communities are16509:1:1000000,16509:1:2100000,16509:1:2200000,16509:1:2300000,16509:1:3110000,16509:1:3210000, and16509:1:3310000. -
prefix-length-exceeded– The route is more specific than the maximum prefix length of the route filter or the maximum prefix length for its announcement target. The maximum prefix length for IPv4 is /32 forlocal, /28 foraws-global-network, and /24 forinternet. For IPv6, the maximum prefix length is /128 forlocal, /64 foraws-global-network, and /48 forinternet. -
prefix-limit-exceeded– The secondary network has reached the maximum number of routes learned from route server peers for the announcement target. -
prefix-not-allowed– The route is for a public prefix that isn't covered by an allowed advertisement of the virtual edge network gateway. -
private-prefix-requires-community– The route is for a private prefix and isn't limited to the virtual edge network. Private prefixes are 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, and 100.64.0.0/10 for IPv4, and unique local address prefixes in fd00::/8 outside fd00::/16 for IPv6. A private prefix must carry theNO_EXPORTcommunity, the blackhole community65535:666, or the community16509:1:1000000. -
route-propagation-disabled– Route propagation is disabled for the route table association. -
transit-violation– A prefix learned from Direct Connect is re-advertised beyond the virtual edge network.
If the service returns an enum value that is not available in the current SDK version,
filteredReasonwill returnVirtualEdgeNetworkGatewayRouteFilteredReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromfilteredReasonAsString().- Returns:
- The reason that the route is filtered out of the FIB.
-
another-route-preferred– BGP best-path selection prefers another route for the same prefix (higher local preference, shorter AS path, or lower MED). -
bogon-or-martian– The route is for a bogon or martian prefix (an address range that shouldn't appear on the public internet) and is announced beyond the virtual edge network. Bogon prefixes include 0.0.0.0/0, 10.0.0.0/8, 100.64.0.0/10, 127.0.0.0/8, 169.254.0.0/16, 172.16.0.0/12, 192.0.2.0/24, 192.168.0.0/16, 198.51.100.0/24, 203.0.113.0/24, 240.0.0.0/4, ::/0, 2001:db8::/32, and fc00::/7. -
dampened– The route is suppressed because it was repeatedly announced and withdrawn. -
internal-error– The route is filtered because of an internal error. -
invalid-prepend-value– The AS path prepend value is invalid. The prepend value must be between 1 and 3. -
invalid-scope-community-value– The route carries a community with ASN 16509 and an unsupported function or value, or a public prefix doesn't carry an announcement community. The supported announcement communities are16509:1:1000000,16509:1:2100000,16509:1:2200000,16509:1:2300000,16509:1:3110000,16509:1:3210000, and16509:1:3310000. -
prefix-length-exceeded– The route is more specific than the maximum prefix length of the route filter or the maximum prefix length for its announcement target. The maximum prefix length for IPv4 is /32 forlocal, /28 foraws-global-network, and /24 forinternet. For IPv6, the maximum prefix length is /128 forlocal, /64 foraws-global-network, and /48 forinternet. -
prefix-limit-exceeded– The secondary network has reached the maximum number of routes learned from route server peers for the announcement target. -
prefix-not-allowed– The route is for a public prefix that isn't covered by an allowed advertisement of the virtual edge network gateway. -
private-prefix-requires-community– The route is for a private prefix and isn't limited to the virtual edge network. Private prefixes are 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, and 100.64.0.0/10 for IPv4, and unique local address prefixes in fd00::/8 outside fd00::/16 for IPv6. A private prefix must carry theNO_EXPORTcommunity, the blackhole community65535:666, or the community16509:1:1000000. -
route-propagation-disabled– Route propagation is disabled for the route table association. -
transit-violation– A prefix learned from Direct Connect is re-advertised beyond the virtual edge network.
-
- See Also:
-
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<VirtualEdgeNetworkGatewayRouteRibEntry.Builder,VirtualEdgeNetworkGatewayRouteRibEntry> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
public static Class<? extends VirtualEdgeNetworkGatewayRouteRibEntry.Builder> serializableBuilderClass() -
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-