Class TrafficSelectorPolicy


  • public final class TrafficSelectorPolicy
    extends Object
    An traffic selector policy for a virtual network gateway connection.
    • Constructor Detail

      • TrafficSelectorPolicy

        public TrafficSelectorPolicy()
    • Method Detail

      • localAddressRanges

        public List<String> localAddressRanges()
        Get the localAddressRanges property: A collection of local address spaces in CIDR format.
        Returns:
        the localAddressRanges value.
      • withLocalAddressRanges

        public TrafficSelectorPolicy withLocalAddressRanges​(List<String> localAddressRanges)
        Set the localAddressRanges property: A collection of local address spaces in CIDR format.
        Parameters:
        localAddressRanges - the localAddressRanges value to set.
        Returns:
        the TrafficSelectorPolicy object itself.
      • remoteAddressRanges

        public List<String> remoteAddressRanges()
        Get the remoteAddressRanges property: A collection of remote address spaces in CIDR format.
        Returns:
        the remoteAddressRanges value.
      • withRemoteAddressRanges

        public TrafficSelectorPolicy withRemoteAddressRanges​(List<String> remoteAddressRanges)
        Set the remoteAddressRanges property: A collection of remote address spaces in CIDR format.
        Parameters:
        remoteAddressRanges - the remoteAddressRanges value to set.
        Returns:
        the TrafficSelectorPolicy object itself.
      • validate

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