com.aliyun.sdk.service.emr20210320.models.PutAutoScalingPolicyRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alibabacloud-emr20210320 Show documentation
Show all versions of alibabacloud-emr20210320 Show documentation
Alibaba Cloud Emr (20210320) Async SDK for Java
The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.emr20210320.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link PutAutoScalingPolicyRequest} extends {@link RequestModel}
*
* PutAutoScalingPolicyRequest
*/
public class PutAutoScalingPolicyRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClusterId")
@com.aliyun.core.annotation.Validation(required = true)
private String clusterId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Constraints")
private ScalingConstraints constraints;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NodeGroupId")
@com.aliyun.core.annotation.Validation(required = true)
private String nodeGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ScalingRules")
private java.util.List < ScalingRule > scalingRules;
private PutAutoScalingPolicyRequest(Builder builder) {
super(builder);
this.clusterId = builder.clusterId;
this.constraints = builder.constraints;
this.nodeGroupId = builder.nodeGroupId;
this.regionId = builder.regionId;
this.scalingRules = builder.scalingRules;
}
public static Builder builder() {
return new Builder();
}
public static PutAutoScalingPolicyRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clusterId
*/
public String getClusterId() {
return this.clusterId;
}
/**
* @return constraints
*/
public ScalingConstraints getConstraints() {
return this.constraints;
}
/**
* @return nodeGroupId
*/
public String getNodeGroupId() {
return this.nodeGroupId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return scalingRules
*/
public java.util.List < ScalingRule > getScalingRules() {
return this.scalingRules;
}
public static final class Builder extends Request.Builder {
private String clusterId;
private ScalingConstraints constraints;
private String nodeGroupId;
private String regionId;
private java.util.List < ScalingRule > scalingRules;
private Builder() {
super();
}
private Builder(PutAutoScalingPolicyRequest request) {
super(request);
this.clusterId = request.clusterId;
this.constraints = request.constraints;
this.nodeGroupId = request.nodeGroupId;
this.regionId = request.regionId;
this.scalingRules = request.scalingRules;
}
/**
* 集群ID。
*/
public Builder clusterId(String clusterId) {
this.putQueryParameter("ClusterId", clusterId);
this.clusterId = clusterId;
return this;
}
/**
* The maximum and minimum numbers of nodes in a node group.
*/
public Builder constraints(ScalingConstraints constraints) {
this.putQueryParameter("Constraints", constraints);
this.constraints = constraints;
return this;
}
/**
* 节点组ID。节点组 Id-针对 ACK 集群,此字段为空。
*/
public Builder nodeGroupId(String nodeGroupId) {
this.putQueryParameter("NodeGroupId", nodeGroupId);
this.nodeGroupId = nodeGroupId;
return this;
}
/**
* 区域ID。
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* The auto scaling rules. Number of elements in the array: 0 to 100.
*/
public Builder scalingRules(java.util.List < ScalingRule > scalingRules) {
this.putQueryParameter("ScalingRules", scalingRules);
this.scalingRules = scalingRules;
return this;
}
@Override
public PutAutoScalingPolicyRequest build() {
return new PutAutoScalingPolicyRequest(this);
}
}
}