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

ksyun.client.kmr.scaleininstancegroups.v20210902.ScaleInInstanceGroupsRequest Maven / Gradle / Ivy

Go to download

The KSYUN Web Services SDK for Java provides Java APIs for building software on KSYUN' cost-effective, scalable, and reliable infrastructure products. The KSYUN Java SDK allows developers to code against APIs for all of KSYUN's infrastructure web services (KSC S3, KSC KEC, KSC RDS etc).

There is a newer version: 1.7.3
Show newest version
package ksyun.client.kmr.scaleininstancegroups.v20210902;

import common.annotation.KsYunField;
import lombok.Builder;
import lombok.Data;
import lombok.ToString;

import java.util.List;
import java.util.Arrays;

/**
* @Classname ScaleInInstanceGroupsRequest
* @Description 请求参数
*/
@Data
public class ScaleInInstanceGroupsRequest{
    /**集群ID*/
    @KsYunField(name="ClusterId")
    private String ClusterId;

    /**要缩容的节点组,需要注意的是,一次只能对一个节点组进行操作*/
    @KsYunField(name="InstanceGroups",type=2)
    private List InstanceGroupsList;

    @Data
    @ToString
    public static class InstanceGroupsDto {
        /**节点组 id,需要注意的是,仅可对 Task 节点或 Gateway 节点进行缩容操作。节点组 id 可通过 DescribeCluster 接口获得*/
        private String Id;
        /**要缩容的实例列表,不支持缩容中间实例,如果要缩容中间实例需提工单处理*/
        @KsYunField(name="instance",type=2)
        private List InstanceList;
    }

    /**是否开启优雅缩容*/
    @KsYunField(name="GracefulScaleIn")
    private Boolean GracefulScaleIn;

    /**优雅缩容等待时间,如果开启优雅缩容,则需要设定该参数,范围0-120, 单位秒*/
    @KsYunField(name="GracefulScaleInTimeout")
    private Integer GracefulScaleInTimeout;


}