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

com.aliyun.sdk.service.ecs20140526.models.DescribeInstanceMaintenanceAttributesResponseBody Maven / Gradle / Ivy

There is a newer version: 5.0.29
Show newest version
// 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 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. */ public Builder pageNumber(Integer pageNumber) { this.pageNumber = pageNumber; return this; } /** * The number of entries per page. */ public Builder pageSize(Integer pageSize) { this.pageSize = pageSize; return this; } /** * The request ID. */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * The total number of queried maintenance attributes. */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public DescribeInstanceMaintenanceAttributesResponseBody build() { return new DescribeInstanceMaintenanceAttributesResponseBody(this); } } public static class SupportedValues extends TeaModel { @com.aliyun.core.annotation.NameInMap("SupportedValue") private java.util.List < String > 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 < String > getSupportedValue() { return this.supportedValue; } public static final class Builder { private java.util.List < String > supportedValue; /** * SupportedValue. */ public Builder supportedValue(java.util.List < String > supportedValue) { this.supportedValue = supportedValue; return this; } public SupportedValues build() { return new SupportedValues(this); } } } 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. */ 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. */ public Builder value(String value) { this.value = value; return this; } public ActionOnMaintenance build() { return new ActionOnMaintenance(this); } } } 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. */ public Builder endTime(String endTime) { this.endTime = endTime; return this; } /** * The start time of the maintenance window. */ public Builder startTime(String startTime) { this.startTime = startTime; return this; } public MaintenanceWindow build() { return new MaintenanceWindow(this); } } } public static class MaintenanceWindows extends TeaModel { @com.aliyun.core.annotation.NameInMap("MaintenanceWindow") private java.util.List < MaintenanceWindow> 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 < MaintenanceWindow> getMaintenanceWindow() { return this.maintenanceWindow; } public static final class Builder { private java.util.List < MaintenanceWindow> maintenanceWindow; /** * MaintenanceWindow. */ public Builder maintenanceWindow(java.util.List < MaintenanceWindow> maintenanceWindow) { this.maintenanceWindow = maintenanceWindow; return this; } public MaintenanceWindows build() { return new MaintenanceWindows(this); } } } 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. */ 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. */ public Builder notifyOnMaintenance(Boolean notifyOnMaintenance) { this.notifyOnMaintenance = notifyOnMaintenance; return this; } public MaintenanceAttribute build() { return new MaintenanceAttribute(this); } } } public static class MaintenanceAttributes extends TeaModel { @com.aliyun.core.annotation.NameInMap("MaintenanceAttribute") private java.util.List < MaintenanceAttribute> 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 < MaintenanceAttribute> getMaintenanceAttribute() { return this.maintenanceAttribute; } public static final class Builder { private java.util.List < MaintenanceAttribute> maintenanceAttribute; /** * MaintenanceAttribute. */ public Builder maintenanceAttribute(java.util.List < MaintenanceAttribute> maintenanceAttribute) { this.maintenanceAttribute = maintenanceAttribute; return this; } public MaintenanceAttributes build() { return new MaintenanceAttributes(this); } } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy