Class Routing.Builder

  • Enclosing class:
    Routing

    public static class Routing.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • asLabel

        public Routing.Builder asLabel​(String asLabel)
        The registry label for asn, usually the name of the organization that owns the ASN.

        May be omitted or null.

        Parameters:
        asLabel - the value to set
        Returns:
        this builder
      • asn

        public Routing.Builder asn​(Integer asn)
        The Autonomous System Number (ASN) identifying the organization responsible for routing packets to prefix.
        Parameters:
        asn - the value to set
        Returns:
        this builder
      • prefix

        public Routing.Builder prefix​(String prefix)
        An IP prefix (CIDR syntax) that is less specific than address, through which address is routed.
        Parameters:
        prefix - the value to set
        Returns:
        this builder
      • weight

        public Routing.Builder weight​(Integer weight)
        An integer between 0 and 100 used to select between multiple origin ASNs when routing to prefix.

        Most prefixes have exactly one origin ASN, in which case weight will be 100.

        Parameters:
        weight - the value to set
        Returns:
        this builder