Class VpnConfiguration

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

    public class VpnConfiguration
    extends DeviceConfiguration
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Base VPN Configuration profile.”
    • Constructor Detail

      • VpnConfiguration

        protected VpnConfiguration()
    • 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
      • getAuthenticationMethod

        public Optional<VpnAuthenticationMethod> getAuthenticationMethod()
        “Authentication method.”
        Returns:
        property authenticationMethod
      • withAuthenticationMethod

        public VpnConfiguration withAuthenticationMethod​(VpnAuthenticationMethod authenticationMethod)
        Returns an immutable copy of this with just the authenticationMethod 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.

        “Authentication method.”

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

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

        public VpnConfiguration 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
      • getRealm

        public Optional<String> getRealm()
        “Realm when connection type is set to Pulse Secure.”
        Returns:
        property realm
      • withRealm

        public VpnConfiguration withRealm​(String realm)
        Returns an immutable copy of this with just the realm 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.

        “Realm when connection type is set to Pulse Secure.”

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

        public Optional<String> getRole()
        “Role when connection type is set to Pulse Secure.”
        Returns:
        property role
      • withRole

        public VpnConfiguration withRole​(String role)
        Returns an immutable copy of this with just the role 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.

        “Role when connection type is set to Pulse Secure.”

        Parameters:
        role - new value of role field (as defined in service metadata)
        Returns:
        immutable copy of this with just the role 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 VpnConfiguration 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 VpnConfiguration 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 VpnConfiguration 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