com.aliyun.sdk.service.ecs20140526.models.DescribeDisksFullStatusResponseBody Maven / Gradle / Ivy
Show all versions of alibabacloud-ecs20140526 Show documentation
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.ecs20140526.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeDisksFullStatusResponseBody} extends {@link TeaModel}
*
* DescribeDisksFullStatusResponseBody
*/
public class DescribeDisksFullStatusResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DiskFullStatusSet")
private DiskFullStatusSet diskFullStatusSet;
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private DescribeDisksFullStatusResponseBody(Builder builder) {
this.diskFullStatusSet = builder.diskFullStatusSet;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDisksFullStatusResponseBody create() {
return builder().build();
}
/**
* @return diskFullStatusSet
*/
public DiskFullStatusSet getDiskFullStatusSet() {
return this.diskFullStatusSet;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private DiskFullStatusSet diskFullStatusSet;
private Integer pageNumber;
private Integer pageSize;
private String requestId;
private Integer totalCount;
/**
* The collection of full status information of the EBS devices.
*/
public Builder diskFullStatusSet(DiskFullStatusSet diskFullStatusSet) {
this.diskFullStatusSet = diskFullStatusSet;
return this;
}
/**
* The page number.
*
* example:
* 1
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* The number of entries per page.
*
* example:
* 10
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* The request ID.
*
* example:
* 473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* The total number of EBS devices for which full status information is returned.
*
* example:
* 2
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeDisksFullStatusResponseBody build() {
return new DescribeDisksFullStatusResponseBody(this);
}
}
/**
*
* {@link DescribeDisksFullStatusResponseBody} extends {@link TeaModel}
*
* DescribeDisksFullStatusResponseBody
*/
public static class EventType extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private Integer code;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
private EventType(Builder builder) {
this.code = builder.code;
this.name = builder.name;
}
public static Builder builder() {
return new Builder();
}
public static EventType create() {
return builder().build();
}
/**
* @return code
*/
public Integer getCode() {
return this.code;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
public static final class Builder {
private Integer code;
private String name;
/**
* The code of the event type.
*
* example:
* 7
*/
public Builder code(Integer code) {
this.code = code;
return this;
}
/**
* The name of the event type. Valid values:
*
* - Degraded: The performance of the EBS device is degraded.
* - SeverelyDegraded: The performance of the EBS device is severely degraded.
* - Stalled: The performance of the EBS device is severely affected.
* - ErrorDetected: The local disk is damaged.
*
*
* example:
* Stalled
*/
public Builder name(String name) {
this.name = name;
return this;
}
public EventType build() {
return new EventType(this);
}
}
}
/**
*
* {@link DescribeDisksFullStatusResponseBody} extends {@link TeaModel}
*
* DescribeDisksFullStatusResponseBody
*/
public static class DiskEventType extends TeaModel {
@com.aliyun.core.annotation.NameInMap("EventEndTime")
private String eventEndTime;
@com.aliyun.core.annotation.NameInMap("EventId")
private String eventId;
@com.aliyun.core.annotation.NameInMap("EventTime")
private String eventTime;
@com.aliyun.core.annotation.NameInMap("EventType")
private EventType eventType;
@com.aliyun.core.annotation.NameInMap("ImpactLevel")
private String impactLevel;
private DiskEventType(Builder builder) {
this.eventEndTime = builder.eventEndTime;
this.eventId = builder.eventId;
this.eventTime = builder.eventTime;
this.eventType = builder.eventType;
this.impactLevel = builder.impactLevel;
}
public static Builder builder() {
return new Builder();
}
public static DiskEventType create() {
return builder().build();
}
/**
* @return eventEndTime
*/
public String getEventEndTime() {
return this.eventEndTime;
}
/**
* @return eventId
*/
public String getEventId() {
return this.eventId;
}
/**
* @return eventTime
*/
public String getEventTime() {
return this.eventTime;
}
/**
* @return eventType
*/
public EventType getEventType() {
return this.eventType;
}
/**
* @return impactLevel
*/
public String getImpactLevel() {
return this.impactLevel;
}
public static final class Builder {
private String eventEndTime;
private String eventId;
private String eventTime;
private EventType eventType;
private String impactLevel;
/**
* The time when the event ended.
*
* example:
* 2018-05-06T02:48:52Z
*/
public Builder eventEndTime(String eventEndTime) {
this.eventEndTime = eventEndTime;
return this;
}
/**
* The ID of the event.
*
* example:
* e-bp67acfmxazb4p****
*/
public Builder eventId(String eventId) {
this.eventId = eventId;
return this;
}
/**
* The time when the event occurred.
*
* example:
* 2018-05-08T02:43:10Z
*/
public Builder eventTime(String eventTime) {
this.eventTime = eventTime;
return this;
}
/**
* The type of the event.
*/
public Builder eventType(EventType eventType) {
this.eventType = eventType;
return this;
}
/**
* The impact level of the event.
*
* example:
* 100
*/
public Builder impactLevel(String impactLevel) {
this.impactLevel = impactLevel;
return this;
}
public DiskEventType build() {
return new DiskEventType(this);
}
}
}
/**
*
* {@link DescribeDisksFullStatusResponseBody} extends {@link TeaModel}
*
* DescribeDisksFullStatusResponseBody
*/
public static class DiskEventSet extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DiskEventType")
private java.util.List < DiskEventType> diskEventType;
private DiskEventSet(Builder builder) {
this.diskEventType = builder.diskEventType;
}
public static Builder builder() {
return new Builder();
}
public static DiskEventSet create() {
return builder().build();
}
/**
* @return diskEventType
*/
public java.util.List < DiskEventType> getDiskEventType() {
return this.diskEventType;
}
public static final class Builder {
private java.util.List < DiskEventType> diskEventType;
/**
* DiskEventType.
*/
public Builder diskEventType(java.util.List < DiskEventType> diskEventType) {
this.diskEventType = diskEventType;
return this;
}
public DiskEventSet build() {
return new DiskEventSet(this);
}
}
}
/**
*
* {@link DescribeDisksFullStatusResponseBody} extends {@link TeaModel}
*
* DescribeDisksFullStatusResponseBody
*/
public static class HealthStatus extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private Integer code;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
private HealthStatus(Builder builder) {
this.code = builder.code;
this.name = builder.name;
}
public static Builder builder() {
return new Builder();
}
public static HealthStatus create() {
return builder().build();
}
/**
* @return code
*/
public Integer getCode() {
return this.code;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
public static final class Builder {
private Integer code;
private String name;
/**
* The code of the health status of the EBS device.
*
* example:
* 128
*/
public Builder code(Integer code) {
this.code = code;
return this;
}
/**
* The name of the health status of the EBS device.
*
* example:
* Impaired
*/
public Builder name(String name) {
this.name = name;
return this;
}
public HealthStatus build() {
return new HealthStatus(this);
}
}
}
/**
*
* {@link DescribeDisksFullStatusResponseBody} extends {@link TeaModel}
*
* DescribeDisksFullStatusResponseBody
*/
public static class Status extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private Integer code;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
private Status(Builder builder) {
this.code = builder.code;
this.name = builder.name;
}
public static Builder builder() {
return new Builder();
}
public static Status create() {
return builder().build();
}
/**
* @return code
*/
public Integer getCode() {
return this.code;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
public static final class Builder {
private Integer code;
private String name;
/**
* The code of the lifecycle status of the EBS device.
*
* example:
* 129
*/
public Builder code(Integer code) {
this.code = code;
return this;
}
/**
* The name of the lifecycle status of the EBS device.
*
* example:
* Available
*/
public Builder name(String name) {
this.name = name;
return this;
}
public Status build() {
return new Status(this);
}
}
}
/**
*
* {@link DescribeDisksFullStatusResponseBody} extends {@link TeaModel}
*
* DescribeDisksFullStatusResponseBody
*/
public static class DiskFullStatusType extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Device")
private String device;
@com.aliyun.core.annotation.NameInMap("DiskEventSet")
private DiskEventSet diskEventSet;
@com.aliyun.core.annotation.NameInMap("DiskId")
private String diskId;
@com.aliyun.core.annotation.NameInMap("HealthStatus")
private HealthStatus healthStatus;
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.NameInMap("Status")
private Status status;
private DiskFullStatusType(Builder builder) {
this.device = builder.device;
this.diskEventSet = builder.diskEventSet;
this.diskId = builder.diskId;
this.healthStatus = builder.healthStatus;
this.instanceId = builder.instanceId;
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static DiskFullStatusType create() {
return builder().build();
}
/**
* @return device
*/
public String getDevice() {
return this.device;
}
/**
* @return diskEventSet
*/
public DiskEventSet getDiskEventSet() {
return this.diskEventSet;
}
/**
* @return diskId
*/
public String getDiskId() {
return this.diskId;
}
/**
* @return healthStatus
*/
public HealthStatus getHealthStatus() {
return this.healthStatus;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return status
*/
public Status getStatus() {
return this.status;
}
public static final class Builder {
private String device;
private DiskEventSet diskEventSet;
private String diskId;
private HealthStatus healthStatus;
private String instanceId;
private Status status;
/**
* The name of the EBS device that is attached to an instance. Example: /dev/xvdb.
* This parameter has a value only when the value of Status
is In_use
.
*
* This parameter will be deprecated in the future. To ensure future compatibility, we recommend that you do not use this parameter.
*
*
* example:
* null
*/
public Builder device(String device) {
this.device = device;
return this;
}
/**
* The events about the EBS device.
*/
public Builder diskEventSet(DiskEventSet diskEventSet) {
this.diskEventSet = diskEventSet;
return this;
}
/**
* The EBS device ID.
*
* example:
* d-bp67acfmxazb4p****
*/
public Builder diskId(String diskId) {
this.diskId = diskId;
return this;
}
/**
* The health status of the EBS device.
*/
public Builder healthStatus(HealthStatus healthStatus) {
this.healthStatus = healthStatus;
return this;
}
/**
* The instance ID.
*
* example:
* i-bp67acfmxazb4p****
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* The lifecycle status of the EBS device.
*/
public Builder status(Status status) {
this.status = status;
return this;
}
public DiskFullStatusType build() {
return new DiskFullStatusType(this);
}
}
}
/**
*
* {@link DescribeDisksFullStatusResponseBody} extends {@link TeaModel}
*
* DescribeDisksFullStatusResponseBody
*/
public static class DiskFullStatusSet extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DiskFullStatusType")
private java.util.List < DiskFullStatusType> diskFullStatusType;
private DiskFullStatusSet(Builder builder) {
this.diskFullStatusType = builder.diskFullStatusType;
}
public static Builder builder() {
return new Builder();
}
public static DiskFullStatusSet create() {
return builder().build();
}
/**
* @return diskFullStatusType
*/
public java.util.List < DiskFullStatusType> getDiskFullStatusType() {
return this.diskFullStatusType;
}
public static final class Builder {
private java.util.List < DiskFullStatusType> diskFullStatusType;
/**
* DiskFullStatusType.
*/
public Builder diskFullStatusType(java.util.List < DiskFullStatusType> diskFullStatusType) {
this.diskFullStatusType = diskFullStatusType;
return this;
}
public DiskFullStatusSet build() {
return new DiskFullStatusSet(this);
}
}
}
}