All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.sdk.service.cs20151215.models.DescribeClusterTasksResponseBody Maven / Gradle / Ivy

There is a newer version: 2.0.29
Show newest version
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.cs20151215.models;

import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;

/**
 * {@link DescribeClusterTasksResponseBody} extends {@link TeaModel}
 *
 * 

DescribeClusterTasksResponseBody

*/ public class DescribeClusterTasksResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("page_info") private PageInfo pageInfo; @com.aliyun.core.annotation.NameInMap("requestId") private String requestId; @com.aliyun.core.annotation.NameInMap("tasks") private java.util.List < Tasks> tasks; private DescribeClusterTasksResponseBody(Builder builder) { this.pageInfo = builder.pageInfo; this.requestId = builder.requestId; this.tasks = builder.tasks; } public static Builder builder() { return new Builder(); } public static DescribeClusterTasksResponseBody create() { return builder().build(); } /** * @return pageInfo */ public PageInfo getPageInfo() { return this.pageInfo; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return tasks */ public java.util.List < Tasks> getTasks() { return this.tasks; } public static final class Builder { private PageInfo pageInfo; private String requestId; private java.util.List < Tasks> tasks; /** * The pagination information. */ public Builder pageInfo(PageInfo pageInfo) { this.pageInfo = pageInfo; return this; } /** * The request ID. */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * The information about the tasks. */ public Builder tasks(java.util.List < Tasks> tasks) { this.tasks = tasks; return this; } public DescribeClusterTasksResponseBody build() { return new DescribeClusterTasksResponseBody(this); } } public static class PageInfo extends TeaModel { @com.aliyun.core.annotation.NameInMap("page_number") private Long pageNumber; @com.aliyun.core.annotation.NameInMap("page_size") private Long pageSize; @com.aliyun.core.annotation.NameInMap("total_count") private Long totalCount; private PageInfo(Builder builder) { this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static PageInfo create() { return builder().build(); } /** * @return pageNumber */ public Long getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Long getPageSize() { return this.pageSize; } /** * @return totalCount */ public Long getTotalCount() { return this.totalCount; } public static final class Builder { private Long pageNumber; private Long pageSize; private Long totalCount; /** * The number of the page returned. */ public Builder pageNumber(Long pageNumber) { this.pageNumber = pageNumber; return this; } /** * The number of entries per page. */ public Builder pageSize(Long pageSize) { this.pageSize = pageSize; return this; } /** * The total number of entries returned. */ public Builder totalCount(Long totalCount) { this.totalCount = totalCount; return this; } public PageInfo build() { return new PageInfo(this); } } } public static class Error extends TeaModel { @com.aliyun.core.annotation.NameInMap("code") private String code; @com.aliyun.core.annotation.NameInMap("message") private String message; private Error(Builder builder) { this.code = builder.code; this.message = builder.message; } public static Builder builder() { return new Builder(); } public static Error create() { return builder().build(); } /** * @return code */ public String getCode() { return this.code; } /** * @return message */ public String getMessage() { return this.message; } public static final class Builder { private String code; private String message; /** * The error code returned. */ public Builder code(String code) { this.code = code; return this; } /** * The error message returned. */ public Builder message(String message) { this.message = message; return this; } public Error build() { return new Error(this); } } } public static class Tasks extends TeaModel { @com.aliyun.core.annotation.NameInMap("created") private String created; @com.aliyun.core.annotation.NameInMap("error") private Error error; @com.aliyun.core.annotation.NameInMap("state") private String state; @com.aliyun.core.annotation.NameInMap("task_id") private String taskId; @com.aliyun.core.annotation.NameInMap("task_type") private String taskType; @com.aliyun.core.annotation.NameInMap("updated") private String updated; private Tasks(Builder builder) { this.created = builder.created; this.error = builder.error; this.state = builder.state; this.taskId = builder.taskId; this.taskType = builder.taskType; this.updated = builder.updated; } public static Builder builder() { return new Builder(); } public static Tasks create() { return builder().build(); } /** * @return created */ public String getCreated() { return this.created; } /** * @return error */ public Error getError() { return this.error; } /** * @return state */ public String getState() { return this.state; } /** * @return taskId */ public String getTaskId() { return this.taskId; } /** * @return taskType */ public String getTaskType() { return this.taskType; } /** * @return updated */ public String getUpdated() { return this.updated; } public static final class Builder { private String created; private Error error; private String state; private String taskId; private String taskType; private String updated; /** * The time when the task was created. */ public Builder created(String created) { this.created = created; return this; } /** * The error returned for the task. */ public Builder error(Error error) { this.error = error; return this; } /** * The status of the task. */ public Builder state(String state) { this.state = state; return this; } /** * The task ID. */ public Builder taskId(String taskId) { this.taskId = taskId; return this; } /** * The type of task. */ public Builder taskType(String taskType) { this.taskType = taskType; return this; } /** * The time when the task was updated. */ public Builder updated(String updated) { this.updated = updated; return this; } public Tasks build() { return new Tasks(this); } } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy