com.microsoft.graph.beta.generated.models.networkaccess.Destination Maven / Gradle / Ivy
package com.microsoft.graph.beta.models.networkaccess;
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 Destination implements AdditionalDataHolder, BackedModel, Parsable {
/**
* Stores model information.
*/
@jakarta.annotation.Nonnull
protected BackingStore backingStore;
/**
* Instantiates a new {@link Destination} and sets the default values.
*/
public Destination() {
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 Destination}
*/
@jakarta.annotation.Nonnull
public static Destination createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new Destination();
}
/**
* 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 backingStore property value. Stores model information.
* @return a {@link BackingStore}
*/
@jakarta.annotation.Nonnull
public BackingStore getBackingStore() {
return this.backingStore;
}
/**
* Gets the deviceCount property value. The number of unique devices that were seen.
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getDeviceCount() {
return this.backingStore.get("deviceCount");
}
/**
* The deserialization information for the current model
* @return a {@link Map>}
*/
@jakarta.annotation.Nonnull
public Map> getFieldDeserializers() {
final HashMap> deserializerMap = new HashMap>(14);
deserializerMap.put("deviceCount", (n) -> { this.setDeviceCount(n.getIntegerValue()); });
deserializerMap.put("firstAccessDateTime", (n) -> { this.setFirstAccessDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("fqdn", (n) -> { this.setFqdn(n.getStringValue()); });
deserializerMap.put("ip", (n) -> { this.setIp(n.getStringValue()); });
deserializerMap.put("lastAccessDateTime", (n) -> { this.setLastAccessDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("networkingProtocol", (n) -> { this.setNetworkingProtocol(n.getEnumValue(NetworkingProtocol::forValue)); });
deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); });
deserializerMap.put("port", (n) -> { this.setPort(n.getIntegerValue()); });
deserializerMap.put("threatCount", (n) -> { this.setThreatCount(n.getIntegerValue()); });
deserializerMap.put("totalBytesReceived", (n) -> { this.setTotalBytesReceived(n.getLongValue()); });
deserializerMap.put("totalBytesSent", (n) -> { this.setTotalBytesSent(n.getLongValue()); });
deserializerMap.put("trafficType", (n) -> { this.setTrafficType(n.getEnumValue(TrafficType::forValue)); });
deserializerMap.put("transactionCount", (n) -> { this.setTransactionCount(n.getIntegerValue()); });
deserializerMap.put("userCount", (n) -> { this.setUserCount(n.getIntegerValue()); });
return deserializerMap;
}
/**
* Gets the firstAccessDateTime property value. The firstAccessDateTime property
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getFirstAccessDateTime() {
return this.backingStore.get("firstAccessDateTime");
}
/**
* Gets the fqdn property value. The fully qualified domain name (FQDN) of the destination.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getFqdn() {
return this.backingStore.get("fqdn");
}
/**
* Gets the ip property value. The internet protocol (IP) used to access the destination.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getIp() {
return this.backingStore.get("ip");
}
/**
* Gets the lastAccessDateTime property value. The most recent access DateTime.
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getLastAccessDateTime() {
return this.backingStore.get("lastAccessDateTime");
}
/**
* Gets the networkingProtocol property value. The networkingProtocol property
* @return a {@link NetworkingProtocol}
*/
@jakarta.annotation.Nullable
public NetworkingProtocol getNetworkingProtocol() {
return this.backingStore.get("networkingProtocol");
}
/**
* Gets the @odata.type property value. The OdataType property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getOdataType() {
return this.backingStore.get("odataType");
}
/**
* Gets the port property value. The numeric identifier that is associated with a specific endpoint in a network.
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getPort() {
return this.backingStore.get("port");
}
/**
* Gets the threatCount property value. The threatCount property
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getThreatCount() {
return this.backingStore.get("threatCount");
}
/**
* Gets the totalBytesReceived property value. The totalBytesReceived property
* @return a {@link Long}
*/
@jakarta.annotation.Nullable
public Long getTotalBytesReceived() {
return this.backingStore.get("totalBytesReceived");
}
/**
* Gets the totalBytesSent property value. The totalBytesSent property
* @return a {@link Long}
*/
@jakarta.annotation.Nullable
public Long getTotalBytesSent() {
return this.backingStore.get("totalBytesSent");
}
/**
* Gets the trafficType property value. The trafficType property
* @return a {@link TrafficType}
*/
@jakarta.annotation.Nullable
public TrafficType getTrafficType() {
return this.backingStore.get("trafficType");
}
/**
* Gets the transactionCount property value. The number of transactions.
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getTransactionCount() {
return this.backingStore.get("transactionCount");
}
/**
* Gets the userCount property value. The number of unique Microsoft Entra ID users that were seen.
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getUserCount() {
return this.backingStore.get("userCount");
}
/**
* 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.writeIntegerValue("deviceCount", this.getDeviceCount());
writer.writeOffsetDateTimeValue("firstAccessDateTime", this.getFirstAccessDateTime());
writer.writeStringValue("fqdn", this.getFqdn());
writer.writeStringValue("ip", this.getIp());
writer.writeOffsetDateTimeValue("lastAccessDateTime", this.getLastAccessDateTime());
writer.writeEnumValue("networkingProtocol", this.getNetworkingProtocol());
writer.writeStringValue("@odata.type", this.getOdataType());
writer.writeIntegerValue("port", this.getPort());
writer.writeIntegerValue("threatCount", this.getThreatCount());
writer.writeLongValue("totalBytesReceived", this.getTotalBytesReceived());
writer.writeLongValue("totalBytesSent", this.getTotalBytesSent());
writer.writeEnumValue("trafficType", this.getTrafficType());
writer.writeIntegerValue("transactionCount", this.getTransactionCount());
writer.writeIntegerValue("userCount", this.getUserCount());
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 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 deviceCount property value. The number of unique devices that were seen.
* @param value Value to set for the deviceCount property.
*/
public void setDeviceCount(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("deviceCount", value);
}
/**
* Sets the firstAccessDateTime property value. The firstAccessDateTime property
* @param value Value to set for the firstAccessDateTime property.
*/
public void setFirstAccessDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) {
this.backingStore.set("firstAccessDateTime", value);
}
/**
* Sets the fqdn property value. The fully qualified domain name (FQDN) of the destination.
* @param value Value to set for the fqdn property.
*/
public void setFqdn(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("fqdn", value);
}
/**
* Sets the ip property value. The internet protocol (IP) used to access the destination.
* @param value Value to set for the ip property.
*/
public void setIp(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("ip", value);
}
/**
* Sets the lastAccessDateTime property value. The most recent access DateTime.
* @param value Value to set for the lastAccessDateTime property.
*/
public void setLastAccessDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) {
this.backingStore.set("lastAccessDateTime", value);
}
/**
* Sets the networkingProtocol property value. The networkingProtocol property
* @param value Value to set for the networkingProtocol property.
*/
public void setNetworkingProtocol(@jakarta.annotation.Nullable final NetworkingProtocol value) {
this.backingStore.set("networkingProtocol", 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);
}
/**
* Sets the port property value. The numeric identifier that is associated with a specific endpoint in a network.
* @param value Value to set for the port property.
*/
public void setPort(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("port", value);
}
/**
* Sets the threatCount property value. The threatCount property
* @param value Value to set for the threatCount property.
*/
public void setThreatCount(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("threatCount", value);
}
/**
* Sets the totalBytesReceived property value. The totalBytesReceived property
* @param value Value to set for the totalBytesReceived property.
*/
public void setTotalBytesReceived(@jakarta.annotation.Nullable final Long value) {
this.backingStore.set("totalBytesReceived", value);
}
/**
* Sets the totalBytesSent property value. The totalBytesSent property
* @param value Value to set for the totalBytesSent property.
*/
public void setTotalBytesSent(@jakarta.annotation.Nullable final Long value) {
this.backingStore.set("totalBytesSent", value);
}
/**
* Sets the trafficType property value. The trafficType property
* @param value Value to set for the trafficType property.
*/
public void setTrafficType(@jakarta.annotation.Nullable final TrafficType value) {
this.backingStore.set("trafficType", value);
}
/**
* Sets the transactionCount property value. The number of transactions.
* @param value Value to set for the transactionCount property.
*/
public void setTransactionCount(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("transactionCount", value);
}
/**
* Sets the userCount property value. The number of unique Microsoft Entra ID users that were seen.
* @param value Value to set for the userCount property.
*/
public void setUserCount(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("userCount", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy