Class AndroidWiFiConfiguration

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

    public class AndroidWiFiConfiguration
    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 Wi-Fi endpoint. By specifying the authentication method and security types expected by Wi-Fi endpoint you can make the Wi-Fi connection seamless for end user. This profile provides limited and simpler security types than Enterprise Wi-Fi profile.”
    • Field Detail

      • connectAutomatically

        protected Boolean connectAutomatically
      • connectWhenNetworkNameIsHidden

        protected Boolean connectWhenNetworkNameIsHidden
      • networkName

        protected String networkName
    • Constructor Detail

      • AndroidWiFiConfiguration

        protected AndroidWiFiConfiguration()
    • Method Detail

      • odataTypeName

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

        public static AndroidWiFiConfiguration.Builder builderAndroidWiFiConfiguration()
        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
      • getConnectAutomatically

        public Optional<Boolean> getConnectAutomatically()
        “Connect automatically when this network is in range. Setting this to true will skip the user prompt and automatically connect the device to Wi-Fi network.”
        Returns:
        property connectAutomatically
      • withConnectAutomatically

        public AndroidWiFiConfiguration withConnectAutomatically​(Boolean connectAutomatically)
        Returns an immutable copy of this with just the connectAutomatically 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.

        “Connect automatically when this network is in range. Setting this to true will skip the user prompt and automatically connect the device to Wi-Fi network.”

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

        public Optional<Boolean> getConnectWhenNetworkNameIsHidden()
        “When set to true, this profile forces the device to connect to a network that doesn't broadcast its SSID to all devices.”
        Returns:
        property connectWhenNetworkNameIsHidden
      • withConnectWhenNetworkNameIsHidden

        public AndroidWiFiConfiguration withConnectWhenNetworkNameIsHidden​(Boolean connectWhenNetworkNameIsHidden)
        Returns an immutable copy of this with just the connectWhenNetworkNameIsHidden 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.

        “When set to true, this profile forces the device to connect to a network that doesn't broadcast its SSID to all devices.”

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

        public Optional<String> getNetworkName()
        “Network Name”
        Returns:
        property networkName
      • withNetworkName

        public AndroidWiFiConfiguration withNetworkName​(String networkName)
        Returns an immutable copy of this with just the networkName 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.

        “Network Name”

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

        public Optional<String> getSsid()
        “This is the name of the Wi-Fi network that is broadcast to all devices.”
        Returns:
        property ssid
      • withSsid

        public AndroidWiFiConfiguration withSsid​(String ssid)
        Returns an immutable copy of this with just the ssid 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.

        “This is the name of the Wi-Fi network that is broadcast to all devices.”

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

        public Optional<AndroidWiFiSecurityType> getWiFiSecurityType()
        “Indicates whether Wi-Fi endpoint uses an EAP based security type.”
        Returns:
        property wiFiSecurityType
      • withWiFiSecurityType

        public AndroidWiFiConfiguration withWiFiSecurityType​(AndroidWiFiSecurityType wiFiSecurityType)
        Returns an immutable copy of this with just the wiFiSecurityType 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.

        “Indicates whether Wi-Fi endpoint uses an EAP based security type.”

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