Class VirtualEdgeNetworkGatewayRouteRibEntry

java.lang.Object
software.amazon.awssdk.services.ec2.model.VirtualEdgeNetworkGatewayRouteRibEntry
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<VirtualEdgeNetworkGatewayRouteRibEntry.Builder,VirtualEdgeNetworkGatewayRouteRibEntry>

@Generated("software.amazon.awssdk:codegen") public final class VirtualEdgeNetworkGatewayRouteRibEntry extends Object implements SdkPojo, Serializable, ToCopyableBuilder<VirtualEdgeNetworkGatewayRouteRibEntry.Builder,VirtualEdgeNetworkGatewayRouteRibEntry>

Describes a route in the routing information base (RIB) of a virtual edge network gateway route table.

See Also:
  • Method Details

    • ipv4DestinationCidrBlock

      public final String ipv4DestinationCidrBlock()

      The IPv4 CIDR block used for the destination match.

      Returns:
      The IPv4 CIDR block used for the destination match.
    • ipv6DestinationCidrBlock

      public final String ipv6DestinationCidrBlock()

      The IPv6 CIDR block used for the destination match.

      Returns:
      The IPv6 CIDR block used for the destination match.
    • targetType

      public final VirtualEdgeNetworkGatewayRouteTargetType 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, targetType will return VirtualEdgeNetworkGatewayRouteTargetType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from targetTypeAsString().

      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

      public final String 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, targetType will return VirtualEdgeNetworkGatewayRouteTargetType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from targetTypeAsString().

      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 the isEmpty() 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

      public final List<VirtualEdgeNetworkGatewayRouteTarget> 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

      public final VirtualEdgeNetworkGatewayRouteAnnouncementTarget announcementTarget()

      The highest target to which the route is announced. local announces the route within the virtual edge network only. aws-global-network also announces it to the Amazon Web Services global network. internet also announces it to the internet.

      If the service returns an enum value that is not available in the current SDK version, announcementTarget will return VirtualEdgeNetworkGatewayRouteAnnouncementTarget.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from announcementTargetAsString().

      Returns:
      The highest target to which the route is announced. local announces the route within the virtual edge network only. aws-global-network also announces it to the Amazon Web Services global network. internet also announces it to the internet.
      See Also:
    • announcementTargetAsString

      public final String announcementTargetAsString()

      The highest target to which the route is announced. local announces the route within the virtual edge network only. aws-global-network also announces it to the Amazon Web Services global network. internet also announces it to the internet.

      If the service returns an enum value that is not available in the current SDK version, announcementTarget will return VirtualEdgeNetworkGatewayRouteAnnouncementTarget.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from announcementTargetAsString().

      Returns:
      The highest target to which the route is announced. local announces the route within the virtual edge network only. aws-global-network also announces it to the Amazon Web Services global network. internet also announces it to the internet.
      See Also:
    • borderScope

      public final VirtualEdgeNetworkGatewayRouteBorderScope borderScope()

      The scope of the route announcement on the Amazon Web Services network. region announces it within the edge location's Amazon Web Services Region. continental announces it within the edge location's continent. global announces it worldwide.

      If the service returns an enum value that is not available in the current SDK version, borderScope will return VirtualEdgeNetworkGatewayRouteBorderScope.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from borderScopeAsString().

      Returns:
      The scope of the route announcement on the Amazon Web Services network. region announces it within the edge location's Amazon Web Services Region. continental announces it within the edge location's continent. global announces it worldwide.
      See Also:
    • borderScopeAsString

      public final String borderScopeAsString()

      The scope of the route announcement on the Amazon Web Services network. region announces it within the edge location's Amazon Web Services Region. continental announces it within the edge location's continent. global announces it worldwide.

      If the service returns an enum value that is not available in the current SDK version, borderScope will return VirtualEdgeNetworkGatewayRouteBorderScope.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from borderScopeAsString().

      Returns:
      The scope of the route announcement on the Amazon Web Services network. region announces it within the edge location's Amazon Web Services Region. continental announces it within the edge location's continent. global announces it worldwide.
      See Also:
    • internetScope

      public final VirtualEdgeNetworkGatewayRouteInternetScope internetScope()

      The scope of the route announcement on the internet. city announces 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, internetScope will return VirtualEdgeNetworkGatewayRouteInternetScope.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from internetScopeAsString().

      Returns:
      The scope of the route announcement on the internet. city announces it to the internet from the edge location's metro only.
      See Also:
    • internetScopeAsString

      public final String internetScopeAsString()

      The scope of the route announcement on the internet. city announces 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, internetScope will return VirtualEdgeNetworkGatewayRouteInternetScope.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from internetScopeAsString().

      Returns:
      The scope of the route announcement on the internet. city announces it to the internet from the edge location's metro only.
      See Also:
    • prependCount

      public final Integer 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

      public final Integer routePreference()

      The route preference of the route.

      Returns:
      The route preference of the route.
    • origin

      public final VirtualEdgeNetworkGatewayRouteOrigin 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, origin will return VirtualEdgeNetworkGatewayRouteOrigin.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from originAsString().

      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

      public final String 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, origin will return VirtualEdgeNetworkGatewayRouteOrigin.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from originAsString().

      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

      public final VirtualEdgeNetworkGatewayRouteStatus 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, status will return VirtualEdgeNetworkGatewayRouteStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from statusAsString().

      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

      public final String 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, status will return VirtualEdgeNetworkGatewayRouteStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from statusAsString().

      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

      public final Integer asPathLength()

      The length of the BGP AS path of the route.

      Returns:
      The length of the BGP AS path of the route.
    • med

      public final Integer med()

      The BGP multi-exit discriminator (MED) of the route.

      Returns:
      The BGP multi-exit discriminator (MED) of the route.
    • localPref

      public final Integer localPref()

      The BGP local preference of the route.

      Returns:
      The BGP local preference of the route.
    • mtu

      public final Integer mtu()

      The maximum transmission unit (MTU), in bytes, for the route.

      Returns:
      The maximum transmission unit (MTU), in bytes, for the route.
    • filtered

      public final Boolean 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

      public final VirtualEdgeNetworkGatewayRouteFilteredReason 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 are 16509:1:1000000, 16509:1:2100000, 16509:1:2200000, 16509:1:2300000, 16509:1:3110000, 16509:1:3210000, and 16509: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 for local, /28 for aws-global-network, and /24 for internet. For IPv6, the maximum prefix length is /128 for local, /64 for aws-global-network, and /48 for internet.

      • 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 the NO_EXPORT community, the blackhole community 65535:666, or the community 16509: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, filteredReason will return VirtualEdgeNetworkGatewayRouteFilteredReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from filteredReasonAsString().

      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 are 16509:1:1000000, 16509:1:2100000, 16509:1:2200000, 16509:1:2300000, 16509:1:3110000, 16509:1:3210000, and 16509: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 for local, /28 for aws-global-network, and /24 for internet . For IPv6, the maximum prefix length is /128 for local, /64 for aws-global-network, and /48 for internet.

      • 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 the NO_EXPORT community, the blackhole community 65535:666, or the community 16509: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

      public final String 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 are 16509:1:1000000, 16509:1:2100000, 16509:1:2200000, 16509:1:2300000, 16509:1:3110000, 16509:1:3210000, and 16509: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 for local, /28 for aws-global-network, and /24 for internet. For IPv6, the maximum prefix length is /128 for local, /64 for aws-global-network, and /48 for internet.

      • 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 the NO_EXPORT community, the blackhole community 65535:666, or the community 16509: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, filteredReason will return VirtualEdgeNetworkGatewayRouteFilteredReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from filteredReasonAsString().

      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 are 16509:1:1000000, 16509:1:2100000, 16509:1:2200000, 16509:1:2300000, 16509:1:3110000, 16509:1:3210000, and 16509: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 for local, /28 for aws-global-network, and /24 for internet . For IPv6, the maximum prefix length is /128 for local, /64 for aws-global-network, and /48 for internet.

      • 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 the NO_EXPORT community, the blackhole community 65535:666, or the community 16509: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: ToCopyableBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<VirtualEdgeNetworkGatewayRouteRibEntry.Builder,VirtualEdgeNetworkGatewayRouteRibEntry>
      Returns:
      a builder for type T
    • builder

    • serializableBuilderClass

      public static Class<? extends VirtualEdgeNetworkGatewayRouteRibEntry.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Description copied from interface: SdkPojo
      Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • toString

      public final String toString()
      Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo
      Returns:
      The mapping between the field name and its corresponding field.