com.aliyun.sdk.service.ecs20140526.models.RebootInstancesResponseBody Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alibabacloud-ecs20140526 Show documentation
Show all versions of alibabacloud-ecs20140526 Show documentation
Alibaba Cloud Ecs (20140526) Async SDK for Java
// 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 RebootInstancesResponseBody} extends {@link TeaModel}
*
* RebootInstancesResponseBody
*/
public class RebootInstancesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("InstanceResponses")
private InstanceResponses instanceResponses;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private RebootInstancesResponseBody(Builder builder) {
this.instanceResponses = builder.instanceResponses;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static RebootInstancesResponseBody create() {
return builder().build();
}
/**
* @return instanceResponses
*/
public InstanceResponses getInstanceResponses() {
return this.instanceResponses;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private InstanceResponses instanceResponses;
private String requestId;
/**
* Details about the responses returned for the instances, which contain the status of each instance before and after the operation is called and the operation results.
*/
public Builder instanceResponses(InstanceResponses instanceResponses) {
this.instanceResponses = instanceResponses;
return this;
}
/**
* The request ID.
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public RebootInstancesResponseBody build() {
return new RebootInstancesResponseBody(this);
}
}
public static class InstanceResponse extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("CurrentStatus")
private String currentStatus;
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("PreviousStatus")
private String previousStatus;
private InstanceResponse(Builder builder) {
this.code = builder.code;
this.currentStatus = builder.currentStatus;
this.instanceId = builder.instanceId;
this.message = builder.message;
this.previousStatus = builder.previousStatus;
}
public static Builder builder() {
return new Builder();
}
public static InstanceResponse create() {
return builder().build();
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return currentStatus
*/
public String getCurrentStatus() {
return this.currentStatus;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return previousStatus
*/
public String getPreviousStatus() {
return this.previousStatus;
}
public static final class Builder {
private String code;
private String currentStatus;
private String instanceId;
private String message;
private String previousStatus;
/**
* The error code that is returned for the operation on the instance. The value 200 indicates that the operation is successful. For more information, see the "Error codes" section in this topic.
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* The current status of the instance.
*/
public Builder currentStatus(String currentStatus) {
this.currentStatus = currentStatus;
return this;
}
/**
* The instance ID.
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* The error message that is returned for the operation on the instance. The return value Success indicates that the operation is successful. For more information, see the "Error codes" section in this topic.
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* The status of the instance before the operation is called.
*/
public Builder previousStatus(String previousStatus) {
this.previousStatus = previousStatus;
return this;
}
public InstanceResponse build() {
return new InstanceResponse(this);
}
}
}
public static class InstanceResponses extends TeaModel {
@com.aliyun.core.annotation.NameInMap("InstanceResponse")
private java.util.List < InstanceResponse> instanceResponse;
private InstanceResponses(Builder builder) {
this.instanceResponse = builder.instanceResponse;
}
public static Builder builder() {
return new Builder();
}
public static InstanceResponses create() {
return builder().build();
}
/**
* @return instanceResponse
*/
public java.util.List < InstanceResponse> getInstanceResponse() {
return this.instanceResponse;
}
public static final class Builder {
private java.util.List < InstanceResponse> instanceResponse;
/**
* InstanceResponse.
*/
public Builder instanceResponse(java.util.List < InstanceResponse> instanceResponse) {
this.instanceResponse = instanceResponse;
return this;
}
public InstanceResponses build() {
return new InstanceResponses(this);
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy