
com.microsoft.graph.beta.generated.models.UserExperienceAnalyticsBatteryHealthDevicePerformance Maven / Gradle / Ivy
package com.microsoft.graph.beta.models;
import com.microsoft.kiota.serialization.Parsable;
import com.microsoft.kiota.serialization.ParseNode;
import com.microsoft.kiota.serialization.SerializationWriter;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
/**
* The user experience analytics battery health device performance entity contains device level battery information.
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class UserExperienceAnalyticsBatteryHealthDevicePerformance extends Entity implements Parsable {
/**
* Instantiates a new {@link UserExperienceAnalyticsBatteryHealthDevicePerformance} and sets the default values.
*/
public UserExperienceAnalyticsBatteryHealthDevicePerformance() {
super();
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @return a {@link UserExperienceAnalyticsBatteryHealthDevicePerformance}
*/
@jakarta.annotation.Nonnull
public static UserExperienceAnalyticsBatteryHealthDevicePerformance createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new UserExperienceAnalyticsBatteryHealthDevicePerformance();
}
/**
* Gets the batteryAgeInDays property value. Estimated battery age. Unit in days. Valid values 0 to 2147483647
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getBatteryAgeInDays() {
return this.backingStore.get("batteryAgeInDays");
}
/**
* Gets the deviceBatteriesDetails property value. Properties (maxCapacity and cycleCount) related to all batteries of the device.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getDeviceBatteriesDetails() {
return this.backingStore.get("deviceBatteriesDetails");
}
/**
* Gets the deviceBatteryCount property value. Number of batteries in a user device. Valid values 0 to 2147483647
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getDeviceBatteryCount() {
return this.backingStore.get("deviceBatteryCount");
}
/**
* Gets the deviceBatteryHealthScore property value. A weighted average of a devices maximum capacity score and runtime estimate score. Values range from 0-100. Valid values 0 to 2147483647
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getDeviceBatteryHealthScore() {
return this.backingStore.get("deviceBatteryHealthScore");
}
/**
* Gets the deviceBatteryTags property value. Tags for computed information on how battery on the device is behaving. E.g. newbattery, batterycapacityred, designcapacityzero, etc.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getDeviceBatteryTags() {
return this.backingStore.get("deviceBatteryTags");
}
/**
* Gets the deviceId property value. The unique identifier of the device, Intune DeviceID.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getDeviceId() {
return this.backingStore.get("deviceId");
}
/**
* Gets the deviceManufacturerName property value. The manufacturer name of the device.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getDeviceManufacturerName() {
return this.backingStore.get("deviceManufacturerName");
}
/**
* Gets the deviceModelName property value. The model name of the device.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getDeviceModelName() {
return this.backingStore.get("deviceModelName");
}
/**
* Gets the deviceName property value. Device friendly name.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getDeviceName() {
return this.backingStore.get("deviceName");
}
/**
* Gets the estimatedRuntimeInMinutes property value. The estimated runtime of the device when the battery is fully charged. Unit in minutes. Valid values 0 to 2147483647
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getEstimatedRuntimeInMinutes() {
return this.backingStore.get("estimatedRuntimeInMinutes");
}
/**
* The deserialization information for the current model
* @return a {@link Map>}
*/
@jakarta.annotation.Nonnull
public Map> getFieldDeserializers() {
final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers());
deserializerMap.put("batteryAgeInDays", (n) -> { this.setBatteryAgeInDays(n.getIntegerValue()); });
deserializerMap.put("deviceBatteriesDetails", (n) -> { this.setDeviceBatteriesDetails(n.getCollectionOfObjectValues(UserExperienceAnalyticsDeviceBatteryDetail::createFromDiscriminatorValue)); });
deserializerMap.put("deviceBatteryCount", (n) -> { this.setDeviceBatteryCount(n.getIntegerValue()); });
deserializerMap.put("deviceBatteryHealthScore", (n) -> { this.setDeviceBatteryHealthScore(n.getIntegerValue()); });
deserializerMap.put("deviceBatteryTags", (n) -> { this.setDeviceBatteryTags(n.getCollectionOfPrimitiveValues(String.class)); });
deserializerMap.put("deviceId", (n) -> { this.setDeviceId(n.getStringValue()); });
deserializerMap.put("deviceManufacturerName", (n) -> { this.setDeviceManufacturerName(n.getStringValue()); });
deserializerMap.put("deviceModelName", (n) -> { this.setDeviceModelName(n.getStringValue()); });
deserializerMap.put("deviceName", (n) -> { this.setDeviceName(n.getStringValue()); });
deserializerMap.put("estimatedRuntimeInMinutes", (n) -> { this.setEstimatedRuntimeInMinutes(n.getIntegerValue()); });
deserializerMap.put("fullBatteryDrainCount", (n) -> { this.setFullBatteryDrainCount(n.getIntegerValue()); });
deserializerMap.put("healthStatus", (n) -> { this.setHealthStatus(n.getEnumValue(UserExperienceAnalyticsHealthState::forValue)); });
deserializerMap.put("manufacturer", (n) -> { this.setManufacturer(n.getStringValue()); });
deserializerMap.put("maxCapacityPercentage", (n) -> { this.setMaxCapacityPercentage(n.getIntegerValue()); });
deserializerMap.put("model", (n) -> { this.setModel(n.getStringValue()); });
return deserializerMap;
}
/**
* Gets the fullBatteryDrainCount property value. Number of times the battery has been discharged an amount that equals 100% of its capacity, but not necessarily by discharging it from 100% to 0%. Valid values 0 to 2147483647
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getFullBatteryDrainCount() {
return this.backingStore.get("fullBatteryDrainCount");
}
/**
* Gets the healthStatus property value. The healthStatus property
* @return a {@link UserExperienceAnalyticsHealthState}
*/
@jakarta.annotation.Nullable
public UserExperienceAnalyticsHealthState getHealthStatus() {
return this.backingStore.get("healthStatus");
}
/**
* Gets the manufacturer property value. The manufacturer name of the device. Deprecated in favor of DeviceManufacturerName.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getManufacturer() {
return this.backingStore.get("manufacturer");
}
/**
* Gets the maxCapacityPercentage property value. Ratio of current capacity and design capacity of the battery with the lowest capacity. Unit in percentage and values range from 0-100. Valid values 0 to 2147483647
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getMaxCapacityPercentage() {
return this.backingStore.get("maxCapacityPercentage");
}
/**
* Gets the model property value. The model name of the device. Deprecated in favor of DeviceModelName.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getModel() {
return this.backingStore.get("model");
}
/**
* Serializes information the current object
* @param writer Serialization writer to use to serialize this model
*/
public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) {
Objects.requireNonNull(writer);
super.serialize(writer);
writer.writeIntegerValue("batteryAgeInDays", this.getBatteryAgeInDays());
writer.writeCollectionOfObjectValues("deviceBatteriesDetails", this.getDeviceBatteriesDetails());
writer.writeIntegerValue("deviceBatteryCount", this.getDeviceBatteryCount());
writer.writeIntegerValue("deviceBatteryHealthScore", this.getDeviceBatteryHealthScore());
writer.writeCollectionOfPrimitiveValues("deviceBatteryTags", this.getDeviceBatteryTags());
writer.writeStringValue("deviceId", this.getDeviceId());
writer.writeStringValue("deviceManufacturerName", this.getDeviceManufacturerName());
writer.writeStringValue("deviceModelName", this.getDeviceModelName());
writer.writeStringValue("deviceName", this.getDeviceName());
writer.writeIntegerValue("estimatedRuntimeInMinutes", this.getEstimatedRuntimeInMinutes());
writer.writeIntegerValue("fullBatteryDrainCount", this.getFullBatteryDrainCount());
writer.writeEnumValue("healthStatus", this.getHealthStatus());
writer.writeStringValue("manufacturer", this.getManufacturer());
writer.writeIntegerValue("maxCapacityPercentage", this.getMaxCapacityPercentage());
writer.writeStringValue("model", this.getModel());
}
/**
* Sets the batteryAgeInDays property value. Estimated battery age. Unit in days. Valid values 0 to 2147483647
* @param value Value to set for the batteryAgeInDays property.
*/
public void setBatteryAgeInDays(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("batteryAgeInDays", value);
}
/**
* Sets the deviceBatteriesDetails property value. Properties (maxCapacity and cycleCount) related to all batteries of the device.
* @param value Value to set for the deviceBatteriesDetails property.
*/
public void setDeviceBatteriesDetails(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("deviceBatteriesDetails", value);
}
/**
* Sets the deviceBatteryCount property value. Number of batteries in a user device. Valid values 0 to 2147483647
* @param value Value to set for the deviceBatteryCount property.
*/
public void setDeviceBatteryCount(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("deviceBatteryCount", value);
}
/**
* Sets the deviceBatteryHealthScore property value. A weighted average of a devices maximum capacity score and runtime estimate score. Values range from 0-100. Valid values 0 to 2147483647
* @param value Value to set for the deviceBatteryHealthScore property.
*/
public void setDeviceBatteryHealthScore(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("deviceBatteryHealthScore", value);
}
/**
* Sets the deviceBatteryTags property value. Tags for computed information on how battery on the device is behaving. E.g. newbattery, batterycapacityred, designcapacityzero, etc.
* @param value Value to set for the deviceBatteryTags property.
*/
public void setDeviceBatteryTags(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("deviceBatteryTags", value);
}
/**
* Sets the deviceId property value. The unique identifier of the device, Intune DeviceID.
* @param value Value to set for the deviceId property.
*/
public void setDeviceId(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("deviceId", value);
}
/**
* Sets the deviceManufacturerName property value. The manufacturer name of the device.
* @param value Value to set for the deviceManufacturerName property.
*/
public void setDeviceManufacturerName(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("deviceManufacturerName", value);
}
/**
* Sets the deviceModelName property value. The model name of the device.
* @param value Value to set for the deviceModelName property.
*/
public void setDeviceModelName(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("deviceModelName", value);
}
/**
* Sets the deviceName property value. Device friendly name.
* @param value Value to set for the deviceName property.
*/
public void setDeviceName(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("deviceName", value);
}
/**
* Sets the estimatedRuntimeInMinutes property value. The estimated runtime of the device when the battery is fully charged. Unit in minutes. Valid values 0 to 2147483647
* @param value Value to set for the estimatedRuntimeInMinutes property.
*/
public void setEstimatedRuntimeInMinutes(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("estimatedRuntimeInMinutes", value);
}
/**
* Sets the fullBatteryDrainCount property value. Number of times the battery has been discharged an amount that equals 100% of its capacity, but not necessarily by discharging it from 100% to 0%. Valid values 0 to 2147483647
* @param value Value to set for the fullBatteryDrainCount property.
*/
public void setFullBatteryDrainCount(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("fullBatteryDrainCount", value);
}
/**
* Sets the healthStatus property value. The healthStatus property
* @param value Value to set for the healthStatus property.
*/
public void setHealthStatus(@jakarta.annotation.Nullable final UserExperienceAnalyticsHealthState value) {
this.backingStore.set("healthStatus", value);
}
/**
* Sets the manufacturer property value. The manufacturer name of the device. Deprecated in favor of DeviceManufacturerName.
* @param value Value to set for the manufacturer property.
*/
public void setManufacturer(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("manufacturer", value);
}
/**
* Sets the maxCapacityPercentage property value. Ratio of current capacity and design capacity of the battery with the lowest capacity. Unit in percentage and values range from 0-100. Valid values 0 to 2147483647
* @param value Value to set for the maxCapacityPercentage property.
*/
public void setMaxCapacityPercentage(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("maxCapacityPercentage", value);
}
/**
* Sets the model property value. The model name of the device. Deprecated in favor of DeviceModelName.
* @param value Value to set for the model property.
*/
public void setModel(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("model", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy