All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.graph.generated.models.security.HealthIssue Maven / Gradle / Ivy

There is a newer version: 6.25.1
Show newest version
package com.microsoft.graph.models.security;

import com.microsoft.graph.models.Entity;
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;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class HealthIssue extends Entity implements Parsable {
    /**
     * Instantiates a new {@link HealthIssue} and sets the default values.
     */
    public HealthIssue() {
        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 HealthIssue}
     */
    @jakarta.annotation.Nonnull
    public static HealthIssue createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
        Objects.requireNonNull(parseNode);
        return new HealthIssue();
    }
    /**
     * Gets the additionalInformation property value. The additionalInformation property
     * @return a {@link java.util.List}
     */
    @jakarta.annotation.Nullable
    public java.util.List getAdditionalInformation() {
        return this.backingStore.get("additionalInformation");
    }
    /**
     * Gets the createdDateTime property value. The createdDateTime property
     * @return a {@link OffsetDateTime}
     */
    @jakarta.annotation.Nullable
    public OffsetDateTime getCreatedDateTime() {
        return this.backingStore.get("createdDateTime");
    }
    /**
     * Gets the description property value. The description property
     * @return a {@link String}
     */
    @jakarta.annotation.Nullable
    public String getDescription() {
        return this.backingStore.get("description");
    }
    /**
     * Gets the displayName property value. The displayName property
     * @return a {@link String}
     */
    @jakarta.annotation.Nullable
    public String getDisplayName() {
        return this.backingStore.get("displayName");
    }
    /**
     * Gets the domainNames property value. The domainNames property
     * @return a {@link java.util.List}
     */
    @jakarta.annotation.Nullable
    public java.util.List getDomainNames() {
        return this.backingStore.get("domainNames");
    }
    /**
     * 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("additionalInformation", (n) -> { this.setAdditionalInformation(n.getCollectionOfPrimitiveValues(String.class)); });
        deserializerMap.put("createdDateTime", (n) -> { this.setCreatedDateTime(n.getOffsetDateTimeValue()); });
        deserializerMap.put("description", (n) -> { this.setDescription(n.getStringValue()); });
        deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); });
        deserializerMap.put("domainNames", (n) -> { this.setDomainNames(n.getCollectionOfPrimitiveValues(String.class)); });
        deserializerMap.put("healthIssueType", (n) -> { this.setHealthIssueType(n.getEnumValue(HealthIssueType::forValue)); });
        deserializerMap.put("issueTypeId", (n) -> { this.setIssueTypeId(n.getStringValue()); });
        deserializerMap.put("lastModifiedDateTime", (n) -> { this.setLastModifiedDateTime(n.getOffsetDateTimeValue()); });
        deserializerMap.put("recommendations", (n) -> { this.setRecommendations(n.getCollectionOfPrimitiveValues(String.class)); });
        deserializerMap.put("recommendedActionCommands", (n) -> { this.setRecommendedActionCommands(n.getCollectionOfPrimitiveValues(String.class)); });
        deserializerMap.put("sensorDNSNames", (n) -> { this.setSensorDNSNames(n.getCollectionOfPrimitiveValues(String.class)); });
        deserializerMap.put("severity", (n) -> { this.setSeverity(n.getEnumValue(HealthIssueSeverity::forValue)); });
        deserializerMap.put("status", (n) -> { this.setStatus(n.getEnumValue(HealthIssueStatus::forValue)); });
        return deserializerMap;
    }
    /**
     * Gets the healthIssueType property value. The healthIssueType property
     * @return a {@link HealthIssueType}
     */
    @jakarta.annotation.Nullable
    public HealthIssueType getHealthIssueType() {
        return this.backingStore.get("healthIssueType");
    }
    /**
     * Gets the issueTypeId property value. The issueTypeId property
     * @return a {@link String}
     */
    @jakarta.annotation.Nullable
    public String getIssueTypeId() {
        return this.backingStore.get("issueTypeId");
    }
    /**
     * Gets the lastModifiedDateTime property value. The lastModifiedDateTime property
     * @return a {@link OffsetDateTime}
     */
    @jakarta.annotation.Nullable
    public OffsetDateTime getLastModifiedDateTime() {
        return this.backingStore.get("lastModifiedDateTime");
    }
    /**
     * Gets the recommendations property value. The recommendations property
     * @return a {@link java.util.List}
     */
    @jakarta.annotation.Nullable
    public java.util.List getRecommendations() {
        return this.backingStore.get("recommendations");
    }
    /**
     * Gets the recommendedActionCommands property value. The recommendedActionCommands property
     * @return a {@link java.util.List}
     */
    @jakarta.annotation.Nullable
    public java.util.List getRecommendedActionCommands() {
        return this.backingStore.get("recommendedActionCommands");
    }
    /**
     * Gets the sensorDNSNames property value. The sensorDNSNames property
     * @return a {@link java.util.List}
     */
    @jakarta.annotation.Nullable
    public java.util.List getSensorDNSNames() {
        return this.backingStore.get("sensorDNSNames");
    }
    /**
     * Gets the severity property value. The severity property
     * @return a {@link HealthIssueSeverity}
     */
    @jakarta.annotation.Nullable
    public HealthIssueSeverity getSeverity() {
        return this.backingStore.get("severity");
    }
    /**
     * Gets the status property value. The status property
     * @return a {@link HealthIssueStatus}
     */
    @jakarta.annotation.Nullable
    public HealthIssueStatus getStatus() {
        return this.backingStore.get("status");
    }
    /**
     * 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.writeCollectionOfPrimitiveValues("additionalInformation", this.getAdditionalInformation());
        writer.writeOffsetDateTimeValue("createdDateTime", this.getCreatedDateTime());
        writer.writeStringValue("description", this.getDescription());
        writer.writeStringValue("displayName", this.getDisplayName());
        writer.writeCollectionOfPrimitiveValues("domainNames", this.getDomainNames());
        writer.writeEnumValue("healthIssueType", this.getHealthIssueType());
        writer.writeStringValue("issueTypeId", this.getIssueTypeId());
        writer.writeOffsetDateTimeValue("lastModifiedDateTime", this.getLastModifiedDateTime());
        writer.writeCollectionOfPrimitiveValues("recommendations", this.getRecommendations());
        writer.writeCollectionOfPrimitiveValues("recommendedActionCommands", this.getRecommendedActionCommands());
        writer.writeCollectionOfPrimitiveValues("sensorDNSNames", this.getSensorDNSNames());
        writer.writeEnumValue("severity", this.getSeverity());
        writer.writeEnumValue("status", this.getStatus());
    }
    /**
     * Sets the additionalInformation property value. The additionalInformation property
     * @param value Value to set for the additionalInformation property.
     */
    public void setAdditionalInformation(@jakarta.annotation.Nullable final java.util.List value) {
        this.backingStore.set("additionalInformation", value);
    }
    /**
     * Sets the createdDateTime property value. The createdDateTime property
     * @param value Value to set for the createdDateTime property.
     */
    public void setCreatedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) {
        this.backingStore.set("createdDateTime", value);
    }
    /**
     * Sets the description property value. The description property
     * @param value Value to set for the description property.
     */
    public void setDescription(@jakarta.annotation.Nullable final String value) {
        this.backingStore.set("description", value);
    }
    /**
     * Sets the displayName property value. The displayName property
     * @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 domainNames property value. The domainNames property
     * @param value Value to set for the domainNames property.
     */
    public void setDomainNames(@jakarta.annotation.Nullable final java.util.List value) {
        this.backingStore.set("domainNames", value);
    }
    /**
     * Sets the healthIssueType property value. The healthIssueType property
     * @param value Value to set for the healthIssueType property.
     */
    public void setHealthIssueType(@jakarta.annotation.Nullable final HealthIssueType value) {
        this.backingStore.set("healthIssueType", value);
    }
    /**
     * Sets the issueTypeId property value. The issueTypeId property
     * @param value Value to set for the issueTypeId property.
     */
    public void setIssueTypeId(@jakarta.annotation.Nullable final String value) {
        this.backingStore.set("issueTypeId", value);
    }
    /**
     * Sets the lastModifiedDateTime property value. The lastModifiedDateTime property
     * @param value Value to set for the lastModifiedDateTime property.
     */
    public void setLastModifiedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) {
        this.backingStore.set("lastModifiedDateTime", value);
    }
    /**
     * Sets the recommendations property value. The recommendations property
     * @param value Value to set for the recommendations property.
     */
    public void setRecommendations(@jakarta.annotation.Nullable final java.util.List value) {
        this.backingStore.set("recommendations", value);
    }
    /**
     * Sets the recommendedActionCommands property value. The recommendedActionCommands property
     * @param value Value to set for the recommendedActionCommands property.
     */
    public void setRecommendedActionCommands(@jakarta.annotation.Nullable final java.util.List value) {
        this.backingStore.set("recommendedActionCommands", value);
    }
    /**
     * Sets the sensorDNSNames property value. The sensorDNSNames property
     * @param value Value to set for the sensorDNSNames property.
     */
    public void setSensorDNSNames(@jakarta.annotation.Nullable final java.util.List value) {
        this.backingStore.set("sensorDNSNames", value);
    }
    /**
     * Sets the severity property value. The severity property
     * @param value Value to set for the severity property.
     */
    public void setSeverity(@jakarta.annotation.Nullable final HealthIssueSeverity value) {
        this.backingStore.set("severity", value);
    }
    /**
     * Sets the status property value. The status property
     * @param value Value to set for the status property.
     */
    public void setStatus(@jakarta.annotation.Nullable final HealthIssueStatus value) {
        this.backingStore.set("status", value);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy