com.aliyun.sdk.service.cs20151215.models.ScaleClusterNodePoolRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alibabacloud-cs20151215 Show documentation
Show all versions of alibabacloud-cs20151215 Show documentation
Alibaba Cloud CS (20151215) Async SDK for Java
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.cs20151215.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link ScaleClusterNodePoolRequest} extends {@link RequestModel}
*
* ScaleClusterNodePoolRequest
*/
public class ScaleClusterNodePoolRequest extends Request {
@com.aliyun.core.annotation.Path
@com.aliyun.core.annotation.NameInMap("ClusterId")
@com.aliyun.core.annotation.Validation(required = true)
private String clusterId;
@com.aliyun.core.annotation.Path
@com.aliyun.core.annotation.NameInMap("NodepoolId")
@com.aliyun.core.annotation.Validation(required = true)
private String nodepoolId;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("count")
private Long count;
private ScaleClusterNodePoolRequest(Builder builder) {
super(builder);
this.clusterId = builder.clusterId;
this.nodepoolId = builder.nodepoolId;
this.count = builder.count;
}
public static Builder builder() {
return new Builder();
}
public static ScaleClusterNodePoolRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clusterId
*/
public String getClusterId() {
return this.clusterId;
}
/**
* @return nodepoolId
*/
public String getNodepoolId() {
return this.nodepoolId;
}
/**
* @return count
*/
public Long getCount() {
return this.count;
}
public static final class Builder extends Request.Builder {
private String clusterId;
private String nodepoolId;
private Long count;
private Builder() {
super();
}
private Builder(ScaleClusterNodePoolRequest request) {
super(request);
this.clusterId = request.clusterId;
this.nodepoolId = request.nodepoolId;
this.count = request.count;
}
/**
* The cluster ID.
*/
public Builder clusterId(String clusterId) {
this.putPathParameter("ClusterId", clusterId);
this.clusterId = clusterId;
return this;
}
/**
* The node pool ID.
*/
public Builder nodepoolId(String nodepoolId) {
this.putPathParameter("NodepoolId", nodepoolId);
this.nodepoolId = nodepoolId;
return this;
}
/**
* The number of worker nodes that you want to add. You can add at most 500 nodes in one API call. The maximum number of nodes that can be added is limited by the quota of nodes in the cluster.
*/
public Builder count(Long count) {
this.putBodyParameter("count", count);
this.count = count;
return this;
}
@Override
public ScaleClusterNodePoolRequest build() {
return new ScaleClusterNodePoolRequest(this);
}
}
}