Package odata.msgraph.client.entity
Class UserExperienceAnalyticsMetricHistory
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.UserExperienceAnalyticsMetricHistory
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class UserExperienceAnalyticsMetricHistory extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“The user experience analytics metric history.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUserExperienceAnalyticsMetricHistory.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringdeviceIdprotected OffsetDateTimemetricDateTimeprotected StringmetricType-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedUserExperienceAnalyticsMetricHistory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UserExperienceAnalyticsMetricHistory.BuilderbuilderUserExperienceAnalyticsMetricHistory()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()“The Intune device id of the device.”Optional<OffsetDateTime>getMetricDateTime()“The metric date time.Optional<String>getMetricType()“The user experience analytics metric type.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()UserExperienceAnalyticsMetricHistorypatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)UserExperienceAnalyticsMetricHistoryput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()UserExperienceAnalyticsMetricHistorywithDeviceId(String deviceId)Returns an immutable copy ofthiswith just thedeviceIdfield changed.UserExperienceAnalyticsMetricHistorywithMetricDateTime(OffsetDateTime metricDateTime)Returns an immutable copy ofthiswith just themetricDateTimefield changed.UserExperienceAnalyticsMetricHistorywithMetricType(String metricType)Returns an immutable copy ofthiswith just themetricTypefield changed.UserExperienceAnalyticsMetricHistorywithUnmappedField(String name, Object value)
-
-
-
Field Detail
-
deviceId
protected String deviceId
-
metricDateTime
protected OffsetDateTime metricDateTime
-
metricType
protected String metricType
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderUserExperienceAnalyticsMetricHistory
public static UserExperienceAnalyticsMetricHistory.Builder builderUserExperienceAnalyticsMetricHistory()
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
-
getDeviceId
public Optional<String> getDeviceId()
“The Intune device id of the device.”- Returns:
- property deviceId
-
withDeviceId
public UserExperienceAnalyticsMetricHistory 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.“The Intune device id of the device.”
- Parameters:
deviceId- new value ofdeviceIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeviceIdfield changed
-
getMetricDateTime
public Optional<OffsetDateTime> getMetricDateTime()
“The metric date time. The value cannot be modified and is automatically populated when the metric is created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. Returned by default.”- Returns:
- property metricDateTime
-
withMetricDateTime
public UserExperienceAnalyticsMetricHistory withMetricDateTime(OffsetDateTime metricDateTime)
Returns an immutable copy ofthiswith just themetricDateTimefield 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.“The metric date time. The value cannot be modified and is automatically populated when the metric is created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. Returned by default.”
- Parameters:
metricDateTime- new value ofmetricDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themetricDateTimefield changed
-
getMetricType
public Optional<String> getMetricType()
“The user experience analytics metric type.”- Returns:
- property metricType
-
withMetricType
public UserExperienceAnalyticsMetricHistory withMetricType(String metricType)
Returns an immutable copy ofthiswith just themetricTypefield 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.“The user experience analytics metric type.”
- Parameters:
metricType- new value ofmetricTypefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themetricTypefield changed
-
withUnmappedField
public UserExperienceAnalyticsMetricHistory 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 UserExperienceAnalyticsMetricHistory patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public UserExperienceAnalyticsMetricHistory put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-