Class 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.”
    • Constructor Detail

      • UserExperienceAnalyticsMetricHistory

        protected UserExperienceAnalyticsMetricHistory()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        odataTypeName in class Entity
      • 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:
        getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityType
        Overrides:
        getChangedFields in class Entity
      • postInject

        public void postInject​(boolean addKeysToContextPath)
        Specified by:
        postInject in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        postInject in class Entity
      • 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 of this with just the deviceId field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.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 of deviceId field (as defined in service metadata)
        Returns:
        immutable copy of this with just the deviceId field 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 of this with just the metricDateTime field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. 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 of metricDateTime field (as defined in service metadata)
        Returns:
        immutable copy of this with just the metricDateTime field 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 of this with just the metricType field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.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 of metricType field (as defined in service metadata)
        Returns:
        immutable copy of this with just the metricType field changed
      • getUnmappedFields

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        getUnmappedFields in class Entity
      • patch

        public UserExperienceAnalyticsMetricHistory patch()
        Submits only changed fields for update and returns an immutable copy of this with changed fields reset.
        Overrides:
        patch in class Entity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected
      • put

        public UserExperienceAnalyticsMetricHistory put()
        Submits all fields for update and returns an immutable copy of this with changed fields reset (they were ignored anyway).
        Overrides:
        put in class Entity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected