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

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

There is a newer version: 2.0.37
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 DescribeEventsResponseBody} extends {@link TeaModel}
 *
 * 

DescribeEventsResponseBody

*/ public class DescribeEventsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("events") private java.util.List < Events> events; @com.aliyun.core.annotation.NameInMap("page_info") private PageInfo pageInfo; private DescribeEventsResponseBody(Builder builder) { this.events = builder.events; this.pageInfo = builder.pageInfo; } public static Builder builder() { return new Builder(); } public static DescribeEventsResponseBody create() { return builder().build(); } /** * @return events */ public java.util.List < Events> getEvents() { return this.events; } /** * @return pageInfo */ public PageInfo getPageInfo() { return this.pageInfo; } public static final class Builder { private java.util.List < Events> events; private PageInfo pageInfo; /** * The details of the event. */ public Builder events(java.util.List < Events> events) { this.events = events; return this; } /** * The pagination information. */ public Builder pageInfo(PageInfo pageInfo) { this.pageInfo = pageInfo; return this; } public DescribeEventsResponseBody build() { return new DescribeEventsResponseBody(this); } } public static class Data extends TeaModel { @com.aliyun.core.annotation.NameInMap("level") private String level; @com.aliyun.core.annotation.NameInMap("message") private String message; @com.aliyun.core.annotation.NameInMap("reason") private String reason; private Data(Builder builder) { this.level = builder.level; this.message = builder.message; this.reason = builder.reason; } public static Builder builder() { return new Builder(); } public static Data create() { return builder().build(); } /** * @return level */ public String getLevel() { return this.level; } /** * @return message */ public String getMessage() { return this.message; } /** * @return reason */ public String getReason() { return this.reason; } public static final class Builder { private String level; private String message; private String reason; /** * The severity level of the event. */ public Builder level(String level) { this.level = level; return this; } /** * The details of the event. */ public Builder message(String message) { this.message = message; return this; } /** * The status of the event. */ public Builder reason(String reason) { this.reason = reason; return this; } public Data build() { return new Data(this); } } } public static class Events extends TeaModel { @com.aliyun.core.annotation.NameInMap("cluster_id") private String clusterId; @com.aliyun.core.annotation.NameInMap("data") private Data data; @com.aliyun.core.annotation.NameInMap("event_id") private String eventId; @com.aliyun.core.annotation.NameInMap("source") private String source; @com.aliyun.core.annotation.NameInMap("subject") private String subject; @com.aliyun.core.annotation.NameInMap("time") private String time; @com.aliyun.core.annotation.NameInMap("type") private String type; private Events(Builder builder) { this.clusterId = builder.clusterId; this.data = builder.data; this.eventId = builder.eventId; this.source = builder.source; this.subject = builder.subject; this.time = builder.time; this.type = builder.type; } public static Builder builder() { return new Builder(); } public static Events create() { return builder().build(); } /** * @return clusterId */ public String getClusterId() { return this.clusterId; } /** * @return data */ public Data getData() { return this.data; } /** * @return eventId */ public String getEventId() { return this.eventId; } /** * @return source */ public String getSource() { return this.source; } /** * @return subject */ public String getSubject() { return this.subject; } /** * @return time */ public String getTime() { return this.time; } /** * @return type */ public String getType() { return this.type; } public static final class Builder { private String clusterId; private Data data; private String eventId; private String source; private String subject; private String time; private String type; /** * The ID of the cluster. */ public Builder clusterId(String clusterId) { this.clusterId = clusterId; return this; } /** * The description of the event. */ public Builder data(Data data) { this.data = data; return this; } /** * The event ID. */ public Builder eventId(String eventId) { this.eventId = eventId; return this; } /** * The source of the event. */ public Builder source(String source) { this.source = source; return this; } /** * The subject of the event. */ public Builder subject(String subject) { this.subject = subject; return this; } /** * The time when the event started. */ public Builder time(String time) { this.time = time; return this; } /** * The event type. Valid values: *

* * * `cluster_create`: cluster creation. * * `cluster_scaleout`: cluster scale-out. * * `cluster_attach`: node addition. * * `cluster_delete`: cluster deletion. * * `cluster_upgrade`: cluster upgrades. * * `cluster_migrate`: cluster migration. * * `cluster_node_delete`: node removal. * * `cluster_node_drain`: node draining. * * `cluster_modify`: cluster modifications. * * `cluster_configuration_modify`: modifications of control plane configurations. * * `cluster_addon_install`: component installation. * * `cluster_addon_upgrade`: component updates. * * `cluster_addon_uninstall`: component uninstallation. * * `runtime_upgrade`: runtime updates. * * `nodepool_upgrade`: node pool upgrades. * * `nodepool_update`: node pool updates. */ public Builder type(String type) { this.type = type; return this; } public Events build() { return new Events(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 page number. */ 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); } } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy