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;
import com.microsoft.graph.models.security.Alert;
import com.microsoft.graph.models.security.CasesRoot;
import com.microsoft.graph.models.security.IdentityContainer;
import com.microsoft.graph.models.security.Incident;
import com.microsoft.graph.models.security.LabelsRoot;
import com.microsoft.graph.models.security.ThreatIntelligence;
import com.microsoft.graph.models.security.TriggersRoot;
import com.microsoft.graph.models.security.TriggerTypesRoot;
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;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class Security extends Entity implements Parsable {
/**
* Instantiates a new {@link Security} and sets the default values.
*/
public Security() {
super();
}
/**
* 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 Security}
*/
@jakarta.annotation.Nonnull
public static Security createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new Security();
}
/**
* Gets the alerts property value. The alerts property
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getAlerts() {
return this.backingStore.get("alerts");
}
/**
* Gets the alerts_v2 property value. A collection of alerts in Microsoft 365 Defender.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getAlertsV2() {
return this.backingStore.get("alertsV2");
}
/**
* Gets the attackSimulation property value. The attackSimulation property
* @return a {@link AttackSimulationRoot}
*/
@jakarta.annotation.Nullable
public AttackSimulationRoot getAttackSimulation() {
return this.backingStore.get("attackSimulation");
}
/**
* Gets the cases property value. The cases property
* @return a {@link CasesRoot}
*/
@jakarta.annotation.Nullable
public CasesRoot getCases() {
return this.backingStore.get("cases");
}
/**
* 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("alerts", (n) -> { this.setAlerts(n.getCollectionOfObjectValues(Alert::createFromDiscriminatorValue)); });
deserializerMap.put("alerts_v2", (n) -> { this.setAlertsV2(n.getCollectionOfObjectValues(Alert::createFromDiscriminatorValue)); });
deserializerMap.put("attackSimulation", (n) -> { this.setAttackSimulation(n.getObjectValue(AttackSimulationRoot::createFromDiscriminatorValue)); });
deserializerMap.put("cases", (n) -> { this.setCases(n.getObjectValue(CasesRoot::createFromDiscriminatorValue)); });
deserializerMap.put("identities", (n) -> { this.setIdentities(n.getObjectValue(IdentityContainer::createFromDiscriminatorValue)); });
deserializerMap.put("incidents", (n) -> { this.setIncidents(n.getCollectionOfObjectValues(Incident::createFromDiscriminatorValue)); });
deserializerMap.put("labels", (n) -> { this.setLabels(n.getObjectValue(LabelsRoot::createFromDiscriminatorValue)); });
deserializerMap.put("secureScoreControlProfiles", (n) -> { this.setSecureScoreControlProfiles(n.getCollectionOfObjectValues(SecureScoreControlProfile::createFromDiscriminatorValue)); });
deserializerMap.put("secureScores", (n) -> { this.setSecureScores(n.getCollectionOfObjectValues(SecureScore::createFromDiscriminatorValue)); });
deserializerMap.put("subjectRightsRequests", (n) -> { this.setSubjectRightsRequests(n.getCollectionOfObjectValues(SubjectRightsRequest::createFromDiscriminatorValue)); });
deserializerMap.put("threatIntelligence", (n) -> { this.setThreatIntelligence(n.getObjectValue(ThreatIntelligence::createFromDiscriminatorValue)); });
deserializerMap.put("triggers", (n) -> { this.setTriggers(n.getObjectValue(TriggersRoot::createFromDiscriminatorValue)); });
deserializerMap.put("triggerTypes", (n) -> { this.setTriggerTypes(n.getObjectValue(TriggerTypesRoot::createFromDiscriminatorValue)); });
return deserializerMap;
}
/**
* Gets the identities property value. The identities property
* @return a {@link IdentityContainer}
*/
@jakarta.annotation.Nullable
public IdentityContainer getIdentities() {
return this.backingStore.get("identities");
}
/**
* Gets the incidents property value. A collection of incidents in Microsoft 365 Defender, each of which is a set of correlated alerts and associated metadata that reflects the story of an attack.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getIncidents() {
return this.backingStore.get("incidents");
}
/**
* Gets the labels property value. The labels property
* @return a {@link LabelsRoot}
*/
@jakarta.annotation.Nullable
public LabelsRoot getLabels() {
return this.backingStore.get("labels");
}
/**
* Gets the secureScoreControlProfiles property value. The secureScoreControlProfiles property
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getSecureScoreControlProfiles() {
return this.backingStore.get("secureScoreControlProfiles");
}
/**
* Gets the secureScores property value. The secureScores property
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getSecureScores() {
return this.backingStore.get("secureScores");
}
/**
* Gets the subjectRightsRequests property value. The subjectRightsRequests property
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getSubjectRightsRequests() {
return this.backingStore.get("subjectRightsRequests");
}
/**
* Gets the threatIntelligence property value. The threatIntelligence property
* @return a {@link ThreatIntelligence}
*/
@jakarta.annotation.Nullable
public ThreatIntelligence getThreatIntelligence() {
return this.backingStore.get("threatIntelligence");
}
/**
* Gets the triggers property value. The triggers property
* @return a {@link TriggersRoot}
*/
@jakarta.annotation.Nullable
public TriggersRoot getTriggers() {
return this.backingStore.get("triggers");
}
/**
* Gets the triggerTypes property value. The triggerTypes property
* @return a {@link TriggerTypesRoot}
*/
@jakarta.annotation.Nullable
public TriggerTypesRoot getTriggerTypes() {
return this.backingStore.get("triggerTypes");
}
/**
* 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.writeCollectionOfObjectValues("alerts", this.getAlerts());
writer.writeCollectionOfObjectValues("alerts_v2", this.getAlertsV2());
writer.writeObjectValue("attackSimulation", this.getAttackSimulation());
writer.writeObjectValue("cases", this.getCases());
writer.writeObjectValue("identities", this.getIdentities());
writer.writeCollectionOfObjectValues("incidents", this.getIncidents());
writer.writeObjectValue("labels", this.getLabels());
writer.writeCollectionOfObjectValues("secureScoreControlProfiles", this.getSecureScoreControlProfiles());
writer.writeCollectionOfObjectValues("secureScores", this.getSecureScores());
writer.writeCollectionOfObjectValues("subjectRightsRequests", this.getSubjectRightsRequests());
writer.writeObjectValue("threatIntelligence", this.getThreatIntelligence());
writer.writeObjectValue("triggers", this.getTriggers());
writer.writeObjectValue("triggerTypes", this.getTriggerTypes());
}
/**
* Sets the alerts property value. The alerts property
* @param value Value to set for the alerts property.
*/
public void setAlerts(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("alerts", value);
}
/**
* Sets the alerts_v2 property value. A collection of alerts in Microsoft 365 Defender.
* @param value Value to set for the alerts_v2 property.
*/
public void setAlertsV2(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("alertsV2", value);
}
/**
* Sets the attackSimulation property value. The attackSimulation property
* @param value Value to set for the attackSimulation property.
*/
public void setAttackSimulation(@jakarta.annotation.Nullable final AttackSimulationRoot value) {
this.backingStore.set("attackSimulation", value);
}
/**
* Sets the cases property value. The cases property
* @param value Value to set for the cases property.
*/
public void setCases(@jakarta.annotation.Nullable final CasesRoot value) {
this.backingStore.set("cases", value);
}
/**
* Sets the identities property value. The identities property
* @param value Value to set for the identities property.
*/
public void setIdentities(@jakarta.annotation.Nullable final IdentityContainer value) {
this.backingStore.set("identities", value);
}
/**
* Sets the incidents property value. A collection of incidents in Microsoft 365 Defender, each of which is a set of correlated alerts and associated metadata that reflects the story of an attack.
* @param value Value to set for the incidents property.
*/
public void setIncidents(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("incidents", value);
}
/**
* Sets the labels property value. The labels property
* @param value Value to set for the labels property.
*/
public void setLabels(@jakarta.annotation.Nullable final LabelsRoot value) {
this.backingStore.set("labels", value);
}
/**
* Sets the secureScoreControlProfiles property value. The secureScoreControlProfiles property
* @param value Value to set for the secureScoreControlProfiles property.
*/
public void setSecureScoreControlProfiles(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("secureScoreControlProfiles", value);
}
/**
* Sets the secureScores property value. The secureScores property
* @param value Value to set for the secureScores property.
*/
public void setSecureScores(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("secureScores", value);
}
/**
* Sets the subjectRightsRequests property value. The subjectRightsRequests property
* @param value Value to set for the subjectRightsRequests property.
*/
public void setSubjectRightsRequests(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("subjectRightsRequests", value);
}
/**
* Sets the threatIntelligence property value. The threatIntelligence property
* @param value Value to set for the threatIntelligence property.
*/
public void setThreatIntelligence(@jakarta.annotation.Nullable final ThreatIntelligence value) {
this.backingStore.set("threatIntelligence", value);
}
/**
* Sets the triggers property value. The triggers property
* @param value Value to set for the triggers property.
*/
public void setTriggers(@jakarta.annotation.Nullable final TriggersRoot value) {
this.backingStore.set("triggers", value);
}
/**
* Sets the triggerTypes property value. The triggerTypes property
* @param value Value to set for the triggerTypes property.
*/
public void setTriggerTypes(@jakarta.annotation.Nullable final TriggerTypesRoot value) {
this.backingStore.set("triggerTypes", value);
}
}