Class VpnDnsRule

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

    public class VpnDnsRule
    extends Object
    implements com.github.davidmoten.odata.client.ODataType
    “VPN DNS 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
      • autoTrigger

        protected Boolean autoTrigger
      • persistent

        protected Boolean persistent
      • proxyServerUri

        protected String proxyServerUri
      • serversNextLink

        protected String serversNextLink
    • Constructor Detail

      • VpnDnsRule

        protected VpnDnsRule()
    • Method Detail

      • odataTypeName

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

        public Optional<Boolean> getAutoTrigger()
        “Automatically connect to the VPN when the device connects to this domain: Default False.”
        Returns:
        property autoTrigger
      • withAutoTrigger

        public VpnDnsRule withAutoTrigger​(Boolean autoTrigger)
        Returns an immutable copy of this with just the autoTrigger 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.

        “Automatically connect to the VPN when the device connects to this domain: Default False.”

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

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

        public VpnDnsRule 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
      • getPersistent

        public Optional<Boolean> getPersistent()
        “Keep this rule active even when the VPN is not connected: Default False”
        Returns:
        property persistent
      • withPersistent

        public VpnDnsRule withPersistent​(Boolean persistent)
        Returns an immutable copy of this with just the persistent 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.

        “Keep this rule active even when the VPN is not connected: Default False”

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

        public Optional<String> getProxyServerUri()
        “Proxy Server Uri.”
        Returns:
        property proxyServerUri
      • withProxyServerUri

        public VpnDnsRule withProxyServerUri​(String proxyServerUri)
        Returns an immutable copy of this with just the proxyServerUri 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.

        “Proxy Server Uri.”

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

        public com.github.davidmoten.odata.client.CollectionPage<String> getServers()
        “Servers.”
        Returns:
        property servers
      • getServers

        public com.github.davidmoten.odata.client.CollectionPage<String> getServers​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “Servers.”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property servers
      • 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 VpnDnsRule.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