Class WindowsVpnConfiguration

  • All Implemented Interfaces:
    com.github.davidmoten.odata.client.ODataEntityType, com.github.davidmoten.odata.client.ODataType
    Direct Known Subclasses:
    Windows10VpnConfiguration, Windows81VpnConfiguration

    public class WindowsVpnConfiguration
    extends DeviceConfiguration
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Windows VPN configuration profile.”
    • Field Detail

      • connectionName

        protected String connectionName
      • customXml

        protected byte[] customXml
      • serversNextLink

        protected String serversNextLink
    • Constructor Detail

      • WindowsVpnConfiguration

        protected WindowsVpnConfiguration()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        odataTypeName in class DeviceConfiguration
      • getChangedFields

        public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
        Specified by:
        getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityType
        Overrides:
        getChangedFields in class DeviceConfiguration
      • postInject

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

        public Optional<String> getConnectionName()
        “Connection name displayed to the user.”
        Returns:
        property connectionName
      • withConnectionName

        public WindowsVpnConfiguration withConnectionName​(String connectionName)
        Returns an immutable copy of this with just the connectionName 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.

        “Connection name displayed to the user.”

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

        public Optional<byte[]> getCustomXml()
        “Custom XML commands that configures the VPN connection. (UTF8 encoded byte array )”
        Returns:
        property customXml
      • withCustomXml

        public WindowsVpnConfiguration withCustomXml​(byte[] customXml)
        Returns an immutable copy of this with just the customXml 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.

        “Custom XML commands that configures the VPN connection. (UTF8 encoded byte array )”

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

        public com.github.davidmoten.odata.client.CollectionPage<VpnServer> getServers()
        “List of VPN Servers on the network. Make sure end users can access these network locations. This collection can contain a maximum of 500 elements.”
        Returns:
        property servers
      • withServers

        public WindowsVpnConfiguration withServers​(List<VpnServer> servers)
        Returns an immutable copy of this with just the servers 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.

        “List of VPN Servers on the network. Make sure end users can access these network locations. This collection can contain a maximum of 500 elements.”

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

        public com.github.davidmoten.odata.client.CollectionPage<VpnServer> getServers​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “List of VPN Servers on the network. Make sure end users can access these network locations. This collection can contain a maximum of 500 elements.”
        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
        Overrides:
        getUnmappedFields in class DeviceConfiguration
      • patch

        public WindowsVpnConfiguration patch()
        Submits only changed fields for update and returns an immutable copy of this with changed fields reset.
        Overrides:
        patch in class DeviceConfiguration
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected
      • put

        public WindowsVpnConfiguration put()
        Submits all fields for update and returns an immutable copy of this with changed fields reset (they were ignored anyway).
        Overrides:
        put in class DeviceConfiguration
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected