Interface NetworkImpairment.Builder

    • Method Detail

      • networks

        NetworkImpairment.Builder networks​(Collection<Network> networks)

        The networks that could be impacted by a network impairment event.

        Parameters:
        networks - The networks that could be impacted by a network impairment event.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • networks

        NetworkImpairment.Builder networks​(Network... networks)

        The networks that could be impacted by a network impairment event.

        Parameters:
        networks - The networks that could be impacted by a network impairment event.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • networks

        NetworkImpairment.Builder networks​(Consumer<Network.Builder>... networks)

        The networks that could be impacted by a network impairment event.

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

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #networks(List).

        Parameters:
        networks - a consumer that will call methods on Network.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #networks(java.util.Collection)
      • asPath

        NetworkImpairment.Builder asPath​(Collection<Network> asPath)

        The combination of the Autonomous System Number (ASN) of the network and the name of the network.

        Parameters:
        asPath - The combination of the Autonomous System Number (ASN) of the network and the name of the network.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • asPath

        NetworkImpairment.Builder asPath​(Network... asPath)

        The combination of the Autonomous System Number (ASN) of the network and the name of the network.

        Parameters:
        asPath - The combination of the Autonomous System Number (ASN) of the network and the name of the network.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • asPath

        NetworkImpairment.Builder asPath​(Consumer<Network.Builder>... asPath)

        The combination of the Autonomous System Number (ASN) of the network and the name of the network.

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

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

        Parameters:
        asPath - a consumer that will call methods on Network.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #asPath(java.util.Collection)