
com.tencent.ads.model.AsyncTasksGetTaskListStruct Maven / Gradle / Ivy
/*
* Marketing API
* Marketing API
*
* OpenAPI spec version: 1.3
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.tencent.ads.model;
import com.google.gson.Gson;
import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;
/** 返回结构 */
@ApiModel(description = "返回结构")
public class AsyncTasksGetTaskListStruct {
@SerializedName("task_id")
private Long taskId = null;
@SerializedName("task_name")
private String taskName = null;
@SerializedName("task_type")
private TaskType taskType = null;
@SerializedName("status")
private TaskStatus status = null;
@SerializedName("created_time")
private Long createdTime = null;
@SerializedName("result")
private AsyncTasksGetResult result = null;
public AsyncTasksGetTaskListStruct taskId(Long taskId) {
this.taskId = taskId;
return this;
}
/**
* Get taskId
*
* @return taskId
*/
@ApiModelProperty(value = "")
public Long getTaskId() {
return taskId;
}
public void setTaskId(Long taskId) {
this.taskId = taskId;
}
public AsyncTasksGetTaskListStruct taskName(String taskName) {
this.taskName = taskName;
return this;
}
/**
* Get taskName
*
* @return taskName
*/
@ApiModelProperty(value = "")
public String getTaskName() {
return taskName;
}
public void setTaskName(String taskName) {
this.taskName = taskName;
}
public AsyncTasksGetTaskListStruct taskType(TaskType taskType) {
this.taskType = taskType;
return this;
}
/**
* Get taskType
*
* @return taskType
*/
@ApiModelProperty(value = "")
public TaskType getTaskType() {
return taskType;
}
public void setTaskType(TaskType taskType) {
this.taskType = taskType;
}
public AsyncTasksGetTaskListStruct status(TaskStatus status) {
this.status = status;
return this;
}
/**
* Get status
*
* @return status
*/
@ApiModelProperty(value = "")
public TaskStatus getStatus() {
return status;
}
public void setStatus(TaskStatus status) {
this.status = status;
}
public AsyncTasksGetTaskListStruct createdTime(Long createdTime) {
this.createdTime = createdTime;
return this;
}
/**
* Get createdTime
*
* @return createdTime
*/
@ApiModelProperty(value = "")
public Long getCreatedTime() {
return createdTime;
}
public void setCreatedTime(Long createdTime) {
this.createdTime = createdTime;
}
public AsyncTasksGetTaskListStruct result(AsyncTasksGetResult result) {
this.result = result;
return this;
}
/**
* Get result
*
* @return result
*/
@ApiModelProperty(value = "")
public AsyncTasksGetResult getResult() {
return result;
}
public void setResult(AsyncTasksGetResult result) {
this.result = result;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AsyncTasksGetTaskListStruct asyncTasksGetTaskListStruct = (AsyncTasksGetTaskListStruct) o;
return Objects.equals(this.taskId, asyncTasksGetTaskListStruct.taskId)
&& Objects.equals(this.taskName, asyncTasksGetTaskListStruct.taskName)
&& Objects.equals(this.taskType, asyncTasksGetTaskListStruct.taskType)
&& Objects.equals(this.status, asyncTasksGetTaskListStruct.status)
&& Objects.equals(this.createdTime, asyncTasksGetTaskListStruct.createdTime)
&& Objects.equals(this.result, asyncTasksGetTaskListStruct.result);
}
@Override
public int hashCode() {
return Objects.hash(taskId, taskName, taskType, status, createdTime, result);
}
@Override
public String toString() {
Gson gson = new Gson();
return gson.toJson(this);
}
/**
* Convert the given object to string with each line indented by 4 spaces (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy