Package odata.msgraph.client.entity
Class DeviceManagementTroubleshootingEvent
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.DeviceManagementTroubleshootingEvent
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
- Direct Known Subclasses:
EnrollmentTroubleshootingEvent
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 StringcorrelationIdprotected OffsetDateTimeeventDateTime-
Fields inherited from class odata.msgraph.client.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.internal.ChangedFieldsgetChangedFields()Optional<String>getCorrelationId()“Id used for tracing the failure in the service.”Optional<OffsetDateTime>getEventDateTime()“Time when the event occurred .”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()DeviceManagementTroubleshootingEventwithCorrelationId(String correlationId)Returns an immutable copy ofthiswith just thecorrelationIdfield changed.DeviceManagementTroubleshootingEventwithEventDateTime(OffsetDateTime eventDateTime)Returns an immutable copy ofthiswith just theeventDateTimefield changed.DeviceManagementTroubleshootingEventwithUnmappedField(String name, Object value)
-
-
-
Field Detail
-
correlationId
protected String correlationId
-
eventDateTime
protected OffsetDateTime eventDateTime
-
-
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
-
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
-
withUnmappedField
public DeviceManagementTroubleshootingEvent withUnmappedField(String name, Object 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).
-
-