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

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

There is a newer version: 2.0.37
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 DescribeClustersV1Request} extends {@link RequestModel}
 *
 * 

DescribeClustersV1Request

*/ public class DescribeClustersV1Request extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("cluster_id") private String clusterId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("cluster_spec") private String clusterSpec; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("cluster_type") private String clusterType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("name") private String name; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("page_number") private Long pageNumber; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("page_size") private Long pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("profile") private String profile; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("region_id") private String regionId; private DescribeClustersV1Request(Builder builder) { super(builder); this.clusterId = builder.clusterId; this.clusterSpec = builder.clusterSpec; this.clusterType = builder.clusterType; this.name = builder.name; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.profile = builder.profile; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static DescribeClustersV1Request create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clusterId */ public String getClusterId() { return this.clusterId; } /** * @return clusterSpec */ public String getClusterSpec() { return this.clusterSpec; } /** * @return clusterType */ public String getClusterType() { return this.clusterType; } /** * @return name */ public String getName() { return this.name; } /** * @return pageNumber */ public Long getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Long getPageSize() { return this.pageSize; } /** * @return profile */ public String getProfile() { return this.profile; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder { private String clusterId; private String clusterSpec; private String clusterType; private String name; private Long pageNumber; private Long pageSize; private String profile; private String regionId; private Builder() { super(); } private Builder(DescribeClustersV1Request request) { super(request); this.clusterId = request.clusterId; this.clusterSpec = request.clusterSpec; this.clusterType = request.clusterType; this.name = request.name; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.profile = request.profile; this.regionId = request.regionId; } /** * The cluster ID. */ public Builder clusterId(String clusterId) { this.putQueryParameter("cluster_id", clusterId); this.clusterId = clusterId; return this; } /** * The cluster type, which is available only when the cluster type is set to `ManagedKubernetes`. Valid values: *

* * * `ack.pro.small`: ACK Pro cluster * * `ack.standard`: ACK Basic cluster * * By default, this parameter is left empty, which means that ACK clusters are not filtered by this parameter. */ public Builder clusterSpec(String clusterSpec) { this.putQueryParameter("cluster_spec", clusterSpec); this.clusterSpec = clusterSpec; return this; } /** * The cluster type. Valid values: *

* * * `Kubernetes`: ACK dedicated cluster. * * `ManagedKubernetes`: ACK managed cluster. ACK managed clusters include ACK Pro clusters, ACK Basic clusters, ACK Serverless Pro clusters, ACK Serverless Basic clusters, ACK Edge Pro clusters, and ACK Edge Basic clusters. * * `ExternalKubernetes`: registered cluster. */ public Builder clusterType(String clusterType) { this.putQueryParameter("cluster_type", clusterType); this.clusterType = clusterType; return this; } /** * The cluster name. *

* * The name must be 1 to 63 characters in length, and can contain digits, letters, and hyphens (-). The name cannot start with a hyphen (-). */ public Builder name(String name) { this.putQueryParameter("name", name); this.name = name; return this; } /** * The page number. */ public Builder pageNumber(Long pageNumber) { this.putQueryParameter("page_number", pageNumber); this.pageNumber = pageNumber; return this; } /** * The number of entries per page. */ public Builder pageSize(Long pageSize) { this.putQueryParameter("page_size", pageSize); this.pageSize = pageSize; return this; } /** * The identifier of the cluster. Valid values when the cluster_type parameter is set to `ManagedKubernetes`: *

* * * `Default`: ACK managed cluster * * `Serverless`: ACK Serverless cluster * * `Edge`: ACK Edge cluster * * Valid values when the cluster_type parameter is set to `Ask`: * * `ask.v2`: ACK Serverless cluster * * By default, this parameter is left empty. If you leave this parameter empty, ACK clusters are not filtered by identifier. */ public Builder profile(String profile) { this.putQueryParameter("profile", profile); this.profile = profile; return this; } /** * The region ID of the clusters. You can use this parameter to query all clusters in the specified region. */ public Builder regionId(String regionId) { this.putQueryParameter("region_id", regionId); this.regionId = regionId; return this; } @Override public DescribeClustersV1Request build() { return new DescribeClustersV1Request(this); } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy