Package odata.msgraph.client.entity
Class UserExperienceAnalyticsMetric
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.UserExperienceAnalyticsMetric
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class UserExperienceAnalyticsMetric extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“The user experience analytics metric contains the score and units of a metric of a user experience anlaytics category.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUserExperienceAnalyticsMetric.Builder
-
Field Summary
Fields Modifier and Type Field Description protected Stringunitprotected Doublevalue-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedUserExperienceAnalyticsMetric()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UserExperienceAnalyticsMetric.BuilderbuilderUserExperienceAnalyticsMetric()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>getUnit()“The unit of the user experience analytics metric.com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<Double>getValue()“The value of the user experience analytics metric.”StringodataTypeName()UserExperienceAnalyticsMetricpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)UserExperienceAnalyticsMetricput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()UserExperienceAnalyticsMetricwithUnit(String unit)Returns an immutable copy ofthiswith just theunitfield changed.UserExperienceAnalyticsMetricwithUnmappedField(String name, Object value)UserExperienceAnalyticsMetricwithValue(Double value)Returns an immutable copy ofthiswith just thevaluefield changed.
-
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderUserExperienceAnalyticsMetric
public static UserExperienceAnalyticsMetric.Builder builderUserExperienceAnalyticsMetric()
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
-
getUnit
public Optional<String> getUnit()
“The unit of the user experience analytics metric. Examples: none, percentage, count, seconds, score.”- Returns:
- property unit
-
withUnit
public UserExperienceAnalyticsMetric withUnit(String unit)
Returns an immutable copy ofthiswith just theunitfield 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 unit of the user experience analytics metric. Examples: none, percentage, count, seconds, score.”
- Parameters:
unit- new value ofunitfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theunitfield changed
-
getValue
public Optional<Double> getValue()
“The value of the user experience analytics metric.”- Returns:
- property value
-
withValue
public UserExperienceAnalyticsMetric withValue(Double value)
Returns an immutable copy ofthiswith just thevaluefield 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 value of the user experience analytics metric.”
- Parameters:
value- new value ofvaluefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thevaluefield changed
-
withUnmappedField
public UserExperienceAnalyticsMetric 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 UserExperienceAnalyticsMetric patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public UserExperienceAnalyticsMetric put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-