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.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 UserSimulationDetails implements AdditionalDataHolder, BackedModel, Parsable {
/**
* Stores model information.
*/
@jakarta.annotation.Nonnull
protected BackingStore backingStore;
/**
* Instantiates a new {@link UserSimulationDetails} and sets the default values.
*/
public UserSimulationDetails() {
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 UserSimulationDetails}
*/
@jakarta.annotation.Nonnull
public static UserSimulationDetails createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new UserSimulationDetails();
}
/**
* 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 assignedTrainingsCount property value. Number of trainings assigned to a user in an attack simulation and training campaign.
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getAssignedTrainingsCount() {
return this.backingStore.get("assignedTrainingsCount");
}
/**
* Gets the backingStore property value. Stores model information.
* @return a {@link BackingStore}
*/
@jakarta.annotation.Nonnull
public BackingStore getBackingStore() {
return this.backingStore;
}
/**
* Gets the completedTrainingsCount property value. Number of trainings completed by a user in an attack simulation and training campaign.
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getCompletedTrainingsCount() {
return this.backingStore.get("completedTrainingsCount");
}
/**
* Gets the compromisedDateTime property value. Date and time of the compromising online action by a user in an attack simulation and training campaign.
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getCompromisedDateTime() {
return this.backingStore.get("compromisedDateTime");
}
/**
* The deserialization information for the current model
* @return a {@link Map>}
*/
@jakarta.annotation.Nonnull
public Map> getFieldDeserializers() {
final HashMap> deserializerMap = new HashMap>(10);
deserializerMap.put("assignedTrainingsCount", (n) -> { this.setAssignedTrainingsCount(n.getIntegerValue()); });
deserializerMap.put("completedTrainingsCount", (n) -> { this.setCompletedTrainingsCount(n.getIntegerValue()); });
deserializerMap.put("compromisedDateTime", (n) -> { this.setCompromisedDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("inProgressTrainingsCount", (n) -> { this.setInProgressTrainingsCount(n.getIntegerValue()); });
deserializerMap.put("isCompromised", (n) -> { this.setIsCompromised(n.getBooleanValue()); });
deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); });
deserializerMap.put("reportedPhishDateTime", (n) -> { this.setReportedPhishDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("simulationEvents", (n) -> { this.setSimulationEvents(n.getCollectionOfObjectValues(UserSimulationEventInfo::createFromDiscriminatorValue)); });
deserializerMap.put("simulationUser", (n) -> { this.setSimulationUser(n.getObjectValue(AttackSimulationUser::createFromDiscriminatorValue)); });
deserializerMap.put("trainingEvents", (n) -> { this.setTrainingEvents(n.getCollectionOfObjectValues(UserTrainingEventInfo::createFromDiscriminatorValue)); });
return deserializerMap;
}
/**
* Gets the inProgressTrainingsCount property value. Number of trainings in progress by a user in an attack simulation and training campaign.
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getInProgressTrainingsCount() {
return this.backingStore.get("inProgressTrainingsCount");
}
/**
* Gets the isCompromised property value. Indicates whether a user was compromised in an attack simulation and training campaign.
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getIsCompromised() {
return this.backingStore.get("isCompromised");
}
/**
* 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 reportedPhishDateTime property value. Date and time when a user reported the delivered payload as phishing in the attack simulation and training campaign.
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getReportedPhishDateTime() {
return this.backingStore.get("reportedPhishDateTime");
}
/**
* Gets the simulationEvents property value. List of simulation events of a user in the attack simulation and training campaign.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getSimulationEvents() {
return this.backingStore.get("simulationEvents");
}
/**
* Gets the simulationUser property value. User in an attack simulation and training campaign.
* @return a {@link AttackSimulationUser}
*/
@jakarta.annotation.Nullable
public AttackSimulationUser getSimulationUser() {
return this.backingStore.get("simulationUser");
}
/**
* Gets the trainingEvents property value. List of training events of a user in the attack simulation and training campaign.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getTrainingEvents() {
return this.backingStore.get("trainingEvents");
}
/**
* 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("assignedTrainingsCount", this.getAssignedTrainingsCount());
writer.writeIntegerValue("completedTrainingsCount", this.getCompletedTrainingsCount());
writer.writeOffsetDateTimeValue("compromisedDateTime", this.getCompromisedDateTime());
writer.writeIntegerValue("inProgressTrainingsCount", this.getInProgressTrainingsCount());
writer.writeBooleanValue("isCompromised", this.getIsCompromised());
writer.writeStringValue("@odata.type", this.getOdataType());
writer.writeOffsetDateTimeValue("reportedPhishDateTime", this.getReportedPhishDateTime());
writer.writeCollectionOfObjectValues("simulationEvents", this.getSimulationEvents());
writer.writeObjectValue("simulationUser", this.getSimulationUser());
writer.writeCollectionOfObjectValues("trainingEvents", this.getTrainingEvents());
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 assignedTrainingsCount property value. Number of trainings assigned to a user in an attack simulation and training campaign.
* @param value Value to set for the assignedTrainingsCount property.
*/
public void setAssignedTrainingsCount(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("assignedTrainingsCount", 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 completedTrainingsCount property value. Number of trainings completed by a user in an attack simulation and training campaign.
* @param value Value to set for the completedTrainingsCount property.
*/
public void setCompletedTrainingsCount(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("completedTrainingsCount", value);
}
/**
* Sets the compromisedDateTime property value. Date and time of the compromising online action by a user in an attack simulation and training campaign.
* @param value Value to set for the compromisedDateTime property.
*/
public void setCompromisedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) {
this.backingStore.set("compromisedDateTime", value);
}
/**
* Sets the inProgressTrainingsCount property value. Number of trainings in progress by a user in an attack simulation and training campaign.
* @param value Value to set for the inProgressTrainingsCount property.
*/
public void setInProgressTrainingsCount(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("inProgressTrainingsCount", value);
}
/**
* Sets the isCompromised property value. Indicates whether a user was compromised in an attack simulation and training campaign.
* @param value Value to set for the isCompromised property.
*/
public void setIsCompromised(@jakarta.annotation.Nullable final Boolean value) {
this.backingStore.set("isCompromised", 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 reportedPhishDateTime property value. Date and time when a user reported the delivered payload as phishing in the attack simulation and training campaign.
* @param value Value to set for the reportedPhishDateTime property.
*/
public void setReportedPhishDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) {
this.backingStore.set("reportedPhishDateTime", value);
}
/**
* Sets the simulationEvents property value. List of simulation events of a user in the attack simulation and training campaign.
* @param value Value to set for the simulationEvents property.
*/
public void setSimulationEvents(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("simulationEvents", value);
}
/**
* Sets the simulationUser property value. User in an attack simulation and training campaign.
* @param value Value to set for the simulationUser property.
*/
public void setSimulationUser(@jakarta.annotation.Nullable final AttackSimulationUser value) {
this.backingStore.set("simulationUser", value);
}
/**
* Sets the trainingEvents property value. List of training events of a user in the attack simulation and training campaign.
* @param value Value to set for the trainingEvents property.
*/
public void setTrainingEvents(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("trainingEvents", value);
}
}