com.microsoft.graph.generated.models.WindowsDefenderAdvancedThreatProtectionConfiguration Maven / Gradle / Ivy
package com.microsoft.graph.models;
import com.microsoft.kiota.serialization.Parsable;
import com.microsoft.kiota.serialization.ParseNode;
import com.microsoft.kiota.serialization.SerializationWriter;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
/**
* Windows Defender AdvancedThreatProtection Configuration.
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class WindowsDefenderAdvancedThreatProtectionConfiguration extends DeviceConfiguration implements Parsable {
/**
* Instantiates a new {@link WindowsDefenderAdvancedThreatProtectionConfiguration} and sets the default values.
*/
public WindowsDefenderAdvancedThreatProtectionConfiguration() {
super();
this.setOdataType("#microsoft.graph.windowsDefenderAdvancedThreatProtectionConfiguration");
}
/**
* 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 WindowsDefenderAdvancedThreatProtectionConfiguration}
*/
@jakarta.annotation.Nonnull
public static WindowsDefenderAdvancedThreatProtectionConfiguration createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new WindowsDefenderAdvancedThreatProtectionConfiguration();
}
/**
* Gets the allowSampleSharing property value. Windows Defender AdvancedThreatProtection 'Allow Sample Sharing' Rule
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getAllowSampleSharing() {
return this.backingStore.get("allowSampleSharing");
}
/**
* Gets the enableExpeditedTelemetryReporting property value. Expedite Windows Defender Advanced Threat Protection telemetry reporting frequency.
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getEnableExpeditedTelemetryReporting() {
return this.backingStore.get("enableExpeditedTelemetryReporting");
}
/**
* 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("allowSampleSharing", (n) -> { this.setAllowSampleSharing(n.getBooleanValue()); });
deserializerMap.put("enableExpeditedTelemetryReporting", (n) -> { this.setEnableExpeditedTelemetryReporting(n.getBooleanValue()); });
return deserializerMap;
}
/**
* 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.writeBooleanValue("allowSampleSharing", this.getAllowSampleSharing());
writer.writeBooleanValue("enableExpeditedTelemetryReporting", this.getEnableExpeditedTelemetryReporting());
}
/**
* Sets the allowSampleSharing property value. Windows Defender AdvancedThreatProtection 'Allow Sample Sharing' Rule
* @param value Value to set for the allowSampleSharing property.
*/
public void setAllowSampleSharing(@jakarta.annotation.Nullable final Boolean value) {
this.backingStore.set("allowSampleSharing", value);
}
/**
* Sets the enableExpeditedTelemetryReporting property value. Expedite Windows Defender Advanced Threat Protection telemetry reporting frequency.
* @param value Value to set for the enableExpeditedTelemetryReporting property.
*/
public void setEnableExpeditedTelemetryReporting(@jakarta.annotation.Nullable final Boolean value) {
this.backingStore.set("enableExpeditedTelemetryReporting", value);
}
}