
com.microsoft.graph.beta.generated.models.MobileAppTroubleshootingAppPolicyCreationHistory 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;
/**
* History Item contained in the Mobile App Troubleshooting Event.
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class MobileAppTroubleshootingAppPolicyCreationHistory extends MobileAppTroubleshootingHistoryItem implements Parsable {
/**
* Instantiates a new {@link MobileAppTroubleshootingAppPolicyCreationHistory} and sets the default values.
*/
public MobileAppTroubleshootingAppPolicyCreationHistory() {
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 MobileAppTroubleshootingAppPolicyCreationHistory}
*/
@jakarta.annotation.Nonnull
public static MobileAppTroubleshootingAppPolicyCreationHistory createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new MobileAppTroubleshootingAppPolicyCreationHistory();
}
/**
* Gets the errorCode property value. Error code for the failure, empty if no failure.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String 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("errorCode", (n) -> { this.setErrorCode(n.getStringValue()); });
deserializerMap.put("runState", (n) -> { this.setRunState(n.getEnumValue(RunState::forValue)); });
return deserializerMap;
}
/**
* Gets the runState property value. Indicates the type of execution status of the device management script.
* @return a {@link RunState}
*/
@jakarta.annotation.Nullable
public RunState getRunState() {
return this.backingStore.get("runState");
}
/**
* 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.writeStringValue("errorCode", this.getErrorCode());
writer.writeEnumValue("runState", this.getRunState());
}
/**
* Sets the errorCode property value. Error code for the failure, empty if no failure.
* @param value Value to set for the errorCode property.
*/
public void setErrorCode(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("errorCode", value);
}
/**
* Sets the runState property value. Indicates the type of execution status of the device management script.
* @param value Value to set for the runState property.
*/
public void setRunState(@jakarta.annotation.Nullable final RunState value) {
this.backingStore.set("runState", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy