TaskState.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.ai.textanalytics.implementation.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
/** The TaskState model. */
@Fluent
public class TaskState {
/*
* The lastUpdateDateTime property.
*/
@JsonProperty(value = "lastUpdateDateTime", required = true)
private OffsetDateTime lastUpdateDateTime;
/*
* The taskName property.
*/
@JsonProperty(value = "taskName", required = true)
private String taskName;
/*
* The status property.
*/
@JsonProperty(value = "status", required = true)
private State status;
/**
* Get the lastUpdateDateTime property: The lastUpdateDateTime property.
*
* @return the lastUpdateDateTime value.
*/
public OffsetDateTime getLastUpdateDateTime() {
return this.lastUpdateDateTime;
}
/**
* Set the lastUpdateDateTime property: The lastUpdateDateTime property.
*
* @param lastUpdateDateTime the lastUpdateDateTime value to set.
* @return the TaskState object itself.
*/
public TaskState setLastUpdateDateTime(OffsetDateTime lastUpdateDateTime) {
this.lastUpdateDateTime = lastUpdateDateTime;
return this;
}
/**
* Get the taskName property: The taskName property.
*
* @return the taskName value.
*/
public String getTaskName() {
return this.taskName;
}
/**
* Set the taskName property: The taskName property.
*
* @param taskName the taskName value to set.
* @return the TaskState object itself.
*/
public TaskState setTaskName(String taskName) {
this.taskName = taskName;
return this;
}
/**
* Get the status property: The status property.
*
* @return the status value.
*/
public State getStatus() {
return this.status;
}
/**
* Set the status property: The status property.
*
* @param status the status value to set.
* @return the TaskState object itself.
*/
public TaskState setStatus(State status) {
this.status = status;
return this;
}
}