com.microsoft.graph.beta.generated.models.DeviceManagementAutopilotPolicyStatusDetail 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;
/**
* Policy status detail item contained by an autopilot event.
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class DeviceManagementAutopilotPolicyStatusDetail extends Entity implements Parsable {
/**
* Instantiates a new {@link DeviceManagementAutopilotPolicyStatusDetail} and sets the default values.
*/
public DeviceManagementAutopilotPolicyStatusDetail() {
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 DeviceManagementAutopilotPolicyStatusDetail}
*/
@jakarta.annotation.Nonnull
public static DeviceManagementAutopilotPolicyStatusDetail createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new DeviceManagementAutopilotPolicyStatusDetail();
}
/**
* Gets the complianceStatus property value. The complianceStatus property
* @return a {@link DeviceManagementAutopilotPolicyComplianceStatus}
*/
@jakarta.annotation.Nullable
public DeviceManagementAutopilotPolicyComplianceStatus getComplianceStatus() {
return this.backingStore.get("complianceStatus");
}
/**
* Gets the displayName property value. The friendly name of the policy.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getDisplayName() {
return this.backingStore.get("displayName");
}
/**
* Gets the errorCode property value. The errorode associated with the compliance or enforcement status of the policy. Error code for enforcement status takes precedence if it exists.
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getErrorCode() {
return this.backingStore.get("errorCode");
}
/**
* 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("complianceStatus", (n) -> { this.setComplianceStatus(n.getEnumValue(DeviceManagementAutopilotPolicyComplianceStatus::forValue)); });
deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); });
deserializerMap.put("errorCode", (n) -> { this.setErrorCode(n.getIntegerValue()); });
deserializerMap.put("lastReportedDateTime", (n) -> { this.setLastReportedDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("policyType", (n) -> { this.setPolicyType(n.getEnumValue(DeviceManagementAutopilotPolicyType::forValue)); });
deserializerMap.put("trackedOnEnrollmentStatus", (n) -> { this.setTrackedOnEnrollmentStatus(n.getBooleanValue()); });
return deserializerMap;
}
/**
* Gets the lastReportedDateTime property value. Timestamp of the reported policy status
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getLastReportedDateTime() {
return this.backingStore.get("lastReportedDateTime");
}
/**
* Gets the policyType property value. The policyType property
* @return a {@link DeviceManagementAutopilotPolicyType}
*/
@jakarta.annotation.Nullable
public DeviceManagementAutopilotPolicyType getPolicyType() {
return this.backingStore.get("policyType");
}
/**
* Gets the trackedOnEnrollmentStatus property value. Indicates if this policy was tracked as part of the autopilot bootstrap enrollment sync session
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getTrackedOnEnrollmentStatus() {
return this.backingStore.get("trackedOnEnrollmentStatus");
}
/**
* 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.writeEnumValue("complianceStatus", this.getComplianceStatus());
writer.writeStringValue("displayName", this.getDisplayName());
writer.writeIntegerValue("errorCode", this.getErrorCode());
writer.writeOffsetDateTimeValue("lastReportedDateTime", this.getLastReportedDateTime());
writer.writeEnumValue("policyType", this.getPolicyType());
writer.writeBooleanValue("trackedOnEnrollmentStatus", this.getTrackedOnEnrollmentStatus());
}
/**
* Sets the complianceStatus property value. The complianceStatus property
* @param value Value to set for the complianceStatus property.
*/
public void setComplianceStatus(@jakarta.annotation.Nullable final DeviceManagementAutopilotPolicyComplianceStatus value) {
this.backingStore.set("complianceStatus", value);
}
/**
* Sets the displayName property value. The friendly name of the policy.
* @param value Value to set for the displayName property.
*/
public void setDisplayName(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("displayName", value);
}
/**
* Sets the errorCode property value. The errorode associated with the compliance or enforcement status of the policy. Error code for enforcement status takes precedence if it exists.
* @param value Value to set for the errorCode property.
*/
public void setErrorCode(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("errorCode", value);
}
/**
* Sets the lastReportedDateTime property value. Timestamp of the reported policy status
* @param value Value to set for the lastReportedDateTime property.
*/
public void setLastReportedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) {
this.backingStore.set("lastReportedDateTime", value);
}
/**
* Sets the policyType property value. The policyType property
* @param value Value to set for the policyType property.
*/
public void setPolicyType(@jakarta.annotation.Nullable final DeviceManagementAutopilotPolicyType value) {
this.backingStore.set("policyType", value);
}
/**
* Sets the trackedOnEnrollmentStatus property value. Indicates if this policy was tracked as part of the autopilot bootstrap enrollment sync session
* @param value Value to set for the trackedOnEnrollmentStatus property.
*/
public void setTrackedOnEnrollmentStatus(@jakarta.annotation.Nullable final Boolean value) {
this.backingStore.set("trackedOnEnrollmentStatus", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy