
com.microsoft.graph.beta.generated.models.WindowsQualityUpdateCatalogItem 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;
/**
* Windows update catalog item entity
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class WindowsQualityUpdateCatalogItem extends WindowsUpdateCatalogItem implements Parsable {
/**
* Instantiates a new {@link WindowsQualityUpdateCatalogItem} and sets the default values.
*/
public WindowsQualityUpdateCatalogItem() {
super();
this.setOdataType("#microsoft.graph.windowsQualityUpdateCatalogItem");
}
/**
* 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 WindowsQualityUpdateCatalogItem}
*/
@jakarta.annotation.Nonnull
public static WindowsQualityUpdateCatalogItem createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new WindowsQualityUpdateCatalogItem();
}
/**
* Gets the classification property value. Windows quality update classification
* @return a {@link WindowsQualityUpdateClassification}
*/
@jakarta.annotation.Nullable
public WindowsQualityUpdateClassification getClassification() {
return this.backingStore.get("classification");
}
/**
* 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("classification", (n) -> { this.setClassification(n.getEnumValue(WindowsQualityUpdateClassification::forValue)); });
deserializerMap.put("isExpeditable", (n) -> { this.setIsExpeditable(n.getBooleanValue()); });
deserializerMap.put("kbArticleId", (n) -> { this.setKbArticleId(n.getStringValue()); });
return deserializerMap;
}
/**
* Gets the isExpeditable property value. Flag indicating if update qualifies for expedite
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getIsExpeditable() {
return this.backingStore.get("isExpeditable");
}
/**
* Gets the kbArticleId property value. Knowledge base article id
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getKbArticleId() {
return this.backingStore.get("kbArticleId");
}
/**
* 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("classification", this.getClassification());
writer.writeBooleanValue("isExpeditable", this.getIsExpeditable());
writer.writeStringValue("kbArticleId", this.getKbArticleId());
}
/**
* Sets the classification property value. Windows quality update classification
* @param value Value to set for the classification property.
*/
public void setClassification(@jakarta.annotation.Nullable final WindowsQualityUpdateClassification value) {
this.backingStore.set("classification", value);
}
/**
* Sets the isExpeditable property value. Flag indicating if update qualifies for expedite
* @param value Value to set for the isExpeditable property.
*/
public void setIsExpeditable(@jakarta.annotation.Nullable final Boolean value) {
this.backingStore.set("isExpeditable", value);
}
/**
* Sets the kbArticleId property value. Knowledge base article id
* @param value Value to set for the kbArticleId property.
*/
public void setKbArticleId(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("kbArticleId", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy