Package odata.msgraph.client.entity
Class EnrollmentTroubleshootingEvent
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.DeviceManagementTroubleshootingEvent
-
- odata.msgraph.client.entity.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.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEnrollmentTroubleshootingEvent.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringdeviceIdprotected DeviceEnrollmentTypeenrollmentTypeprotected DeviceEnrollmentFailureReasonfailureCategoryprotected StringfailureReasonprotected StringmanagedDeviceIdentifierprotected StringoperatingSystemprotected StringosVersionprotected StringuserId-
Fields inherited from class odata.msgraph.client.entity.DeviceManagementTroubleshootingEvent
correlationId, eventDateTime
-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedEnrollmentTroubleshootingEvent()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EnrollmentTroubleshootingEvent.BuilderbuilderEnrollmentTroubleshootingEvent()Returns a builder which is used to create a new instance of this class (given that this class is immutable).com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<String>getDeviceId()“Azure AD device identifier.”Optional<DeviceEnrollmentType>getEnrollmentType()“Type of the enrollment.”Optional<DeviceEnrollmentFailureReason>getFailureCategory()“Highlevel failure category.”Optional<String>getFailureReason()“Detailed failure reason.”Optional<String>getManagedDeviceIdentifier()“Device identifier created or collected by Intune.”Optional<String>getOperatingSystem()“Operating System.”Optional<String>getOsVersion()“OS Version.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<String>getUserId()“Identifier for the user that tried to enroll the device.”StringodataTypeName()EnrollmentTroubleshootingEventpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)EnrollmentTroubleshootingEventput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()EnrollmentTroubleshootingEventwithDeviceId(String deviceId)Returns an immutable copy ofthiswith just thedeviceIdfield changed.EnrollmentTroubleshootingEventwithEnrollmentType(DeviceEnrollmentType enrollmentType)Returns an immutable copy ofthiswith just theenrollmentTypefield changed.EnrollmentTroubleshootingEventwithFailureCategory(DeviceEnrollmentFailureReason failureCategory)Returns an immutable copy ofthiswith just thefailureCategoryfield changed.EnrollmentTroubleshootingEventwithFailureReason(String failureReason)Returns an immutable copy ofthiswith just thefailureReasonfield changed.EnrollmentTroubleshootingEventwithManagedDeviceIdentifier(String managedDeviceIdentifier)Returns an immutable copy ofthiswith just themanagedDeviceIdentifierfield changed.EnrollmentTroubleshootingEventwithOperatingSystem(String operatingSystem)Returns an immutable copy ofthiswith just theoperatingSystemfield changed.EnrollmentTroubleshootingEventwithOsVersion(String osVersion)Returns an immutable copy ofthiswith just theosVersionfield changed.EnrollmentTroubleshootingEventwithUnmappedField(String name, Object value)EnrollmentTroubleshootingEventwithUserId(String userId)Returns an immutable copy ofthiswith just theuserIdfield changed.-
Methods inherited from class odata.msgraph.client.entity.DeviceManagementTroubleshootingEvent
builderDeviceManagementTroubleshootingEvent, getCorrelationId, getEventDateTime, withCorrelationId, withEventDateTime
-
-
-
-
Field Detail
-
deviceId
protected String deviceId
-
enrollmentType
protected DeviceEnrollmentType enrollmentType
-
failureCategory
protected DeviceEnrollmentFailureReason failureCategory
-
failureReason
protected String failureReason
-
managedDeviceIdentifier
protected String managedDeviceIdentifier
-
operatingSystem
protected String operatingSystem
-
osVersion
protected String osVersion
-
userId
protected String userId
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classDeviceManagementTroubleshootingEvent
-
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:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classDeviceManagementTroubleshootingEvent
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classDeviceManagementTroubleshootingEvent
-
getDeviceId
public Optional<String> getDeviceId()
“Azure AD device identifier.”- Returns:
- property deviceId
-
withDeviceId
public EnrollmentTroubleshootingEvent withDeviceId(String deviceId)
Returns an immutable copy ofthiswith just thedeviceIdfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“Azure AD device identifier.”
- Parameters:
deviceId- new value ofdeviceIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeviceIdfield changed
-
getEnrollmentType
public Optional<DeviceEnrollmentType> getEnrollmentType()
“Type of the enrollment.”- Returns:
- property enrollmentType
-
withEnrollmentType
public EnrollmentTroubleshootingEvent withEnrollmentType(DeviceEnrollmentType enrollmentType)
Returns an immutable copy ofthiswith just theenrollmentTypefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“Type of the enrollment.”
- Parameters:
enrollmentType- new value ofenrollmentTypefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theenrollmentTypefield changed
-
getFailureCategory
public Optional<DeviceEnrollmentFailureReason> getFailureCategory()
“Highlevel failure category.”- Returns:
- property failureCategory
-
withFailureCategory
public EnrollmentTroubleshootingEvent withFailureCategory(DeviceEnrollmentFailureReason failureCategory)
Returns an immutable copy ofthiswith just thefailureCategoryfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“Highlevel failure category.”
- Parameters:
failureCategory- new value offailureCategoryfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thefailureCategoryfield changed
-
getFailureReason
public Optional<String> getFailureReason()
“Detailed failure reason.”- Returns:
- property failureReason
-
withFailureReason
public EnrollmentTroubleshootingEvent withFailureReason(String failureReason)
Returns an immutable copy ofthiswith just thefailureReasonfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“Detailed failure reason.”
- Parameters:
failureReason- new value offailureReasonfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thefailureReasonfield 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 ofthiswith just themanagedDeviceIdentifierfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 ofmanagedDeviceIdentifierfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themanagedDeviceIdentifierfield changed
-
getOperatingSystem
public Optional<String> getOperatingSystem()
“Operating System.”- Returns:
- property operatingSystem
-
withOperatingSystem
public EnrollmentTroubleshootingEvent withOperatingSystem(String operatingSystem)
Returns an immutable copy ofthiswith just theoperatingSystemfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“Operating System.”
- Parameters:
operatingSystem- new value ofoperatingSystemfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theoperatingSystemfield changed
-
withOsVersion
public EnrollmentTroubleshootingEvent withOsVersion(String osVersion)
Returns an immutable copy ofthiswith just theosVersionfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“OS Version.”
- Parameters:
osVersion- new value ofosVersionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theosVersionfield 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 ofthiswith just theuserIdfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 ofuserIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theuserIdfield changed
-
withUnmappedField
public EnrollmentTroubleshootingEvent withUnmappedField(String name, Object value)
- Overrides:
withUnmappedFieldin classDeviceManagementTroubleshootingEvent
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classDeviceManagementTroubleshootingEvent
-
patch
public EnrollmentTroubleshootingEvent patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.- Overrides:
patchin classDeviceManagementTroubleshootingEvent- Returns:
- a copy of
thiswith 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 ofthiswith changed fields reset (they were ignored anyway).- Overrides:
putin classDeviceManagementTroubleshootingEvent- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
toString
public String toString()
- Overrides:
toStringin classDeviceManagementTroubleshootingEvent
-
-