Class VpnTrafficRule

  • All Implemented Interfaces:
    com.github.davidmoten.odata.client.ODataType

    public class VpnTrafficRule
    extends Object
    implements com.github.davidmoten.odata.client.ODataType
    “VPN Traffic Rule definition.”
    • Field Detail

      • contextPath

        protected com.github.davidmoten.odata.client.ContextPath contextPath
      • unmappedFields

        protected com.github.davidmoten.odata.client.internal.UnmappedFieldsImpl unmappedFields
      • odataType

        protected String odataType
      • appId

        protected String appId
      • claims

        protected String claims
      • localAddressRanges

        protected List<IPv4Range> localAddressRanges
      • localAddressRangesNextLink

        protected String localAddressRangesNextLink
      • localPortRangesNextLink

        protected String localPortRangesNextLink
      • protocols

        protected Integer protocols
      • remoteAddressRanges

        protected List<IPv4Range> remoteAddressRanges
      • remoteAddressRangesNextLink

        protected String remoteAddressRangesNextLink
      • remotePortRangesNextLink

        protected String remotePortRangesNextLink
    • Constructor Detail

      • VpnTrafficRule

        protected VpnTrafficRule()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
      • getAppId

        public Optional<String> getAppId()
        “App identifier, if this traffic rule is triggered by an app.”
        Returns:
        property appId
      • withAppId

        public VpnTrafficRule withAppId​(String appId)
        Returns an immutable copy of this with just the appId field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “App identifier, if this traffic rule is triggered by an app.”

        Parameters:
        appId - new value of appId field (as defined in service metadata)
        Returns:
        immutable copy of this with just the appId field changed
      • getAppType

        public Optional<VpnTrafficRuleAppType> getAppType()
        “App type, if this traffic rule is triggered by an app.”
        Returns:
        property appType
      • withAppType

        public VpnTrafficRule withAppType​(VpnTrafficRuleAppType appType)
        Returns an immutable copy of this with just the appType field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “App type, if this traffic rule is triggered by an app.”

        Parameters:
        appType - new value of appType field (as defined in service metadata)
        Returns:
        immutable copy of this with just the appType field changed
      • getClaims

        public Optional<String> getClaims()
        “Claims associated with this traffic rule.”
        Returns:
        property claims
      • withClaims

        public VpnTrafficRule withClaims​(String claims)
        Returns an immutable copy of this with just the claims field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “Claims associated with this traffic rule.”

        Parameters:
        claims - new value of claims field (as defined in service metadata)
        Returns:
        immutable copy of this with just the claims field changed
      • getLocalAddressRanges

        public com.github.davidmoten.odata.client.CollectionPage<IPv4Range> getLocalAddressRanges()
        “Local address range. This collection can contain a maximum of 500 elements.”
        Returns:
        property localAddressRanges
      • getLocalAddressRanges

        public com.github.davidmoten.odata.client.CollectionPage<IPv4Range> getLocalAddressRanges​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “Local address range. This collection can contain a maximum of 500 elements.”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property localAddressRanges
      • getLocalPortRanges

        public com.github.davidmoten.odata.client.CollectionPage<NumberRange> getLocalPortRanges()
        “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.”
        Returns:
        property localPortRanges
      • getLocalPortRanges

        public com.github.davidmoten.odata.client.CollectionPage<NumberRange> getLocalPortRanges​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “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:
        options - specify connect and read timeouts
        Returns:
        property localPortRanges
      • getName

        public Optional<String> getName()
        “Name.”
        Returns:
        property name
      • withName

        public VpnTrafficRule withName​(String name)
        Returns an immutable copy of this with just the name field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “Name.”

        Parameters:
        name - new value of name field (as defined in service metadata)
        Returns:
        immutable copy of this with just the name field changed
      • getProtocols

        public Optional<Integer> getProtocols()
        “Protocols (0-255). Valid values 0 to 255”
        Returns:
        property protocols
      • withProtocols

        public VpnTrafficRule withProtocols​(Integer protocols)
        Returns an immutable copy of this with just the protocols field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “Protocols (0-255). Valid values 0 to 255”

        Parameters:
        protocols - new value of protocols field (as defined in service metadata)
        Returns:
        immutable copy of this with just the protocols field changed
      • getRemoteAddressRanges

        public com.github.davidmoten.odata.client.CollectionPage<IPv4Range> getRemoteAddressRanges()
        “Remote address range. This collection can contain a maximum of 500 elements.”
        Returns:
        property remoteAddressRanges
      • getRemoteAddressRanges

        public com.github.davidmoten.odata.client.CollectionPage<IPv4Range> getRemoteAddressRanges​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “Remote address range. This collection can contain a maximum of 500 elements.”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property remoteAddressRanges
      • getRemotePortRanges

        public com.github.davidmoten.odata.client.CollectionPage<NumberRange> getRemotePortRanges()
        “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.”
        Returns:
        property remotePortRanges
      • getRemotePortRanges

        public com.github.davidmoten.odata.client.CollectionPage<NumberRange> getRemotePortRanges​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “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:
        options - specify connect and read timeouts
        Returns:
        property remotePortRanges
      • getRoutingPolicyType

        public Optional<VpnTrafficRuleRoutingPolicyType> getRoutingPolicyType()
        “When app triggered, indicates whether to enable split tunneling along this route .”
        Returns:
        property routingPolicyType
      • withRoutingPolicyType

        public VpnTrafficRule withRoutingPolicyType​(VpnTrafficRuleRoutingPolicyType routingPolicyType)
        Returns an immutable copy of this with just the routingPolicyType field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “When app triggered, indicates whether to enable split tunneling along this route .”

        Parameters:
        routingPolicyType - new value of routingPolicyType field (as defined in service metadata)
        Returns:
        immutable copy of this with just the routingPolicyType field changed
      • getUnmappedFields

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
      • postInject

        public void postInject​(boolean addKeysToContextPath)
        Specified by:
        postInject in interface com.github.davidmoten.odata.client.ODataType
      • builder

        public static VpnTrafficRule.Builder builder()
        Returns a builder which is used to create a new instance of this class (given that this class is immutable).
        Returns:
        a new Builder for this class