Class EnrollmentTroubleshootingEvent

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

    public class EnrollmentTroubleshootingEvent
    extends DeviceManagementTroubleshootingEvent
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Event representing an enrollment failure.”
    • Constructor Detail

      • EnrollmentTroubleshootingEvent

        protected EnrollmentTroubleshootingEvent()
    • Method Detail

      • builderEnrollmentTroubleshootingEvent

        public static EnrollmentTroubleshootingEvent.Builder builderEnrollmentTroubleshootingEvent()
        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 DeviceManagementTroubleshootingEvent
      • getDeviceId

        public Optional<String> getDeviceId()
        “Azure AD device identifier.”
        Returns:
        property deviceId
      • withDeviceId

        public EnrollmentTroubleshootingEvent withDeviceId​(String deviceId)
        Returns an immutable copy of this with just the deviceId 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.

        “Azure AD device identifier.”

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

        public Optional<DeviceEnrollmentType> getEnrollmentType()
        “Type of the enrollment.”
        Returns:
        property enrollmentType
      • withEnrollmentType

        public EnrollmentTroubleshootingEvent withEnrollmentType​(DeviceEnrollmentType enrollmentType)
        Returns an immutable copy of this with just the enrollmentType 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 the enrollment.”

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

        public EnrollmentTroubleshootingEvent withFailureCategory​(DeviceEnrollmentFailureReason failureCategory)
        Returns an immutable copy of this with just the failureCategory 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.

        “Highlevel failure category.”

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

        public Optional<String> getFailureReason()
        “Detailed failure reason.”
        Returns:
        property failureReason
      • withFailureReason

        public EnrollmentTroubleshootingEvent withFailureReason​(String failureReason)
        Returns an immutable copy of this with just the failureReason 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.

        “Detailed failure reason.”

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

        public Optional<String> getManagedDeviceIdentifier()
        “Device identifier created or collected by Intune.”
        Returns:
        property managedDeviceIdentifier
      • withManagedDeviceIdentifier

        public EnrollmentTroubleshootingEvent withManagedDeviceIdentifier​(String managedDeviceIdentifier)
        Returns an immutable copy of this with just the managedDeviceIdentifier 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 identifier created or collected by Intune.”

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

        public Optional<String> getOperatingSystem()
        “Operating System.”
        Returns:
        property operatingSystem
      • withOperatingSystem

        public EnrollmentTroubleshootingEvent withOperatingSystem​(String operatingSystem)
        Returns an immutable copy of this with just the operatingSystem 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.

        “Operating System.”

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

        public Optional<String> getOsVersion()
        “OS Version.”
        Returns:
        property osVersion
      • withOsVersion

        public EnrollmentTroubleshootingEvent withOsVersion​(String osVersion)
        Returns an immutable copy of this with just the osVersion 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.

        “OS Version.”

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

        public Optional<String> getUserId()
        “Identifier for the user that tried to enroll the device.”
        Returns:
        property userId
      • withUserId

        public EnrollmentTroubleshootingEvent withUserId​(String userId)
        Returns an immutable copy of this with just the userId 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.

        “Identifier for the user that tried to enroll the device.”

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

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