![JAR search and dependency download from the Maven repository](/logo.png)
com.microsoft.graph.generated.models.identitygovernance.UserProcessingResult Maven / Gradle / Ivy
package com.microsoft.graph.models.identitygovernance;
import com.microsoft.graph.models.Entity;
import com.microsoft.graph.models.User;
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 UserProcessingResult extends Entity implements Parsable {
/**
* Instantiates a new {@link UserProcessingResult} and sets the default values.
*/
public UserProcessingResult() {
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 UserProcessingResult}
*/
@jakarta.annotation.Nonnull
public static UserProcessingResult createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new UserProcessingResult();
}
/**
* Gets the completedDateTime property value. The date time that the workflow execution for a user completed. Value is null if the workflow hasn't completed.Supports $filter(lt, le, gt, ge, eq, ne) and $orderby.
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getCompletedDateTime() {
return this.backingStore.get("completedDateTime");
}
/**
* Gets the failedTasksCount property value. The number of tasks that failed in the workflow execution.
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getFailedTasksCount() {
return this.backingStore.get("failedTasksCount");
}
/**
* 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("completedDateTime", (n) -> { this.setCompletedDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("failedTasksCount", (n) -> { this.setFailedTasksCount(n.getIntegerValue()); });
deserializerMap.put("processingStatus", (n) -> { this.setProcessingStatus(n.getEnumValue(LifecycleWorkflowProcessingStatus::forValue)); });
deserializerMap.put("scheduledDateTime", (n) -> { this.setScheduledDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("startedDateTime", (n) -> { this.setStartedDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("subject", (n) -> { this.setSubject(n.getObjectValue(User::createFromDiscriminatorValue)); });
deserializerMap.put("taskProcessingResults", (n) -> { this.setTaskProcessingResults(n.getCollectionOfObjectValues(TaskProcessingResult::createFromDiscriminatorValue)); });
deserializerMap.put("totalTasksCount", (n) -> { this.setTotalTasksCount(n.getIntegerValue()); });
deserializerMap.put("totalUnprocessedTasksCount", (n) -> { this.setTotalUnprocessedTasksCount(n.getIntegerValue()); });
deserializerMap.put("workflowExecutionType", (n) -> { this.setWorkflowExecutionType(n.getEnumValue(WorkflowExecutionType::forValue)); });
deserializerMap.put("workflowVersion", (n) -> { this.setWorkflowVersion(n.getIntegerValue()); });
return deserializerMap;
}
/**
* Gets the processingStatus property value. The processingStatus property
* @return a {@link LifecycleWorkflowProcessingStatus}
*/
@jakarta.annotation.Nullable
public LifecycleWorkflowProcessingStatus getProcessingStatus() {
return this.backingStore.get("processingStatus");
}
/**
* Gets the scheduledDateTime property value. The date time that the workflow is scheduled to be executed for a user.Supports $filter(lt, le, gt, ge, eq, ne) and $orderby.
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getScheduledDateTime() {
return this.backingStore.get("scheduledDateTime");
}
/**
* Gets the startedDateTime property value. The date time that the workflow execution started. Value is null if the workflow execution has not started.Supports $filter(lt, le, gt, ge, eq, ne) and $orderby.
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getStartedDateTime() {
return this.backingStore.get("startedDateTime");
}
/**
* Gets the subject property value. The subject property
* @return a {@link User}
*/
@jakarta.annotation.Nullable
public User getSubject() {
return this.backingStore.get("subject");
}
/**
* Gets the taskProcessingResults property value. The associated individual task execution.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getTaskProcessingResults() {
return this.backingStore.get("taskProcessingResults");
}
/**
* Gets the totalTasksCount property value. The total number of tasks that in the workflow execution.
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getTotalTasksCount() {
return this.backingStore.get("totalTasksCount");
}
/**
* Gets the totalUnprocessedTasksCount property value. The total number of unprocessed tasks for the workflow.
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getTotalUnprocessedTasksCount() {
return this.backingStore.get("totalUnprocessedTasksCount");
}
/**
* Gets the workflowExecutionType property value. The workflowExecutionType property
* @return a {@link WorkflowExecutionType}
*/
@jakarta.annotation.Nullable
public WorkflowExecutionType getWorkflowExecutionType() {
return this.backingStore.get("workflowExecutionType");
}
/**
* Gets the workflowVersion property value. The version of the workflow that was executed.
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getWorkflowVersion() {
return this.backingStore.get("workflowVersion");
}
/**
* 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.writeOffsetDateTimeValue("completedDateTime", this.getCompletedDateTime());
writer.writeIntegerValue("failedTasksCount", this.getFailedTasksCount());
writer.writeEnumValue("processingStatus", this.getProcessingStatus());
writer.writeOffsetDateTimeValue("scheduledDateTime", this.getScheduledDateTime());
writer.writeOffsetDateTimeValue("startedDateTime", this.getStartedDateTime());
writer.writeObjectValue("subject", this.getSubject());
writer.writeCollectionOfObjectValues("taskProcessingResults", this.getTaskProcessingResults());
writer.writeIntegerValue("totalTasksCount", this.getTotalTasksCount());
writer.writeIntegerValue("totalUnprocessedTasksCount", this.getTotalUnprocessedTasksCount());
writer.writeEnumValue("workflowExecutionType", this.getWorkflowExecutionType());
writer.writeIntegerValue("workflowVersion", this.getWorkflowVersion());
}
/**
* Sets the completedDateTime property value. The date time that the workflow execution for a user completed. Value is null if the workflow hasn't completed.Supports $filter(lt, le, gt, ge, eq, ne) and $orderby.
* @param value Value to set for the completedDateTime property.
*/
public void setCompletedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) {
this.backingStore.set("completedDateTime", value);
}
/**
* Sets the failedTasksCount property value. The number of tasks that failed in the workflow execution.
* @param value Value to set for the failedTasksCount property.
*/
public void setFailedTasksCount(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("failedTasksCount", value);
}
/**
* Sets the processingStatus property value. The processingStatus property
* @param value Value to set for the processingStatus property.
*/
public void setProcessingStatus(@jakarta.annotation.Nullable final LifecycleWorkflowProcessingStatus value) {
this.backingStore.set("processingStatus", value);
}
/**
* Sets the scheduledDateTime property value. The date time that the workflow is scheduled to be executed for a user.Supports $filter(lt, le, gt, ge, eq, ne) and $orderby.
* @param value Value to set for the scheduledDateTime property.
*/
public void setScheduledDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) {
this.backingStore.set("scheduledDateTime", value);
}
/**
* Sets the startedDateTime property value. The date time that the workflow execution started. Value is null if the workflow execution has not started.Supports $filter(lt, le, gt, ge, eq, ne) and $orderby.
* @param value Value to set for the startedDateTime property.
*/
public void setStartedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) {
this.backingStore.set("startedDateTime", value);
}
/**
* Sets the subject property value. The subject property
* @param value Value to set for the subject property.
*/
public void setSubject(@jakarta.annotation.Nullable final User value) {
this.backingStore.set("subject", value);
}
/**
* Sets the taskProcessingResults property value. The associated individual task execution.
* @param value Value to set for the taskProcessingResults property.
*/
public void setTaskProcessingResults(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("taskProcessingResults", value);
}
/**
* Sets the totalTasksCount property value. The total number of tasks that in the workflow execution.
* @param value Value to set for the totalTasksCount property.
*/
public void setTotalTasksCount(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("totalTasksCount", value);
}
/**
* Sets the totalUnprocessedTasksCount property value. The total number of unprocessed tasks for the workflow.
* @param value Value to set for the totalUnprocessedTasksCount property.
*/
public void setTotalUnprocessedTasksCount(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("totalUnprocessedTasksCount", value);
}
/**
* Sets the workflowExecutionType property value. The workflowExecutionType property
* @param value Value to set for the workflowExecutionType property.
*/
public void setWorkflowExecutionType(@jakarta.annotation.Nullable final WorkflowExecutionType value) {
this.backingStore.set("workflowExecutionType", value);
}
/**
* Sets the workflowVersion property value. The version of the workflow that was executed.
* @param value Value to set for the workflowVersion property.
*/
public void setWorkflowVersion(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("workflowVersion", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy