com.microsoft.graph.beta.generated.models.security.DetonationDetails Maven / Gradle / Ivy
package com.microsoft.graph.beta.models.security;
import com.microsoft.kiota.serialization.AdditionalDataHolder;
import com.microsoft.kiota.serialization.Parsable;
import com.microsoft.kiota.serialization.ParseNode;
import com.microsoft.kiota.serialization.SerializationWriter;
import com.microsoft.kiota.store.BackedModel;
import com.microsoft.kiota.store.BackingStore;
import com.microsoft.kiota.store.BackingStoreFactorySingleton;
import java.time.OffsetDateTime;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class DetonationDetails implements AdditionalDataHolder, BackedModel, Parsable {
/**
* Stores model information.
*/
@jakarta.annotation.Nonnull
protected BackingStore backingStore;
/**
* Instantiates a new {@link DetonationDetails} and sets the default values.
*/
public DetonationDetails() {
this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore();
this.setAdditionalData(new HashMap<>());
}
/**
* 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 DetonationDetails}
*/
@jakarta.annotation.Nonnull
public static DetonationDetails createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new DetonationDetails();
}
/**
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
* @return a {@link Map}
*/
@jakarta.annotation.Nonnull
public Map getAdditionalData() {
Map value = this.backingStore.get("additionalData");
if(value == null) {
value = new HashMap<>();
this.setAdditionalData(value);
}
return value;
}
/**
* Gets the analysisDateTime property value. The time of detonation.
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getAnalysisDateTime() {
return this.backingStore.get("analysisDateTime");
}
/**
* Gets the backingStore property value. Stores model information.
* @return a {@link BackingStore}
*/
@jakarta.annotation.Nonnull
public BackingStore getBackingStore() {
return this.backingStore;
}
/**
* Gets the detonationChain property value. The chain of detonation.
* @return a {@link DetonationChain}
*/
@jakarta.annotation.Nullable
public DetonationChain getDetonationChain() {
return this.backingStore.get("detonationChain");
}
/**
* Gets the detonationObservables property value. All observables in the detonation tree.
* @return a {@link DetonationObservables}
*/
@jakarta.annotation.Nullable
public DetonationObservables getDetonationObservables() {
return this.backingStore.get("detonationObservables");
}
/**
* Gets the detonationVerdict property value. The verdict of the detonation.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getDetonationVerdict() {
return this.backingStore.get("detonationVerdict");
}
/**
* Gets the detonationVerdictReason property value. The reason for the verdict of the detonation.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getDetonationVerdictReason() {
return this.backingStore.get("detonationVerdictReason");
}
/**
* The deserialization information for the current model
* @return a {@link Map>}
*/
@jakarta.annotation.Nonnull
public Map> getFieldDeserializers() {
final HashMap> deserializerMap = new HashMap>(6);
deserializerMap.put("analysisDateTime", (n) -> { this.setAnalysisDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("detonationChain", (n) -> { this.setDetonationChain(n.getObjectValue(DetonationChain::createFromDiscriminatorValue)); });
deserializerMap.put("detonationObservables", (n) -> { this.setDetonationObservables(n.getObjectValue(DetonationObservables::createFromDiscriminatorValue)); });
deserializerMap.put("detonationVerdict", (n) -> { this.setDetonationVerdict(n.getStringValue()); });
deserializerMap.put("detonationVerdictReason", (n) -> { this.setDetonationVerdictReason(n.getStringValue()); });
deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); });
return deserializerMap;
}
/**
* Gets the @odata.type property value. The OdataType property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getOdataType() {
return this.backingStore.get("odataType");
}
/**
* 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);
writer.writeOffsetDateTimeValue("analysisDateTime", this.getAnalysisDateTime());
writer.writeObjectValue("detonationChain", this.getDetonationChain());
writer.writeObjectValue("detonationObservables", this.getDetonationObservables());
writer.writeStringValue("detonationVerdict", this.getDetonationVerdict());
writer.writeStringValue("detonationVerdictReason", this.getDetonationVerdictReason());
writer.writeStringValue("@odata.type", this.getOdataType());
writer.writeAdditionalData(this.getAdditionalData());
}
/**
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
* @param value Value to set for the AdditionalData property.
*/
public void setAdditionalData(@jakarta.annotation.Nullable final Map value) {
this.backingStore.set("additionalData", value);
}
/**
* Sets the analysisDateTime property value. The time of detonation.
* @param value Value to set for the analysisDateTime property.
*/
public void setAnalysisDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) {
this.backingStore.set("analysisDateTime", value);
}
/**
* Sets the backingStore property value. Stores model information.
* @param value Value to set for the backingStore property.
*/
public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) {
Objects.requireNonNull(value);
this.backingStore = value;
}
/**
* Sets the detonationChain property value. The chain of detonation.
* @param value Value to set for the detonationChain property.
*/
public void setDetonationChain(@jakarta.annotation.Nullable final DetonationChain value) {
this.backingStore.set("detonationChain", value);
}
/**
* Sets the detonationObservables property value. All observables in the detonation tree.
* @param value Value to set for the detonationObservables property.
*/
public void setDetonationObservables(@jakarta.annotation.Nullable final DetonationObservables value) {
this.backingStore.set("detonationObservables", value);
}
/**
* Sets the detonationVerdict property value. The verdict of the detonation.
* @param value Value to set for the detonationVerdict property.
*/
public void setDetonationVerdict(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("detonationVerdict", value);
}
/**
* Sets the detonationVerdictReason property value. The reason for the verdict of the detonation.
* @param value Value to set for the detonationVerdictReason property.
*/
public void setDetonationVerdictReason(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("detonationVerdictReason", value);
}
/**
* Sets the @odata.type property value. The OdataType property
* @param value Value to set for the @odata.type property.
*/
public void setOdataType(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("odataType", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy