
com.aliyun.sdk.service.cs20151215.models.DescribeClusterEventsResponseBody Maven / Gradle / Ivy
// 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 DescribeClusterEventsResponseBody} extends {@link TeaModel}
*
* DescribeClusterEventsResponseBody
*/
public class DescribeClusterEventsResponseBody 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 DescribeClusterEventsResponseBody(Builder builder) {
this.events = builder.events;
this.pageInfo = builder.pageInfo;
}
public static Builder builder() {
return new Builder();
}
public static DescribeClusterEventsResponseBody 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 list of events.
*/
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 DescribeClusterEventsResponseBody build() {
return new DescribeClusterEventsResponseBody(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.
*
*
* Valid values:
*
* * warning
*
*
*
*
*
*
*
* * error
*
*
*
*
*
*
*
* * info
*
*
*
*
*
*
*/
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 event source.
*/
public Builder source(String source) {
this.source = source;
return this;
}
/**
* The subject related to 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 type of event. Valid values:
*/
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 number of the page to return.
*/
public Builder pageNumber(Long pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* The number of entries per page. Valid values: 1 to 50. Default value: 50.
*/
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);
}
}
}
}