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

com.aliyun.sdk.service.ess20220222.models.EnterStandbyRequest 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 EnterStandbyRequest} extends {@link RequestModel}
 *
 * 

EnterStandbyRequest

*/ public class EnterStandbyRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Async") private Boolean async; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceIds") @com.aliyun.core.annotation.Validation(required = true) private java.util.List < String > instanceIds; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ScalingGroupId") @com.aliyun.core.annotation.Validation(required = true) private String scalingGroupId; private EnterStandbyRequest(Builder builder) { super(builder); this.async = builder.async; this.clientToken = builder.clientToken; this.instanceIds = builder.instanceIds; this.ownerId = builder.ownerId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.scalingGroupId = builder.scalingGroupId; } public static Builder builder() { return new Builder(); } public static EnterStandbyRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return async */ public Boolean getAsync() { return this.async; } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return instanceIds */ public java.util.List < String > getInstanceIds() { return this.instanceIds; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return scalingGroupId */ public String getScalingGroupId() { return this.scalingGroupId; } public static final class Builder extends Request.Builder { private Boolean async; private String clientToken; private java.util.List < String > instanceIds; private Long ownerId; private String resourceOwnerAccount; private String scalingGroupId; private Builder() { super(); } private Builder(EnterStandbyRequest request) { super(request); this.async = request.async; this.clientToken = request.clientToken; this.instanceIds = request.instanceIds; this.ownerId = request.ownerId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.scalingGroupId = request.scalingGroupId; } /** *

Specifies whether to asynchronously put the ECS instance into the Standby state. Valid values:

*
    *
  • true
  • *
  • false
  • *
*

Default value: false.

* * example: *

false

*/ public Builder async(Boolean async) { this.putQueryParameter("Async", async); this.async = async; return this; } /** *

The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must ensure that the value is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see How to ensure idempotence.

* * example: *

123e4567-e89b-12d3-a456-42665544****

*/ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** *

The IDs of the ECS instances.

*

This parameter is required.

*/ public Builder instanceIds(java.util.List < String > instanceIds) { this.putQueryParameter("InstanceIds", instanceIds); this.instanceIds = instanceIds; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** *

The ID of the scaling group.

*

This parameter is required.

* * example: *

asg-bp1fo0dbtsbmqa9h****

*/ public Builder scalingGroupId(String scalingGroupId) { this.putQueryParameter("ScalingGroupId", scalingGroupId); this.scalingGroupId = scalingGroupId; return this; } @Override public EnterStandbyRequest build() { return new EnterStandbyRequest(this); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy