Class ImportedAppleDeviceIdentity

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

    public class ImportedAppleDeviceIdentity
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “The importedAppleDeviceIdentity resource represents the imported device identity of an Apple device .”
    • Field Detail

      • description

        protected String description
      • isDeleted

        protected Boolean isDeleted
      • isSupervised

        protected Boolean isSupervised
      • lastContactedDateTime

        protected OffsetDateTime lastContactedDateTime
      • requestedEnrollmentProfileAssignmentDateTime

        protected OffsetDateTime requestedEnrollmentProfileAssignmentDateTime
      • requestedEnrollmentProfileId

        protected String requestedEnrollmentProfileId
      • serialNumber

        protected String serialNumber
    • Constructor Detail

      • ImportedAppleDeviceIdentity

        protected ImportedAppleDeviceIdentity()
    • Method Detail

      • odataTypeName

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

        public static ImportedAppleDeviceIdentity.Builder builderImportedAppleDeviceIdentity()
        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 ImportedAppleDeviceIdentity 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 ImportedAppleDeviceIdentity 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
      • getDiscoverySource

        public Optional<DiscoverySource> getDiscoverySource()
        “Apple device discovery source.”
        Returns:
        property discoverySource
      • withDiscoverySource

        public ImportedAppleDeviceIdentity withDiscoverySource​(DiscoverySource discoverySource)
        Returns an immutable copy of this with just the discoverySource 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.

        “Apple device discovery source.”

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

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

        public ImportedAppleDeviceIdentity 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
      • getIsDeleted

        public Optional<Boolean> getIsDeleted()
        “Indicates if the device is deleted from Apple Business Manager”
        Returns:
        property isDeleted
      • withIsDeleted

        public ImportedAppleDeviceIdentity withIsDeleted​(Boolean isDeleted)
        Returns an immutable copy of this with just the isDeleted 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 if the device is deleted from Apple Business Manager”

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

        public Optional<Boolean> getIsSupervised()
        “Indicates if the Apple device is supervised. More information is at: https:// support.apple.com/en-us/HT202837”
        Returns:
        property isSupervised
      • withIsSupervised

        public ImportedAppleDeviceIdentity withIsSupervised​(Boolean isSupervised)
        Returns an immutable copy of this with just the isSupervised 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 if the Apple device is supervised. More information is at: https:// support.apple.com/en-us/HT202837”

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

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

        public ImportedAppleDeviceIdentity 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
      • getPlatform

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

        public ImportedAppleDeviceIdentity 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
      • getRequestedEnrollmentProfileAssignmentDateTime

        public Optional<OffsetDateTime> getRequestedEnrollmentProfileAssignmentDateTime()
        “The time enrollment profile was assigned to the device”
        Returns:
        property requestedEnrollmentProfileAssignmentDateTime
      • withRequestedEnrollmentProfileAssignmentDateTime

        public ImportedAppleDeviceIdentity withRequestedEnrollmentProfileAssignmentDateTime​(OffsetDateTime requestedEnrollmentProfileAssignmentDateTime)
        Returns an immutable copy of this with just the requestedEnrollmentProfileAssignmentDateTime 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 time enrollment profile was assigned to the device”

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

        public Optional<String> getRequestedEnrollmentProfileId()
        “Enrollment profile Id admin intends to apply to the device during next enrollment”
        Returns:
        property requestedEnrollmentProfileId
      • withRequestedEnrollmentProfileId

        public ImportedAppleDeviceIdentity withRequestedEnrollmentProfileId​(String requestedEnrollmentProfileId)
        Returns an immutable copy of this with just the requestedEnrollmentProfileId 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.

        “Enrollment profile Id admin intends to apply to the device during next enrollment”

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

        public Optional<String> getSerialNumber()
        “Device serial number”
        Returns:
        property serialNumber
      • withSerialNumber

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

        “Device serial number”

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