Class Windows81WifiImportConfiguration

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

    public class Windows81WifiImportConfiguration
    extends DeviceConfiguration
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Windows 8.1+ Wi-Fi import configuration. By configuring this profile you can instruct Windows 8.1 (and later) devices to connect to desired Wi-Fi endpoint. Connect a Windows 8.1 device to the desired Wi-Fi network and extract the XML from that device to later embed into this Wi-Fi profile.”
    • Field Detail

      • payload

        protected byte[] payload
      • payloadFileName

        protected String payloadFileName
      • profileName

        protected String profileName
    • Constructor Detail

      • Windows81WifiImportConfiguration

        protected Windows81WifiImportConfiguration()
    • Method Detail

      • odataTypeName

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

        public static Windows81WifiImportConfiguration.Builder builderWindows81WifiImportConfiguration()
        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
      • getPayload

        public Optional<byte[]> getPayload()
        “Payload. (UTF8 encoded byte array). This is the XML file saved on the device you used to connect to the Wi-Fi endpoint.”
        Returns:
        property payload
      • withPayload

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

        “Payload. (UTF8 encoded byte array). This is the XML file saved on the device you used to connect to the Wi-Fi endpoint.”

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

        public Optional<String> getPayloadFileName()
        “Payload file name (*.xml).”
        Returns:
        property payloadFileName
      • withPayloadFileName

        public Windows81WifiImportConfiguration withPayloadFileName​(String payloadFileName)
        Returns an immutable copy of this with just the payloadFileName 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.

        “Payload file name (*.xml).”

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

        public Optional<String> getProfileName()
        “Profile name displayed in the UI.”
        Returns:
        property profileName
      • withProfileName

        public Windows81WifiImportConfiguration withProfileName​(String profileName)
        Returns an immutable copy of this with just the profileName 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.

        “Profile name displayed in the UI.”

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