com.aliyun.sdk.service.ecs20140526.models.DescribeInstanceMaintenanceAttributesResponseBody 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 com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeInstanceMaintenanceAttributesResponseBody} extends {@link TeaModel}
*
* DescribeInstanceMaintenanceAttributesResponseBody
*/
public class DescribeInstanceMaintenanceAttributesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("MaintenanceAttributes")
private MaintenanceAttributes maintenanceAttributes;
@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 DescribeInstanceMaintenanceAttributesResponseBody(Builder builder) {
this.maintenanceAttributes = builder.maintenanceAttributes;
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 DescribeInstanceMaintenanceAttributesResponseBody create() {
return builder().build();
}
/**
* @return maintenanceAttributes
*/
public MaintenanceAttributes getMaintenanceAttributes() {
return this.maintenanceAttributes;
}
/**
* @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 MaintenanceAttributes maintenanceAttributes;
private Integer pageNumber;
private Integer pageSize;
private String requestId;
private Integer totalCount;
/**
* The maintenance attributes.
*/
public Builder maintenanceAttributes(MaintenanceAttributes maintenanceAttributes) {
this.maintenanceAttributes = maintenanceAttributes;
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 queried maintenance attributes.
*
* example:
* 100
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeInstanceMaintenanceAttributesResponseBody build() {
return new DescribeInstanceMaintenanceAttributesResponseBody(this);
}
}
/**
*
* {@link DescribeInstanceMaintenanceAttributesResponseBody} extends {@link TeaModel}
*
* DescribeInstanceMaintenanceAttributesResponseBody
*/
public static class SupportedValues extends TeaModel {
@com.aliyun.core.annotation.NameInMap("SupportedValue")
private java.util.List supportedValue;
private SupportedValues(Builder builder) {
this.supportedValue = builder.supportedValue;
}
public static Builder builder() {
return new Builder();
}
public static SupportedValues create() {
return builder().build();
}
/**
* @return supportedValue
*/
public java.util.List getSupportedValue() {
return this.supportedValue;
}
public static final class Builder {
private java.util.List supportedValue;
/**
* SupportedValue.
*/
public Builder supportedValue(java.util.List supportedValue) {
this.supportedValue = supportedValue;
return this;
}
public SupportedValues build() {
return new SupportedValues(this);
}
}
}
/**
*
* {@link DescribeInstanceMaintenanceAttributesResponseBody} extends {@link TeaModel}
*
* DescribeInstanceMaintenanceAttributesResponseBody
*/
public static class ActionOnMaintenance extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DefaultValue")
private String defaultValue;
@com.aliyun.core.annotation.NameInMap("SupportedValues")
private SupportedValues supportedValues;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private ActionOnMaintenance(Builder builder) {
this.defaultValue = builder.defaultValue;
this.supportedValues = builder.supportedValues;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static ActionOnMaintenance create() {
return builder().build();
}
/**
* @return defaultValue
*/
public String getDefaultValue() {
return this.defaultValue;
}
/**
* @return supportedValues
*/
public SupportedValues getSupportedValues() {
return this.supportedValues;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String defaultValue;
private SupportedValues supportedValues;
private String value;
/**
* The default maintenance action.
*
* example:
* AutoRecover
*/
public Builder defaultValue(String defaultValue) {
this.defaultValue = defaultValue;
return this;
}
/**
* The supported maintenance actions.
*/
public Builder supportedValues(SupportedValues supportedValues) {
this.supportedValues = supportedValues;
return this;
}
/**
* The current maintenance action. Valid values:
*
* - Stop: stops the instance.
* - AutoRecover: automatically recovers the instance.
* - AutoRedeploy: redeploys the instance, which may damage the data disks attached to the instance.
*
*
* example:
* Stop
*/
public Builder value(String value) {
this.value = value;
return this;
}
public ActionOnMaintenance build() {
return new ActionOnMaintenance(this);
}
}
}
/**
*
* {@link DescribeInstanceMaintenanceAttributesResponseBody} extends {@link TeaModel}
*
* DescribeInstanceMaintenanceAttributesResponseBody
*/
public static class MaintenanceWindow extends TeaModel {
@com.aliyun.core.annotation.NameInMap("EndTime")
private String endTime;
@com.aliyun.core.annotation.NameInMap("StartTime")
private String startTime;
private MaintenanceWindow(Builder builder) {
this.endTime = builder.endTime;
this.startTime = builder.startTime;
}
public static Builder builder() {
return new Builder();
}
public static MaintenanceWindow create() {
return builder().build();
}
/**
* @return endTime
*/
public String getEndTime() {
return this.endTime;
}
/**
* @return startTime
*/
public String getStartTime() {
return this.startTime;
}
public static final class Builder {
private String endTime;
private String startTime;
/**
* The end time of the maintenance window.
*
* example:
* 18:00:00
*/
public Builder endTime(String endTime) {
this.endTime = endTime;
return this;
}
/**
* The start time of the maintenance window.
*
* example:
* 02:00:00
*/
public Builder startTime(String startTime) {
this.startTime = startTime;
return this;
}
public MaintenanceWindow build() {
return new MaintenanceWindow(this);
}
}
}
/**
*
* {@link DescribeInstanceMaintenanceAttributesResponseBody} extends {@link TeaModel}
*
* DescribeInstanceMaintenanceAttributesResponseBody
*/
public static class MaintenanceWindows extends TeaModel {
@com.aliyun.core.annotation.NameInMap("MaintenanceWindow")
private java.util.List maintenanceWindow;
private MaintenanceWindows(Builder builder) {
this.maintenanceWindow = builder.maintenanceWindow;
}
public static Builder builder() {
return new Builder();
}
public static MaintenanceWindows create() {
return builder().build();
}
/**
* @return maintenanceWindow
*/
public java.util.List getMaintenanceWindow() {
return this.maintenanceWindow;
}
public static final class Builder {
private java.util.List maintenanceWindow;
/**
* MaintenanceWindow.
*/
public Builder maintenanceWindow(java.util.List maintenanceWindow) {
this.maintenanceWindow = maintenanceWindow;
return this;
}
public MaintenanceWindows build() {
return new MaintenanceWindows(this);
}
}
}
/**
*
* {@link DescribeInstanceMaintenanceAttributesResponseBody} extends {@link TeaModel}
*
* DescribeInstanceMaintenanceAttributesResponseBody
*/
public static class MaintenanceAttribute extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ActionOnMaintenance")
private ActionOnMaintenance actionOnMaintenance;
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.NameInMap("MaintenanceWindows")
private MaintenanceWindows maintenanceWindows;
@com.aliyun.core.annotation.NameInMap("NotifyOnMaintenance")
private Boolean notifyOnMaintenance;
private MaintenanceAttribute(Builder builder) {
this.actionOnMaintenance = builder.actionOnMaintenance;
this.instanceId = builder.instanceId;
this.maintenanceWindows = builder.maintenanceWindows;
this.notifyOnMaintenance = builder.notifyOnMaintenance;
}
public static Builder builder() {
return new Builder();
}
public static MaintenanceAttribute create() {
return builder().build();
}
/**
* @return actionOnMaintenance
*/
public ActionOnMaintenance getActionOnMaintenance() {
return this.actionOnMaintenance;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return maintenanceWindows
*/
public MaintenanceWindows getMaintenanceWindows() {
return this.maintenanceWindows;
}
/**
* @return notifyOnMaintenance
*/
public Boolean getNotifyOnMaintenance() {
return this.notifyOnMaintenance;
}
public static final class Builder {
private ActionOnMaintenance actionOnMaintenance;
private String instanceId;
private MaintenanceWindows maintenanceWindows;
private Boolean notifyOnMaintenance;
/**
* The attributes of the maintenance action of the instance.
*/
public Builder actionOnMaintenance(ActionOnMaintenance actionOnMaintenance) {
this.actionOnMaintenance = actionOnMaintenance;
return this;
}
/**
* The instance ID.
*
* example:
* i-bp67acfmxazb4p****
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* The maintenance windows.
*/
public Builder maintenanceWindows(MaintenanceWindows maintenanceWindows) {
this.maintenanceWindows = maintenanceWindows;
return this;
}
/**
* Indicates whether an event notification was sent before maintenance.
*
* example:
* false
*/
public Builder notifyOnMaintenance(Boolean notifyOnMaintenance) {
this.notifyOnMaintenance = notifyOnMaintenance;
return this;
}
public MaintenanceAttribute build() {
return new MaintenanceAttribute(this);
}
}
}
/**
*
* {@link DescribeInstanceMaintenanceAttributesResponseBody} extends {@link TeaModel}
*
* DescribeInstanceMaintenanceAttributesResponseBody
*/
public static class MaintenanceAttributes extends TeaModel {
@com.aliyun.core.annotation.NameInMap("MaintenanceAttribute")
private java.util.List maintenanceAttribute;
private MaintenanceAttributes(Builder builder) {
this.maintenanceAttribute = builder.maintenanceAttribute;
}
public static Builder builder() {
return new Builder();
}
public static MaintenanceAttributes create() {
return builder().build();
}
/**
* @return maintenanceAttribute
*/
public java.util.List getMaintenanceAttribute() {
return this.maintenanceAttribute;
}
public static final class Builder {
private java.util.List maintenanceAttribute;
/**
* MaintenanceAttribute.
*/
public Builder maintenanceAttribute(java.util.List maintenanceAttribute) {
this.maintenanceAttribute = maintenanceAttribute;
return this;
}
public MaintenanceAttributes build() {
return new MaintenanceAttributes(this);
}
}
}
}