Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
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 HostComponent extends Artifact implements Parsable {
/**
* Instantiates a new {@link HostComponent} and sets the default values.
*/
public HostComponent() {
super();
this.setOdataType("#microsoft.graph.security.hostComponent");
}
/**
* 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 HostComponent}
*/
@jakarta.annotation.Nonnull
public static HostComponent createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new HostComponent();
}
/**
* Gets the category property value. The type of component that was detected (for example, Operating System, Framework, Remote Access, or Server).
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getCategory() {
return this.backingStore.get("category");
}
/**
* 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("category", (n) -> { this.setCategory(n.getStringValue()); });
deserializerMap.put("firstSeenDateTime", (n) -> { this.setFirstSeenDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("host", (n) -> { this.setHost(n.getObjectValue(Host::createFromDiscriminatorValue)); });
deserializerMap.put("lastSeenDateTime", (n) -> { this.setLastSeenDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("name", (n) -> { this.setName(n.getStringValue()); });
deserializerMap.put("version", (n) -> { this.setVersion(n.getStringValue()); });
return deserializerMap;
}
/**
* Gets the firstSeenDateTime property value. The first date and time when Microsoft Defender Threat Intelligence observed this web component. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014, is 2014-01-01T00:00:00Z.
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getFirstSeenDateTime() {
return this.backingStore.get("firstSeenDateTime");
}
/**
* Gets the host property value. The host property
* @return a {@link Host}
*/
@jakarta.annotation.Nullable
public Host getHost() {
return this.backingStore.get("host");
}
/**
* Gets the lastSeenDateTime property value. The most recent date and time when Microsoft Defender Threat Intelligence observed this web component. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014, is 2014-01-01T00:00:00Z.
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getLastSeenDateTime() {
return this.backingStore.get("lastSeenDateTime");
}
/**
* Gets the name property value. A name running on the artifact, for example, Microsoft IIS.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getName() {
return this.backingStore.get("name");
}
/**
* Gets the version property value. The component version running on the artifact, for example, v8.5. This shouldn't be assumed to be strictly numerical.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getVersion() {
return this.backingStore.get("version");
}
/**
* 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("category", this.getCategory());
writer.writeOffsetDateTimeValue("firstSeenDateTime", this.getFirstSeenDateTime());
writer.writeObjectValue("host", this.getHost());
writer.writeOffsetDateTimeValue("lastSeenDateTime", this.getLastSeenDateTime());
writer.writeStringValue("name", this.getName());
writer.writeStringValue("version", this.getVersion());
}
/**
* Sets the category property value. The type of component that was detected (for example, Operating System, Framework, Remote Access, or Server).
* @param value Value to set for the category property.
*/
public void setCategory(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("category", value);
}
/**
* Sets the firstSeenDateTime property value. The first date and time when Microsoft Defender Threat Intelligence observed this web component. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014, is 2014-01-01T00:00:00Z.
* @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 host property value. The host property
* @param value Value to set for the host property.
*/
public void setHost(@jakarta.annotation.Nullable final Host value) {
this.backingStore.set("host", value);
}
/**
* Sets the lastSeenDateTime property value. The most recent date and time when Microsoft Defender Threat Intelligence observed this web component. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014, is 2014-01-01T00:00:00Z.
* @param value Value to set for the lastSeenDateTime property.
*/
public void setLastSeenDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) {
this.backingStore.set("lastSeenDateTime", value);
}
/**
* Sets the name property value. A name running on the artifact, for example, Microsoft IIS.
* @param value Value to set for the name property.
*/
public void setName(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("name", value);
}
/**
* Sets the version property value. The component version running on the artifact, for example, v8.5. This shouldn't be assumed to be strictly numerical.
* @param value Value to set for the version property.
*/
public void setVersion(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("version", value);
}
}