Class VpnTrafficRule.Builder

    • Method Detail

      • appId

        public VpnTrafficRule.Builder appId​(String appId)
        “App identifier, if this traffic rule is triggered by an app.”
        Parameters:
        appId - value of appId property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • appType

        public VpnTrafficRule.Builder appType​(VpnTrafficRuleAppType appType)
        “App type, if this traffic rule is triggered by an app.”
        Parameters:
        appType - value of appType property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • claims

        public VpnTrafficRule.Builder claims​(String claims)
        “Claims associated with this traffic rule.”
        Parameters:
        claims - value of claims property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • localAddressRanges

        public VpnTrafficRule.Builder localAddressRanges​(List<IPv4Range> localAddressRanges)
        “Local address range. This collection can contain a maximum of 500 elements.”
        Parameters:
        localAddressRanges - value of localAddressRanges property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • localAddressRanges

        public VpnTrafficRule.Builder localAddressRanges​(IPv4Range... localAddressRanges)
        “Local address range. This collection can contain a maximum of 500 elements.”
        Parameters:
        localAddressRanges - value of localAddressRanges property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • localAddressRangesNextLink

        public VpnTrafficRule.Builder localAddressRangesNextLink​(String localAddressRangesNextLink)
        “Local address range. This collection can contain a maximum of 500 elements.”
        Parameters:
        localAddressRangesNextLink - value of localAddressRanges@nextLink property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • localPortRanges

        public VpnTrafficRule.Builder localPortRanges​(List<NumberRange> localPortRanges)
        “Local port range can be set only when protocol is either TCP or UDP (6 or 17). This collection can contain a maximum of 500 elements.”
        Parameters:
        localPortRanges - value of localPortRanges property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • localPortRanges

        public VpnTrafficRule.Builder localPortRanges​(NumberRange... localPortRanges)
        “Local port range can be set only when protocol is either TCP or UDP (6 or 17). This collection can contain a maximum of 500 elements.”
        Parameters:
        localPortRanges - value of localPortRanges property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • localPortRangesNextLink

        public VpnTrafficRule.Builder localPortRangesNextLink​(String localPortRangesNextLink)
        “Local port range can be set only when protocol is either TCP or UDP (6 or 17). This collection can contain a maximum of 500 elements.”
        Parameters:
        localPortRangesNextLink - value of localPortRanges@nextLink property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • name

        public VpnTrafficRule.Builder name​(String name)
        “Name.”
        Parameters:
        name - value of name property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • protocols

        public VpnTrafficRule.Builder protocols​(Integer protocols)
        “Protocols (0-255). Valid values 0 to 255”
        Parameters:
        protocols - value of protocols property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • remoteAddressRanges

        public VpnTrafficRule.Builder remoteAddressRanges​(List<IPv4Range> remoteAddressRanges)
        “Remote address range. This collection can contain a maximum of 500 elements.”
        Parameters:
        remoteAddressRanges - value of remoteAddressRanges property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • remoteAddressRanges

        public VpnTrafficRule.Builder remoteAddressRanges​(IPv4Range... remoteAddressRanges)
        “Remote address range. This collection can contain a maximum of 500 elements.”
        Parameters:
        remoteAddressRanges - value of remoteAddressRanges property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • remoteAddressRangesNextLink

        public VpnTrafficRule.Builder remoteAddressRangesNextLink​(String remoteAddressRangesNextLink)
        “Remote address range. This collection can contain a maximum of 500 elements.”
        Parameters:
        remoteAddressRangesNextLink - value of remoteAddressRanges@nextLink property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • remotePortRanges

        public VpnTrafficRule.Builder remotePortRanges​(List<NumberRange> remotePortRanges)
        “Remote port range can be set only when protocol is either TCP or UDP (6 or 17). This collection can contain a maximum of 500 elements.”
        Parameters:
        remotePortRanges - value of remotePortRanges property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • remotePortRanges

        public VpnTrafficRule.Builder remotePortRanges​(NumberRange... remotePortRanges)
        “Remote port range can be set only when protocol is either TCP or UDP (6 or 17). This collection can contain a maximum of 500 elements.”
        Parameters:
        remotePortRanges - value of remotePortRanges property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • remotePortRangesNextLink

        public VpnTrafficRule.Builder remotePortRangesNextLink​(String remotePortRangesNextLink)
        “Remote port range can be set only when protocol is either TCP or UDP (6 or 17). This collection can contain a maximum of 500 elements.”
        Parameters:
        remotePortRangesNextLink - value of remotePortRanges@nextLink property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • routingPolicyType

        public VpnTrafficRule.Builder routingPolicyType​(VpnTrafficRuleRoutingPolicyType routingPolicyType)
        “When app triggered, indicates whether to enable split tunneling along this route .”
        Parameters:
        routingPolicyType - value of routingPolicyType property (as defined in service metadata)
        Returns:
        this (for method chaining)