Package odata.msgraph.client.beta.entity
Class DeviceManagementTroubleshootingEvent
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.DeviceManagementTroubleshootingEvent
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
- Direct Known Subclasses:
AppleVppTokenTroubleshootingEvent,EnrollmentTroubleshootingEvent,MobileAppTroubleshootingEvent
public class DeviceManagementTroubleshootingEvent extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“Event representing an general failure.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceManagementTroubleshootingEvent.Builder
-
Field Summary
Fields Modifier and Type Field Description protected List<KeyValuePair>additionalInformationprotected StringadditionalInformationNextLinkprotected StringcorrelationIdprotected OffsetDateTimeeventDateTimeprotected StringeventNameprotected DeviceManagementTroubleshootingErrorDetailstroubleshootingErrorDetails-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeviceManagementTroubleshootingEvent()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeviceManagementTroubleshootingEvent.BuilderbuilderDeviceManagementTroubleshootingEvent()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.CollectionPage<KeyValuePair>getAdditionalInformation()“A set of string key and string value pairs which provides additional information on the Troubleshooting event”com.github.davidmoten.odata.client.CollectionPage<KeyValuePair>getAdditionalInformation(com.github.davidmoten.odata.client.HttpRequestOptions options)“A set of string key and string value pairs which provides additional information on the Troubleshooting event”com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<String>getCorrelationId()“Id used for tracing the failure in the service.”Optional<OffsetDateTime>getEventDateTime()“Time when the event occurred .”Optional<String>getEventName()“Event Name corresponding to the Troubleshooting Event.Optional<DeviceManagementTroubleshootingErrorDetails>getTroubleshootingErrorDetails()“Object containing detailed information about the error and its remediation.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()DeviceManagementTroubleshootingEventpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)DeviceManagementTroubleshootingEventput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()DeviceManagementTroubleshootingEventwithAdditionalInformation(List<KeyValuePair> additionalInformation)Returns an immutable copy ofthiswith just theadditionalInformationfield changed.DeviceManagementTroubleshootingEventwithCorrelationId(String correlationId)Returns an immutable copy ofthiswith just thecorrelationIdfield changed.DeviceManagementTroubleshootingEventwithEventDateTime(OffsetDateTime eventDateTime)Returns an immutable copy ofthiswith just theeventDateTimefield changed.DeviceManagementTroubleshootingEventwithEventName(String eventName)Returns an immutable copy ofthiswith just theeventNamefield changed.DeviceManagementTroubleshootingEventwithTroubleshootingErrorDetails(DeviceManagementTroubleshootingErrorDetails troubleshootingErrorDetails)Returns an immutable copy ofthiswith just thetroubleshootingErrorDetailsfield changed.DeviceManagementTroubleshootingEventwithUnmappedField(String name, String value)
-
-
-
Field Detail
-
additionalInformation
protected List<KeyValuePair> additionalInformation
-
additionalInformationNextLink
protected String additionalInformationNextLink
-
correlationId
protected String correlationId
-
eventDateTime
protected OffsetDateTime eventDateTime
-
eventName
protected String eventName
-
troubleshootingErrorDetails
protected DeviceManagementTroubleshootingErrorDetails troubleshootingErrorDetails
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderDeviceManagementTroubleshootingEvent
public static DeviceManagementTroubleshootingEvent.Builder builderDeviceManagementTroubleshootingEvent()
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 classEntity
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classEntity
-
getAdditionalInformation
public com.github.davidmoten.odata.client.CollectionPage<KeyValuePair> getAdditionalInformation()
“A set of string key and string value pairs which provides additional information on the Troubleshooting event”- Returns:
- property additionalInformation
-
withAdditionalInformation
public DeviceManagementTroubleshootingEvent withAdditionalInformation(List<KeyValuePair> additionalInformation)
Returns an immutable copy ofthiswith just theadditionalInformationfield 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.“A set of string key and string value pairs which provides additional information on the Troubleshooting event”
- Parameters:
additionalInformation- new value ofadditionalInformationfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theadditionalInformationfield changed
-
getAdditionalInformation
public com.github.davidmoten.odata.client.CollectionPage<KeyValuePair> getAdditionalInformation(com.github.davidmoten.odata.client.HttpRequestOptions options)
“A set of string key and string value pairs which provides additional information on the Troubleshooting event”- Parameters:
options- specify connect and read timeouts- Returns:
- property additionalInformation
-
getCorrelationId
public Optional<String> getCorrelationId()
“Id used for tracing the failure in the service.”- Returns:
- property correlationId
-
withCorrelationId
public DeviceManagementTroubleshootingEvent withCorrelationId(String correlationId)
Returns an immutable copy ofthiswith just thecorrelationIdfield 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.“Id used for tracing the failure in the service.”
- Parameters:
correlationId- new value ofcorrelationIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecorrelationIdfield changed
-
getEventDateTime
public Optional<OffsetDateTime> getEventDateTime()
“Time when the event occurred .”- Returns:
- property eventDateTime
-
withEventDateTime
public DeviceManagementTroubleshootingEvent withEventDateTime(OffsetDateTime eventDateTime)
Returns an immutable copy ofthiswith just theeventDateTimefield 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.“Time when the event occurred .”
- Parameters:
eventDateTime- new value ofeventDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theeventDateTimefield changed
-
getEventName
public Optional<String> getEventName()
“Event Name corresponding to the Troubleshooting Event. It is an Optional field”- Returns:
- property eventName
-
withEventName
public DeviceManagementTroubleshootingEvent withEventName(String eventName)
Returns an immutable copy ofthiswith just theeventNamefield 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.“Event Name corresponding to the Troubleshooting Event. It is an Optional field”
- Parameters:
eventName- new value ofeventNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theeventNamefield changed
-
getTroubleshootingErrorDetails
public Optional<DeviceManagementTroubleshootingErrorDetails> getTroubleshootingErrorDetails()
“Object containing detailed information about the error and its remediation.”- Returns:
- property troubleshootingErrorDetails
-
withTroubleshootingErrorDetails
public DeviceManagementTroubleshootingEvent withTroubleshootingErrorDetails(DeviceManagementTroubleshootingErrorDetails troubleshootingErrorDetails)
Returns an immutable copy ofthiswith just thetroubleshootingErrorDetailsfield 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.“Object containing detailed information about the error and its remediation.”
- Parameters:
troubleshootingErrorDetails- new value oftroubleshootingErrorDetailsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thetroubleshootingErrorDetailsfield changed
-
withUnmappedField
public DeviceManagementTroubleshootingEvent withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public DeviceManagementTroubleshootingEvent patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public DeviceManagementTroubleshootingEvent put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-