Class HubRoute


  • public final class HubRoute
    extends Object
    RouteTable route.
    • Constructor Detail

      • HubRoute

        public HubRoute()
    • Method Detail

      • name

        public String name()
        Get the name property: The name of the Route that is unique within a RouteTable. This name can be used to access this route.
        Returns:
        the name value.
      • withName

        public HubRoute withName​(String name)
        Set the name property: The name of the Route that is unique within a RouteTable. This name can be used to access this route.
        Parameters:
        name - the name value to set.
        Returns:
        the HubRoute object itself.
      • destinationType

        public String destinationType()
        Get the destinationType property: The type of destinations (eg: CIDR, ResourceId, Service).
        Returns:
        the destinationType value.
      • withDestinationType

        public HubRoute withDestinationType​(String destinationType)
        Set the destinationType property: The type of destinations (eg: CIDR, ResourceId, Service).
        Parameters:
        destinationType - the destinationType value to set.
        Returns:
        the HubRoute object itself.
      • destinations

        public List<String> destinations()
        Get the destinations property: List of all destinations.
        Returns:
        the destinations value.
      • withDestinations

        public HubRoute withDestinations​(List<String> destinations)
        Set the destinations property: List of all destinations.
        Parameters:
        destinations - the destinations value to set.
        Returns:
        the HubRoute object itself.
      • nextHopType

        public String nextHopType()
        Get the nextHopType property: The type of next hop (eg: ResourceId).
        Returns:
        the nextHopType value.
      • withNextHopType

        public HubRoute withNextHopType​(String nextHopType)
        Set the nextHopType property: The type of next hop (eg: ResourceId).
        Parameters:
        nextHopType - the nextHopType value to set.
        Returns:
        the HubRoute object itself.
      • nextHop

        public String nextHop()
        Get the nextHop property: NextHop resource ID.
        Returns:
        the nextHop value.
      • withNextHop

        public HubRoute withNextHop​(String nextHop)
        Set the nextHop property: NextHop resource ID.
        Parameters:
        nextHop - the nextHop value to set.
        Returns:
        the HubRoute object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.