Class AndroidDeviceOwnerVpnConfiguration

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

    public class AndroidDeviceOwnerVpnConfiguration
    extends VpnConfiguration
    implements com.github.davidmoten.odata.client.ODataEntityType
    “By providing the configurations in this profile you can instruct the Android Fully Managed 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.”
    • Field Detail

      • alwaysOn

        protected Boolean alwaysOn
      • alwaysOnLockdown

        protected Boolean alwaysOnLockdown
      • customDataNextLink

        protected String customDataNextLink
      • customKeyValueDataNextLink

        protected String customKeyValueDataNextLink
      • microsoftTunnelSiteId

        protected String microsoftTunnelSiteId
      • targetedMobileAppsNextLink

        protected String targetedMobileAppsNextLink
      • targetedPackageIds

        protected List<String> targetedPackageIds
      • targetedPackageIdsNextLink

        protected String targetedPackageIdsNextLink
    • Constructor Detail

      • AndroidDeviceOwnerVpnConfiguration

        protected AndroidDeviceOwnerVpnConfiguration()
    • Method Detail

      • odataTypeName

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

        public static AndroidDeviceOwnerVpnConfiguration.Builder builderAndroidDeviceOwnerVpnConfiguration()
        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 VpnConfiguration
      • postInject

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

        public Optional<Boolean> getAlwaysOn()
        “Whether or not to enable always-on VPN connection.”
        Returns:
        property alwaysOn
      • withAlwaysOn

        public AndroidDeviceOwnerVpnConfiguration withAlwaysOn​(Boolean alwaysOn)
        Returns an immutable copy of this with just the alwaysOn 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.

        “Whether or not to enable always-on VPN connection.”

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

        public Optional<Boolean> getAlwaysOnLockdown()
        “If always-on VPN connection is enabled, whether or not to lock network traffic when that VPN is disconnected.”
        Returns:
        property alwaysOnLockdown
      • withAlwaysOnLockdown

        public AndroidDeviceOwnerVpnConfiguration withAlwaysOnLockdown​(Boolean alwaysOnLockdown)
        Returns an immutable copy of this with just the alwaysOnLockdown 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.

        “If always-on VPN connection is enabled, whether or not to lock network traffic when that VPN is disconnected.”

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

        public AndroidDeviceOwnerVpnConfiguration withConnectionType​(AndroidVpnConnectionType 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 to define key/value pairs specific to a VPN provider. This collection can contain a maximum of 25 elements.”
        Returns:
        property customData
      • withCustomData

        public AndroidDeviceOwnerVpnConfiguration 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 to define key/value pairs specific to a VPN provider. 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 to define key/value pairs specific to a VPN provider. 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 to define key/value pairs specific to a VPN provider. This collection can contain a maximum of 25 elements.”
        Returns:
        property customKeyValueData
      • withCustomKeyValueData

        public AndroidDeviceOwnerVpnConfiguration 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 to define key/value pairs specific to a VPN provider. 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 to define key/value pairs specific to a VPN provider. This collection can contain a maximum of 25 elements.”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property customKeyValueData
      • getMicrosoftTunnelSiteId

        public Optional<String> getMicrosoftTunnelSiteId()
        “Microsoft Tunnel site ID.”
        Returns:
        property microsoftTunnelSiteId
      • withMicrosoftTunnelSiteId

        public AndroidDeviceOwnerVpnConfiguration withMicrosoftTunnelSiteId​(String microsoftTunnelSiteId)
        Returns an immutable copy of this with just the microsoftTunnelSiteId 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.

        “Microsoft Tunnel site ID.”

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

        public Optional<VpnProxyServer> getProxyServer()
        “Proxy server.”
        Returns:
        property proxyServer
      • withProxyServer

        public AndroidDeviceOwnerVpnConfiguration withProxyServer​(VpnProxyServer proxyServer)
        Returns an immutable copy of this with just the proxyServer 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.”

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

        public com.github.davidmoten.odata.client.CollectionPage<AppListItem> getTargetedMobileApps()
        “Targeted mobile apps. This collection can contain a maximum of 500 elements.”
        Returns:
        property targetedMobileApps
      • withTargetedMobileApps

        public AndroidDeviceOwnerVpnConfiguration withTargetedMobileApps​(List<AppListItem> targetedMobileApps)
        Returns an immutable copy of this with just the targetedMobileApps 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.

        “Targeted mobile apps. This collection can contain a maximum of 500 elements.”

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

        public com.github.davidmoten.odata.client.CollectionPage<AppListItem> getTargetedMobileApps​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “Targeted mobile apps. This collection can contain a maximum of 500 elements.”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property targetedMobileApps
      • getTargetedPackageIds

        public com.github.davidmoten.odata.client.CollectionPage<String> getTargetedPackageIds()
        “Targeted App package IDs.”
        Returns:
        property targetedPackageIds
      • withTargetedPackageIds

        public AndroidDeviceOwnerVpnConfiguration withTargetedPackageIds​(List<String> targetedPackageIds)
        Returns an immutable copy of this with just the targetedPackageIds 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.

        “Targeted App package IDs.”

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

        public com.github.davidmoten.odata.client.CollectionPage<String> getTargetedPackageIds​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “Targeted App package IDs.”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property targetedPackageIds
      • getDerivedCredentialSettings

        public DeviceManagementDerivedCredentialSettingsRequest getDerivedCredentialSettings()
        “Tenant level settings for the Derived Credentials to be used for authentication.”
        Returns:
        navigational property derivedCredentialSettings
      • getIdentityCertificate

        public AndroidDeviceOwnerCertificateProfileBaseRequest 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 VpnConfiguration
      • patch

        public AndroidDeviceOwnerVpnConfiguration patch()
        Submits only changed fields for update and returns an immutable copy of this with changed fields reset.
        Overrides:
        patch in class VpnConfiguration
        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 AndroidDeviceOwnerVpnConfiguration 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 VpnConfiguration
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected