com.aliyun.sdk.service.ess20220222.models.ScaleWithAdjustmentResponseBody Maven / Gradle / Ivy
Show all versions of alibabacloud-ess20220222 Show documentation
// 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 ScaleWithAdjustmentResponseBody} extends {@link TeaModel}
*
* ScaleWithAdjustmentResponseBody
*/
public class ScaleWithAdjustmentResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ActivityType")
private String activityType;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("ScalingActivityId")
private String scalingActivityId;
private ScaleWithAdjustmentResponseBody(Builder builder) {
this.activityType = builder.activityType;
this.requestId = builder.requestId;
this.scalingActivityId = builder.scalingActivityId;
}
public static Builder builder() {
return new Builder();
}
public static ScaleWithAdjustmentResponseBody create() {
return builder().build();
}
/**
* @return activityType
*/
public String getActivityType() {
return this.activityType;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return scalingActivityId
*/
public String getScalingActivityId() {
return this.scalingActivityId;
}
public static final class Builder {
private String activityType;
private String requestId;
private String scalingActivityId;
/**
* The type of the scaling activity.
*
*
* If `ActivityType` is set to `CapacityChange`, only the expected number of instances is changed during the scaling activity specified by ScalingActivityId and no scale-out is triggered.
*
* This parameter is applicable to only scaling groups that have an expected number of instances.
*/
public Builder activityType(String activityType) {
this.activityType = activityType;
return this;
}
/**
* The ID of the request.
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* The ID of the scaling activity.
*/
public Builder scalingActivityId(String scalingActivityId) {
this.scalingActivityId = scalingActivityId;
return this;
}
public ScaleWithAdjustmentResponseBody build() {
return new ScaleWithAdjustmentResponseBody(this);
}
}
}