Class ImportedDeviceIdentity

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

    public class ImportedDeviceIdentity
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “The importedDeviceIdentity resource represents a unique hardware identity of a device that has been pre-staged for pre-enrollment configuration.”
    • Constructor Detail

      • ImportedDeviceIdentity

        protected ImportedDeviceIdentity()
    • Method Detail

      • odataTypeName

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

        public static ImportedDeviceIdentity.Builder builderImportedDeviceIdentity()
        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
      • getCreatedDateTime

        public Optional<OffsetDateTime> getCreatedDateTime()
        “Created Date Time of the device”
        Returns:
        property createdDateTime
      • withCreatedDateTime

        public ImportedDeviceIdentity withCreatedDateTime​(OffsetDateTime createdDateTime)
        Returns an immutable copy of this with just the createdDateTime 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.

        “Created Date Time of the device”

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

        public Optional<String> getDescription()
        “The description of the device”
        Returns:
        property description
      • withDescription

        public ImportedDeviceIdentity withDescription​(String description)
        Returns an immutable copy of this with just the description 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 description of the device”

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

        public Optional<EnrollmentState> getEnrollmentState()
        “The state of the device in Intune”
        Returns:
        property enrollmentState
      • withEnrollmentState

        public ImportedDeviceIdentity 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.

        “The state of the device in Intune”

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

        public Optional<String> getImportedDeviceIdentifier()
        “Imported Device Identifier”
        Returns:
        property importedDeviceIdentifier
      • withImportedDeviceIdentifier

        public ImportedDeviceIdentity withImportedDeviceIdentifier​(String importedDeviceIdentifier)
        Returns an immutable copy of this with just the importedDeviceIdentifier 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.

        “Imported Device Identifier”

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

        public Optional<ImportedDeviceIdentityType> getImportedDeviceIdentityType()
        “Type of Imported Device Identity”
        Returns:
        property importedDeviceIdentityType
      • withImportedDeviceIdentityType

        public ImportedDeviceIdentity withImportedDeviceIdentityType​(ImportedDeviceIdentityType importedDeviceIdentityType)
        Returns an immutable copy of this with just the importedDeviceIdentityType 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.

        “Type of Imported Device Identity”

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

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

        public ImportedDeviceIdentity 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.

        “Last Contacted Date Time of the device”

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

        public Optional<OffsetDateTime> getLastModifiedDateTime()
        “Last Modified DateTime of the description”
        Returns:
        property lastModifiedDateTime
      • withLastModifiedDateTime

        public ImportedDeviceIdentity withLastModifiedDateTime​(OffsetDateTime lastModifiedDateTime)
        Returns an immutable copy of this with just the lastModifiedDateTime 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.

        “Last Modified DateTime of the description”

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

        public Optional<Platform> getPlatform()
        “The platform of the Device.”
        Returns:
        property platform
      • withPlatform

        public ImportedDeviceIdentity withPlatform​(Platform platform)
        Returns an immutable copy of this with just the platform 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 platform of the Device.”

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