Interface Route.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Route.Builder,Route>, SdkBuilder<Route.Builder,Route>, SdkPojo
Enclosing class:
Route

@Mutable @NotThreadSafe public static interface Route.Builder extends SdkPojo, CopyableBuilder<Route.Builder,Route>
  • Method Details

    • cidr

      Route.Builder cidr(String cidr)

      The CIDR (prefix) of the route.

      Parameters:
      cidr - The CIDR (prefix) of the route.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • routeDirection

      Route.Builder routeDirection(String routeDirection)

      The direction of the route.

      The valid values are accepted (received from the customer network) and advertised (advertised to the customer network).

      Parameters:
      routeDirection - The direction of the route.

      The valid values are accepted (received from the customer network) and advertised (advertised to the customer network).

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • routeDirection

      Route.Builder routeDirection(RouteDirection routeDirection)

      The direction of the route.

      The valid values are accepted (received from the customer network) and advertised (advertised to the customer network).

      Parameters:
      routeDirection - The direction of the route.

      The valid values are accepted (received from the customer network) and advertised (advertised to the customer network).

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • addressFamily

      Route.Builder addressFamily(String addressFamily)

      The address family of the route.

      The valid values are ipv4 and ipv6.

      Parameters:
      addressFamily - The address family of the route.

      The valid values are ipv4 and ipv6.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • addressFamily

      Route.Builder addressFamily(AddressFamily addressFamily)

      The address family of the route.

      The valid values are ipv4 and ipv6.

      Parameters:
      addressFamily - The address family of the route.

      The valid values are ipv4 and ipv6.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • asPath

      The autonomous system (AS) path of the route.

      Parameters:
      asPath - The autonomous system (AS) path of the route.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • asPath

      Route.Builder asPath(AsPathSegment... asPath)

      The autonomous system (AS) path of the route.

      Parameters:
      asPath - The autonomous system (AS) path of the route.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • asPath

      The autonomous system (AS) path of the route.

      This is a convenience method that creates an instance of the AsPathSegment.Builder avoiding the need to create one manually via AsPathSegment.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to asPath(List<AsPathSegment>).

      Parameters:
      asPath - a consumer that will call methods on AsPathSegment.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • communities

      Route.Builder communities(Collection<String> communities)

      The BGP communities associated with the route.

      Parameters:
      communities - The BGP communities associated with the route.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • communities

      Route.Builder communities(String... communities)

      The BGP communities associated with the route.

      Parameters:
      communities - The BGP communities associated with the route.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • awsLogicalDeviceId

      Route.Builder awsLogicalDeviceId(String awsLogicalDeviceId)

      The Direct Connect endpoint that terminates the logical connection. This device might be different than the device that terminates the physical connection.

      Parameters:
      awsLogicalDeviceId - The Direct Connect endpoint that terminates the logical connection. This device might be different than the device that terminates the physical connection.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • routeInstalledAt

      Route.Builder routeInstalledAt(Instant routeInstalledAt)

      The time when the route was installed. The value is displayed in UTC format.

      Parameters:
      routeInstalledAt - The time when the route was installed. The value is displayed in UTC format.
      Returns:
      Returns a reference to this object so that method calls can be chained together.