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

com.aliyun.sdk.service.ess20220222.models.DescribeLifecycleActionsResponseBody Maven / Gradle / Ivy

The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.ess20220222.models;

import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;

/**
 * 
 * {@link DescribeLifecycleActionsResponseBody} extends {@link TeaModel}
 *
 * 

DescribeLifecycleActionsResponseBody

*/ public class DescribeLifecycleActionsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("LifecycleActions") private java.util.List < LifecycleActions> lifecycleActions; @com.aliyun.core.annotation.NameInMap("MaxResults") private Integer maxResults; @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private DescribeLifecycleActionsResponseBody(Builder builder) { this.lifecycleActions = builder.lifecycleActions; this.maxResults = builder.maxResults; this.nextToken = builder.nextToken; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static DescribeLifecycleActionsResponseBody create() { return builder().build(); } /** * @return lifecycleActions */ public java.util.List < LifecycleActions> getLifecycleActions() { return this.lifecycleActions; } /** * @return maxResults */ public Integer getMaxResults() { return this.maxResults; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private java.util.List < LifecycleActions> lifecycleActions; private Integer maxResults; private String nextToken; private String requestId; private Integer totalCount; /** *

The actions of the lifecycle hook.

*/ public Builder lifecycleActions(java.util.List < LifecycleActions> lifecycleActions) { this.lifecycleActions = lifecycleActions; return this; } /** *

The maximum number of entries returned per page.

* * example: *

3

*/ public Builder maxResults(Integer maxResults) { this.maxResults = maxResults; return this; } /** *

The query token returned in this call.

* * example: *

AAAAAcSz4VTb1Nq****

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

The ID of the request.

* * example: *

42A742EB-FCF3-459E-9C62-E107048C17E3

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

The total number of the queried lifecycle actions.

* * example: *

3

*/ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public DescribeLifecycleActionsResponseBody build() { return new DescribeLifecycleActionsResponseBody(this); } } /** * * {@link DescribeLifecycleActionsResponseBody} extends {@link TeaModel} * *

DescribeLifecycleActionsResponseBody

*/ public static class LifecycleActions extends TeaModel { @com.aliyun.core.annotation.NameInMap("InstanceIds") private java.util.List < String > instanceIds; @com.aliyun.core.annotation.NameInMap("LifecycleActionResult") private String lifecycleActionResult; @com.aliyun.core.annotation.NameInMap("LifecycleActionStatus") private String lifecycleActionStatus; @com.aliyun.core.annotation.NameInMap("LifecycleActionToken") private String lifecycleActionToken; @com.aliyun.core.annotation.NameInMap("LifecycleHookId") private String lifecycleHookId; private LifecycleActions(Builder builder) { this.instanceIds = builder.instanceIds; this.lifecycleActionResult = builder.lifecycleActionResult; this.lifecycleActionStatus = builder.lifecycleActionStatus; this.lifecycleActionToken = builder.lifecycleActionToken; this.lifecycleHookId = builder.lifecycleHookId; } public static Builder builder() { return new Builder(); } public static LifecycleActions create() { return builder().build(); } /** * @return instanceIds */ public java.util.List < String > getInstanceIds() { return this.instanceIds; } /** * @return lifecycleActionResult */ public String getLifecycleActionResult() { return this.lifecycleActionResult; } /** * @return lifecycleActionStatus */ public String getLifecycleActionStatus() { return this.lifecycleActionStatus; } /** * @return lifecycleActionToken */ public String getLifecycleActionToken() { return this.lifecycleActionToken; } /** * @return lifecycleHookId */ public String getLifecycleHookId() { return this.lifecycleHookId; } public static final class Builder { private java.util.List < String > instanceIds; private String lifecycleActionResult; private String lifecycleActionStatus; private String lifecycleActionToken; private String lifecycleHookId; /** *

The IDs of the ECS instances on which the lifecycle hook takes effect

*/ public Builder instanceIds(java.util.List < String > instanceIds) { this.instanceIds = instanceIds; return this; } /** *

The subsequent action that Auto Scaling performs after the lifecycle hook times out. Valid values:

*
    *
  • CONTINUE: Auto Scaling continues to respond to a scale-in or scale-out request.
  • *
  • ABANDON: Auto Scaling releases ECS instances that are created during scale-out events, or removes ECS instances from the scaling group during scale-in events.
  • *
* * example: *

CONTINUE

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

The status of the lifecycle hook action.

* * example: *

Pending

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

The token of the lifecycle hook action.

* * example: *

9C2E9DA7-F794-449A-ACF6-CEE24444F7BB

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

The ID of the lifecycle hook.

* * example: *

ash-bp18uoft0deax0f7****

*/ public Builder lifecycleHookId(String lifecycleHookId) { this.lifecycleHookId = lifecycleHookId; return this; } public LifecycleActions build() { return new LifecycleActions(this); } } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy