![JAR search and dependency download from the Maven repository](/logo.png)
com.microsoft.graph.generated.models.security.IntelligenceProfileIndicator Maven / Gradle / Ivy
package com.microsoft.graph.models.security;
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 IntelligenceProfileIndicator extends Indicator implements Parsable {
/**
* Instantiates a new {@link IntelligenceProfileIndicator} and sets the default values.
*/
public IntelligenceProfileIndicator() {
super();
this.setOdataType("#microsoft.graph.security.intelligenceProfileIndicator");
}
/**
* 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 IntelligenceProfileIndicator}
*/
@jakarta.annotation.Nonnull
public static IntelligenceProfileIndicator createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new IntelligenceProfileIndicator();
}
/**
* 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("firstSeenDateTime", (n) -> { this.setFirstSeenDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("lastSeenDateTime", (n) -> { this.setLastSeenDateTime(n.getOffsetDateTimeValue()); });
return deserializerMap;
}
/**
* Gets the firstSeenDateTime property value. Designate when an artifact was first used actively in an attack, when a particular sample was compiled, or if neither of those could be ascertained when the file was first seen in public repositories (for example, VirusTotal, ANY.RUN, Hybrid Analysis) or reported publicly.
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getFirstSeenDateTime() {
return this.backingStore.get("firstSeenDateTime");
}
/**
* Gets the lastSeenDateTime property value. Designate when an artifact was most recently used actively in an attack, when a particular sample was compiled, or if neither of those could be ascertained when the file was first seen in public repositories (for example, VirusTotal, ANY.RUN, Hybrid Analysis) or reported publicly.
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getLastSeenDateTime() {
return this.backingStore.get("lastSeenDateTime");
}
/**
* 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.writeOffsetDateTimeValue("firstSeenDateTime", this.getFirstSeenDateTime());
writer.writeOffsetDateTimeValue("lastSeenDateTime", this.getLastSeenDateTime());
}
/**
* Sets the firstSeenDateTime property value. Designate when an artifact was first used actively in an attack, when a particular sample was compiled, or if neither of those could be ascertained when the file was first seen in public repositories (for example, VirusTotal, ANY.RUN, Hybrid Analysis) or reported publicly.
* @param value Value to set for the firstSeenDateTime property.
*/
public void setFirstSeenDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) {
this.backingStore.set("firstSeenDateTime", value);
}
/**
* Sets the lastSeenDateTime property value. Designate when an artifact was most recently used actively in an attack, when a particular sample was compiled, or if neither of those could be ascertained when the file was first seen in public repositories (for example, VirusTotal, ANY.RUN, Hybrid Analysis) or reported publicly.
* @param value Value to set for the lastSeenDateTime property.
*/
public void setLastSeenDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) {
this.backingStore.set("lastSeenDateTime", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy