Class AndroidForWorkVpnConfiguration

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

    public class AndroidForWorkVpnConfiguration
    extends DeviceConfiguration
    implements com.github.davidmoten.odata.client.ODataEntityType
    “By providing the configurations in this profile you can instruct the Android device to connect to desired VPN endpoint. By specifying the authentication method and security types expected by VPN endpoint you can make the VPN connection seamless for end user.”
    • Constructor Detail

      • AndroidForWorkVpnConfiguration

        protected AndroidForWorkVpnConfiguration()
    • Method Detail

      • odataTypeName

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

        public static AndroidForWorkVpnConfiguration.Builder builderAndroidForWorkVpnConfiguration()
        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
      • 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 AndroidForWorkVpnConfiguration 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 AndroidForWorkVpnConfiguration 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
      • withConnectionType

        public AndroidForWorkVpnConfiguration withConnectionType​(AndroidForWorkVpnConnectionType connectionType)
        Returns an immutable copy of this with just the connectionType 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 type.”

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

        public com.github.davidmoten.odata.client.CollectionPage<KeyValue> getCustomData()
        “Custom data when connection type is set to Citrix. This collection can contain a maximum of 25 elements.”
        Returns:
        property customData
      • withCustomData

        public AndroidForWorkVpnConfiguration withCustomData​(List<KeyValue> customData)
        Returns an immutable copy of this with just the customData 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 data when connection type is set to Citrix. This collection can contain a maximum of 25 elements.”

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

        public com.github.davidmoten.odata.client.CollectionPage<KeyValue> getCustomData​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “Custom data when connection type is set to Citrix. This collection can contain a maximum of 25 elements.”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property customData
      • getCustomKeyValueData

        public com.github.davidmoten.odata.client.CollectionPage<KeyValuePair> getCustomKeyValueData()
        “Custom data when connection type is set to Citrix. This collection can contain a maximum of 25 elements.”
        Returns:
        property customKeyValueData
      • withCustomKeyValueData

        public AndroidForWorkVpnConfiguration withCustomKeyValueData​(List<KeyValuePair> customKeyValueData)
        Returns an immutable copy of this with just the customKeyValueData 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 data when connection type is set to Citrix. This collection can contain a maximum of 25 elements.”

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

        public com.github.davidmoten.odata.client.CollectionPage<KeyValuePair> getCustomKeyValueData​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “Custom data when connection type is set to Citrix. This collection can contain a maximum of 25 elements.”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property customKeyValueData
      • getFingerprint

        public Optional<String> getFingerprint()
        “Fingerprint is a string that will be used to verify the VPN server can be trusted, which is only applicable when connection type is Check Point Capsule VPN.”
        Returns:
        property fingerprint
      • withFingerprint

        public AndroidForWorkVpnConfiguration withFingerprint​(String fingerprint)
        Returns an immutable copy of this with just the fingerprint 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.

        “Fingerprint is a string that will be used to verify the VPN server can be trusted, which is only applicable when connection type is Check Point Capsule VPN.”

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

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

        public AndroidForWorkVpnConfiguration 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 AndroidForWorkVpnConfiguration 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 AndroidForWorkVpnConfiguration 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
      • getIdentityCertificate

        public AndroidForWorkCertificateProfileBaseRequest getIdentityCertificate()
        “Identity certificate for client authentication when authentication method is certificate.”
        Returns:
        navigational property identityCertificate
      • 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 AndroidForWorkVpnConfiguration 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 AndroidForWorkVpnConfiguration 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