
com.tencent.ads.model.BatchAsyncRequestsGetTaskListStruct 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.ArrayList;
import java.util.List;
import java.util.Objects;
/** 返回结构 */
@ApiModel(description = "返回结构")
public class BatchAsyncRequestsGetTaskListStruct {
@SerializedName("task_id")
private Long taskId = null;
@SerializedName("task_name")
private String taskName = null;
@SerializedName("task_type")
private TaskType taskType = null;
@SerializedName("task_scope")
private TaskScope taskScope = null;
@SerializedName("status")
private TaskStatus status = null;
@SerializedName("result_status")
private TaskResultStatus resultStatus = null;
@SerializedName("created_time")
private Long createdTime = null;
@SerializedName("end_time")
private Long endTime = null;
@SerializedName("scope_object_id_list")
private List scopeObjectIdList = null;
public BatchAsyncRequestsGetTaskListStruct 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 BatchAsyncRequestsGetTaskListStruct 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 BatchAsyncRequestsGetTaskListStruct 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 BatchAsyncRequestsGetTaskListStruct taskScope(TaskScope taskScope) {
this.taskScope = taskScope;
return this;
}
/**
* Get taskScope
*
* @return taskScope
*/
@ApiModelProperty(value = "")
public TaskScope getTaskScope() {
return taskScope;
}
public void setTaskScope(TaskScope taskScope) {
this.taskScope = taskScope;
}
public BatchAsyncRequestsGetTaskListStruct 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 BatchAsyncRequestsGetTaskListStruct resultStatus(TaskResultStatus resultStatus) {
this.resultStatus = resultStatus;
return this;
}
/**
* Get resultStatus
*
* @return resultStatus
*/
@ApiModelProperty(value = "")
public TaskResultStatus getResultStatus() {
return resultStatus;
}
public void setResultStatus(TaskResultStatus resultStatus) {
this.resultStatus = resultStatus;
}
public BatchAsyncRequestsGetTaskListStruct 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 BatchAsyncRequestsGetTaskListStruct endTime(Long endTime) {
this.endTime = endTime;
return this;
}
/**
* Get endTime
*
* @return endTime
*/
@ApiModelProperty(value = "")
public Long getEndTime() {
return endTime;
}
public void setEndTime(Long endTime) {
this.endTime = endTime;
}
public BatchAsyncRequestsGetTaskListStruct scopeObjectIdList(List scopeObjectIdList) {
this.scopeObjectIdList = scopeObjectIdList;
return this;
}
public BatchAsyncRequestsGetTaskListStruct addScopeObjectIdListItem(Long scopeObjectIdListItem) {
if (this.scopeObjectIdList == null) {
this.scopeObjectIdList = new ArrayList();
}
this.scopeObjectIdList.add(scopeObjectIdListItem);
return this;
}
/**
* Get scopeObjectIdList
*
* @return scopeObjectIdList
*/
@ApiModelProperty(value = "")
public List getScopeObjectIdList() {
return scopeObjectIdList;
}
public void setScopeObjectIdList(List scopeObjectIdList) {
this.scopeObjectIdList = scopeObjectIdList;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
BatchAsyncRequestsGetTaskListStruct batchAsyncRequestsGetTaskListStruct =
(BatchAsyncRequestsGetTaskListStruct) o;
return Objects.equals(this.taskId, batchAsyncRequestsGetTaskListStruct.taskId)
&& Objects.equals(this.taskName, batchAsyncRequestsGetTaskListStruct.taskName)
&& Objects.equals(this.taskType, batchAsyncRequestsGetTaskListStruct.taskType)
&& Objects.equals(this.taskScope, batchAsyncRequestsGetTaskListStruct.taskScope)
&& Objects.equals(this.status, batchAsyncRequestsGetTaskListStruct.status)
&& Objects.equals(this.resultStatus, batchAsyncRequestsGetTaskListStruct.resultStatus)
&& Objects.equals(this.createdTime, batchAsyncRequestsGetTaskListStruct.createdTime)
&& Objects.equals(this.endTime, batchAsyncRequestsGetTaskListStruct.endTime)
&& Objects.equals(
this.scopeObjectIdList, batchAsyncRequestsGetTaskListStruct.scopeObjectIdList);
}
@Override
public int hashCode() {
return Objects.hash(
taskId,
taskName,
taskType,
taskScope,
status,
resultStatus,
createdTime,
endTime,
scopeObjectIdList);
}
@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