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

com.aliyun.sdk.service.ecs20140526.models.StopInstancesResponseBody 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 StopInstancesResponseBody} extends {@link TeaModel}
 *
 * 

StopInstancesResponseBody

*/ public class StopInstancesResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("InstanceResponses") private InstanceResponses instanceResponses; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private StopInstancesResponseBody(Builder builder) { this.instanceResponses = builder.instanceResponses; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static StopInstancesResponseBody 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; /** *

The instance-specific responses, which contain the status of each instance before and after the operation was called and the results of the operation.

*/ public Builder instanceResponses(InstanceResponses instanceResponses) { this.instanceResponses = instanceResponses; return this; } /** *

The request ID.

* * example: *

1C488B66-B819-4D14-8711-C4EAAA13AC01

*/ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public StopInstancesResponseBody build() { return new StopInstancesResponseBody(this); } } /** * * {@link StopInstancesResponseBody} extends {@link TeaModel} * *

StopInstancesResponseBody

*/ 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 returned for the instance. A return value of 200 indicates that the operation was successful. For more information, see the "Error codes" section of this topic.

* * example: *

200

*/ public Builder code(String code) { this.code = code; return this; } /** *

The current status of the instance.

* * example: *

Stopping

*/ public Builder currentStatus(String currentStatus) { this.currentStatus = currentStatus; return this; } /** *

The ID of the instance.

* * example: *

i-bp67acfmxazb4p****

*/ public Builder instanceId(String instanceId) { this.instanceId = instanceId; return this; } /** *

The error message returned for the instance. A return value of success indicates that the operation was successful. For more information, see the "Error codes" section of this topic.

* * example: *

success

*/ public Builder message(String message) { this.message = message; return this; } /** *

The status of the instance before the operation was called.

* * example: *

Running

*/ public Builder previousStatus(String previousStatus) { this.previousStatus = previousStatus; return this; } public InstanceResponse build() { return new InstanceResponse(this); } } } /** * * {@link StopInstancesResponseBody} extends {@link TeaModel} * *

StopInstancesResponseBody

*/ 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