Class RouteDetails.Builder

  • Enclosing class:
    RouteDetails

    public static final class RouteDetails.Builder
    extends java.lang.Object
    Builder class for RouteDetails.
    • Constructor Detail

      • Builder

        public Builder()
        Constructor with parameters for the required properties of RouteDetails.
    • Method Detail

      • setAsPath

        public RouteDetails.Builder setAsPath​(java.lang.String asPath)
        BGP AS path attribute. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        asPath - New value for the property.
      • setLocalPref

        public RouteDetails.Builder setLocalPref​(java.lang.Long localPref)
        BGP Local Preference attribute. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        localPref - New value for the property.
      • setMed

        public RouteDetails.Builder setMed​(java.lang.Long med)
        BGP Multi Exit Discriminator attribute. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        med - New value for the property.
      • setNetwork

        public RouteDetails.Builder setNetwork​(java.lang.String network)
        CIDR network address. format: ip-cidr-block This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        network - New value for the property.
      • setNextHop

        public RouteDetails.Builder setNextHop​(java.lang.String nextHop)
        Next hop IP address. format: ip This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        nextHop - New value for the property.
      • setWeight

        public RouteDetails.Builder setWeight​(java.lang.Long weight)
        BGP Weight attribute. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        weight - New value for the property.