Class WindowsAutopilotDeviceIdentity

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

    public class WindowsAutopilotDeviceIdentity
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “The windowsAutopilotDeviceIdentity resource represents a Windows Autopilot Device.”
    • Field Detail

      • addressableUserName

        protected String addressableUserName
      • azureActiveDirectoryDeviceId

        protected String azureActiveDirectoryDeviceId
      • displayName

        protected String displayName
      • groupTag

        protected String groupTag
      • lastContactedDateTime

        protected OffsetDateTime lastContactedDateTime
      • managedDeviceId

        protected String managedDeviceId
      • manufacturer

        protected String manufacturer
      • model

        protected String model
      • productKey

        protected String productKey
      • purchaseOrderIdentifier

        protected String purchaseOrderIdentifier
      • resourceName

        protected String resourceName
      • serialNumber

        protected String serialNumber
      • skuNumber

        protected String skuNumber
      • systemFamily

        protected String systemFamily
      • userPrincipalName

        protected String userPrincipalName
    • Constructor Detail

      • WindowsAutopilotDeviceIdentity

        protected WindowsAutopilotDeviceIdentity()
    • Method Detail

      • odataTypeName

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

        public static WindowsAutopilotDeviceIdentity.Builder builderWindowsAutopilotDeviceIdentity()
        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
      • getAddressableUserName

        public Optional<String> getAddressableUserName()
        “Addressable user name.”
        Returns:
        property addressableUserName
      • withAddressableUserName

        public WindowsAutopilotDeviceIdentity withAddressableUserName​(String addressableUserName)
        Returns an immutable copy of this with just the addressableUserName 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.

        “Addressable user name.”

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

        public Optional<String> getAzureActiveDirectoryDeviceId()
        “AAD Device ID - to be deprecated”
        Returns:
        property azureActiveDirectoryDeviceId
      • withAzureActiveDirectoryDeviceId

        public WindowsAutopilotDeviceIdentity withAzureActiveDirectoryDeviceId​(String azureActiveDirectoryDeviceId)
        Returns an immutable copy of this with just the azureActiveDirectoryDeviceId 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.

        “AAD Device ID - to be deprecated”

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

        public Optional<String> getDisplayName()
        “Display Name”
        Returns:
        property displayName
      • withDisplayName

        public WindowsAutopilotDeviceIdentity withDisplayName​(String displayName)
        Returns an immutable copy of this with just the displayName 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.

        “Display Name”

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

        public Optional<EnrollmentState> getEnrollmentState()
        “Intune enrollment state of the Windows autopilot device.”
        Returns:
        property enrollmentState
      • withEnrollmentState

        public WindowsAutopilotDeviceIdentity withEnrollmentState​(EnrollmentState enrollmentState)
        Returns an immutable copy of this with just the enrollmentState 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.

        “Intune enrollment state of the Windows autopilot device.”

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

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

        public WindowsAutopilotDeviceIdentity 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
      • getLastContactedDateTime

        public Optional<OffsetDateTime> getLastContactedDateTime()
        “Intune Last Contacted Date Time of the Windows autopilot device.”
        Returns:
        property lastContactedDateTime
      • withLastContactedDateTime

        public WindowsAutopilotDeviceIdentity withLastContactedDateTime​(OffsetDateTime lastContactedDateTime)
        Returns an immutable copy of this with just the lastContactedDateTime 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.

        “Intune Last Contacted Date Time of the Windows autopilot device.”

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

        public Optional<String> getManagedDeviceId()
        “Managed Device ID”
        Returns:
        property managedDeviceId
      • withManagedDeviceId

        public WindowsAutopilotDeviceIdentity withManagedDeviceId​(String managedDeviceId)
        Returns an immutable copy of this with just the managedDeviceId 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.

        “Managed Device ID”

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

        public Optional<String> getManufacturer()
        “Oem manufacturer of the Windows autopilot device.”
        Returns:
        property manufacturer
      • withManufacturer

        public WindowsAutopilotDeviceIdentity withManufacturer​(String manufacturer)
        Returns an immutable copy of this with just the manufacturer 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.

        “Oem manufacturer of the Windows autopilot device.”

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

        public Optional<String> getModel()
        “Model name of the Windows autopilot device.”
        Returns:
        property model
      • withModel

        public WindowsAutopilotDeviceIdentity withModel​(String model)
        Returns an immutable copy of this with just the model 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.

        “Model name of the Windows autopilot device.”

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

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

        public WindowsAutopilotDeviceIdentity 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
      • getPurchaseOrderIdentifier

        public Optional<String> getPurchaseOrderIdentifier()
        “Purchase Order Identifier of the Windows autopilot device.”
        Returns:
        property purchaseOrderIdentifier
      • withPurchaseOrderIdentifier

        public WindowsAutopilotDeviceIdentity withPurchaseOrderIdentifier​(String purchaseOrderIdentifier)
        Returns an immutable copy of this with just the purchaseOrderIdentifier 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.

        “Purchase Order Identifier of the Windows autopilot device.”

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

        public Optional<String> getResourceName()
        “Resource Name.”
        Returns:
        property resourceName
      • withResourceName

        public WindowsAutopilotDeviceIdentity withResourceName​(String resourceName)
        Returns an immutable copy of this with just the resourceName 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.

        “Resource Name.”

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

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

        public WindowsAutopilotDeviceIdentity 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
      • getSkuNumber

        public Optional<String> getSkuNumber()
        “SKU Number”
        Returns:
        property skuNumber
      • withSkuNumber

        public WindowsAutopilotDeviceIdentity withSkuNumber​(String skuNumber)
        Returns an immutable copy of this with just the skuNumber 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.

        “SKU Number”

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

        public Optional<String> getSystemFamily()
        “System Family”
        Returns:
        property systemFamily
      • withSystemFamily

        public WindowsAutopilotDeviceIdentity withSystemFamily​(String systemFamily)
        Returns an immutable copy of this with just the systemFamily 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.

        “System Family”

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

        public Optional<String> getUserPrincipalName()
        “User Principal Name.”
        Returns:
        property userPrincipalName
      • withUserPrincipalName

        public WindowsAutopilotDeviceIdentity withUserPrincipalName​(String userPrincipalName)
        Returns an immutable copy of this with just the userPrincipalName 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.

        “User Principal Name.”

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

        public com.github.davidmoten.odata.client.ActionRequestNoReturn assignUserToDevice​(String userPrincipalName,
                                                                                           String addressableUserName)
      • unassignUserFromDevice

        public com.github.davidmoten.odata.client.ActionRequestNoReturn unassignUserFromDevice()
      • updateDeviceProperties

        public com.github.davidmoten.odata.client.ActionRequestNoReturn updateDeviceProperties​(String userPrincipalName,
                                                                                               String addressableUserName,
                                                                                               String groupTag,
                                                                                               String displayName)