Class ImportedWindowsAutopilotDeviceIdentity

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

    public class ImportedWindowsAutopilotDeviceIdentity
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Imported windows autopilot devices.”
    • Constructor Detail

      • ImportedWindowsAutopilotDeviceIdentity

        protected ImportedWindowsAutopilotDeviceIdentity()
    • Method Detail

      • odataTypeName

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

        public static ImportedWindowsAutopilotDeviceIdentity.Builder builderImportedWindowsAutopilotDeviceIdentity()
        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 Entity
      • postInject

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

        public Optional<String> getAssignedUserPrincipalName()
        “UPN of the user the device will be assigned”
        Returns:
        property assignedUserPrincipalName
      • withAssignedUserPrincipalName

        public ImportedWindowsAutopilotDeviceIdentity withAssignedUserPrincipalName​(String assignedUserPrincipalName)
        Returns an immutable copy of this with just the assignedUserPrincipalName 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.

        “UPN of the user the device will be assigned”

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

        public Optional<String> getGroupTag()
        “Group Tag of the Windows autopilot device.”
        Returns:
        property groupTag
      • withGroupTag

        public ImportedWindowsAutopilotDeviceIdentity withGroupTag​(String groupTag)
        Returns an immutable copy of this with just the groupTag 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.

        “Group Tag of the Windows autopilot device.”

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

        public Optional<byte[]> getHardwareIdentifier()
        “Hardware Blob of the Windows autopilot device.”
        Returns:
        property hardwareIdentifier
      • withHardwareIdentifier

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

        “Hardware Blob of the Windows autopilot device.”

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

        public Optional<String> getImportId()
        “The Import Id of the Windows autopilot device.”
        Returns:
        property importId
      • withImportId

        public ImportedWindowsAutopilotDeviceIdentity withImportId​(String importId)
        Returns an immutable copy of this with just the importId 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.

        “The Import Id of the Windows autopilot device.”

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

        public Optional<String> getProductKey()
        “Product Key of the Windows autopilot device.”
        Returns:
        property productKey
      • withProductKey

        public ImportedWindowsAutopilotDeviceIdentity withProductKey​(String productKey)
        Returns an immutable copy of this with just the productKey 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.

        “Product Key of the Windows autopilot device.”

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

        public Optional<String> getSerialNumber()
        “Serial number of the Windows autopilot device.”
        Returns:
        property serialNumber
      • withSerialNumber

        public ImportedWindowsAutopilotDeviceIdentity withSerialNumber​(String serialNumber)
        Returns an immutable copy of this with just the serialNumber 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.

        “Serial number of the Windows autopilot device.”

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

        public ImportedWindowsAutopilotDeviceIdentity withState​(ImportedWindowsAutopilotDeviceIdentityState state)
        Returns an immutable copy of this with just the state 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.

        “Current state of the imported device.”

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

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