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

com.aliyun.sdk.service.cs20151215.models.DeleteClusterNodesRequest Maven / Gradle / Ivy

There is a newer version: 2.0.29
Show newest version
// 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 DeleteClusterNodesRequest} extends {@link RequestModel}
 *
 * 

DeleteClusterNodesRequest

*/ public class DeleteClusterNodesRequest 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.Body @com.aliyun.core.annotation.NameInMap("drain_node") private Boolean drainNode; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("nodes") @com.aliyun.core.annotation.Validation(required = true) private java.util.List < String > nodes; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("release_node") private Boolean releaseNode; private DeleteClusterNodesRequest(Builder builder) { super(builder); this.clusterId = builder.clusterId; this.drainNode = builder.drainNode; this.nodes = builder.nodes; this.releaseNode = builder.releaseNode; } public static Builder builder() { return new Builder(); } public static DeleteClusterNodesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clusterId */ public String getClusterId() { return this.clusterId; } /** * @return drainNode */ public Boolean getDrainNode() { return this.drainNode; } /** * @return nodes */ public java.util.List < String > getNodes() { return this.nodes; } /** * @return releaseNode */ public Boolean getReleaseNode() { return this.releaseNode; } public static final class Builder extends Request.Builder { private String clusterId; private Boolean drainNode; private java.util.List < String > nodes; private Boolean releaseNode; private Builder() { super(); } private Builder(DeleteClusterNodesRequest request) { super(request); this.clusterId = request.clusterId; this.drainNode = request.drainNode; this.nodes = request.nodes; this.releaseNode = request.releaseNode; } /** * The cluster ID. */ public Builder clusterId(String clusterId) { this.putPathParameter("ClusterId", clusterId); this.clusterId = clusterId; return this; } /** * Specifies whether to remove all pods from the nodes that you want to remove. Valid values: *

* * * `true`: removes all pods from the nodes that you want to remove. * * `false`: does not remove pods from the nodes that you want to remove. * * Default value: `false`. */ public Builder drainNode(Boolean drainNode) { this.putBodyParameter("drain_node", drainNode); this.drainNode = drainNode; return this; } /** * The list of nodes to be removed. You need to specify the name of the nodes used in the cluster, for example, `cn-hangzhou.192.168.0.70`. */ public Builder nodes(java.util.List < String > nodes) { this.putBodyParameter("nodes", nodes); this.nodes = nodes; return this; } /** * Specifies whether to release the Elastic Compute Service (ECS) instances. Valid values: *

* * * `true`: releases the ECS instances. * * `false`: does not release the ECS instances. * * Default value: `false`. * * > You cannot release subscription ECS instances. */ public Builder releaseNode(Boolean releaseNode) { this.putBodyParameter("release_node", releaseNode); this.releaseNode = releaseNode; return this; } @Override public DeleteClusterNodesRequest build() { return new DeleteClusterNodesRequest(this); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy