com.microsoft.graph.beta.generated.models.DeviceComplianceScriptRunSummary 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.time.OffsetDateTime;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
/**
* Contains properties for the run summary of a device management script.
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class DeviceComplianceScriptRunSummary extends Entity implements Parsable {
/**
* Instantiates a new {@link DeviceComplianceScriptRunSummary} and sets the default values.
*/
public DeviceComplianceScriptRunSummary() {
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 DeviceComplianceScriptRunSummary}
*/
@jakarta.annotation.Nonnull
public static DeviceComplianceScriptRunSummary createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new DeviceComplianceScriptRunSummary();
}
/**
* Gets the detectionScriptErrorDeviceCount property value. Number of devices on which the detection script execution encountered an error and did not complete. Valid values -2147483648 to 2147483647
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getDetectionScriptErrorDeviceCount() {
return this.backingStore.get("detectionScriptErrorDeviceCount");
}
/**
* Gets the detectionScriptPendingDeviceCount property value. Number of devices which have not yet run the latest version of the device compliance script. Valid values -2147483648 to 2147483647
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getDetectionScriptPendingDeviceCount() {
return this.backingStore.get("detectionScriptPendingDeviceCount");
}
/**
* 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("detectionScriptErrorDeviceCount", (n) -> { this.setDetectionScriptErrorDeviceCount(n.getIntegerValue()); });
deserializerMap.put("detectionScriptPendingDeviceCount", (n) -> { this.setDetectionScriptPendingDeviceCount(n.getIntegerValue()); });
deserializerMap.put("issueDetectedDeviceCount", (n) -> { this.setIssueDetectedDeviceCount(n.getIntegerValue()); });
deserializerMap.put("lastScriptRunDateTime", (n) -> { this.setLastScriptRunDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("noIssueDetectedDeviceCount", (n) -> { this.setNoIssueDetectedDeviceCount(n.getIntegerValue()); });
return deserializerMap;
}
/**
* Gets the issueDetectedDeviceCount property value. Number of devices for which the detection script found an issue. Valid values -2147483648 to 2147483647
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getIssueDetectedDeviceCount() {
return this.backingStore.get("issueDetectedDeviceCount");
}
/**
* Gets the lastScriptRunDateTime property value. Last run time for the script across all devices
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getLastScriptRunDateTime() {
return this.backingStore.get("lastScriptRunDateTime");
}
/**
* Gets the noIssueDetectedDeviceCount property value. Number of devices for which the detection script did not find an issue and the device is healthy. Valid values -2147483648 to 2147483647
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getNoIssueDetectedDeviceCount() {
return this.backingStore.get("noIssueDetectedDeviceCount");
}
/**
* 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("detectionScriptErrorDeviceCount", this.getDetectionScriptErrorDeviceCount());
writer.writeIntegerValue("detectionScriptPendingDeviceCount", this.getDetectionScriptPendingDeviceCount());
writer.writeIntegerValue("issueDetectedDeviceCount", this.getIssueDetectedDeviceCount());
writer.writeOffsetDateTimeValue("lastScriptRunDateTime", this.getLastScriptRunDateTime());
writer.writeIntegerValue("noIssueDetectedDeviceCount", this.getNoIssueDetectedDeviceCount());
}
/**
* Sets the detectionScriptErrorDeviceCount property value. Number of devices on which the detection script execution encountered an error and did not complete. Valid values -2147483648 to 2147483647
* @param value Value to set for the detectionScriptErrorDeviceCount property.
*/
public void setDetectionScriptErrorDeviceCount(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("detectionScriptErrorDeviceCount", value);
}
/**
* Sets the detectionScriptPendingDeviceCount property value. Number of devices which have not yet run the latest version of the device compliance script. Valid values -2147483648 to 2147483647
* @param value Value to set for the detectionScriptPendingDeviceCount property.
*/
public void setDetectionScriptPendingDeviceCount(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("detectionScriptPendingDeviceCount", value);
}
/**
* Sets the issueDetectedDeviceCount property value. Number of devices for which the detection script found an issue. Valid values -2147483648 to 2147483647
* @param value Value to set for the issueDetectedDeviceCount property.
*/
public void setIssueDetectedDeviceCount(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("issueDetectedDeviceCount", value);
}
/**
* Sets the lastScriptRunDateTime property value. Last run time for the script across all devices
* @param value Value to set for the lastScriptRunDateTime property.
*/
public void setLastScriptRunDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) {
this.backingStore.set("lastScriptRunDateTime", value);
}
/**
* Sets the noIssueDetectedDeviceCount property value. Number of devices for which the detection script did not find an issue and the device is healthy. Valid values -2147483648 to 2147483647
* @param value Value to set for the noIssueDetectedDeviceCount property.
*/
public void setNoIssueDetectedDeviceCount(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("noIssueDetectedDeviceCount", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy