com.aliyun.sdk.service.cs20151215.models.ListClusterKubeconfigStatesRequest Maven / Gradle / Ivy
Show all versions of alibabacloud-cs20151215 Show documentation
// 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 ListClusterKubeconfigStatesRequest} extends {@link RequestModel}
*
* ListClusterKubeconfigStatesRequest
*/
public class ListClusterKubeconfigStatesRequest extends Request {
@com.aliyun.core.annotation.Path
@com.aliyun.core.annotation.NameInMap("ClusterId")
private String clusterId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("pageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("pageSize")
private Integer pageSize;
private ListClusterKubeconfigStatesRequest(Builder builder) {
super(builder);
this.clusterId = builder.clusterId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
}
public static Builder builder() {
return new Builder();
}
public static ListClusterKubeconfigStatesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clusterId
*/
public String getClusterId() {
return this.clusterId;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
public static final class Builder extends Request.Builder {
private String clusterId;
private Integer pageNumber;
private Integer pageSize;
private Builder() {
super();
}
private Builder(ListClusterKubeconfigStatesRequest request) {
super(request);
this.clusterId = request.clusterId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
}
/**
* The cluster ID.
*/
public Builder clusterId(String clusterId) {
this.putPathParameter("ClusterId", clusterId);
this.clusterId = clusterId;
return this;
}
/**
* The page number.
*
*
* * Valid values: ≥ 1.
* * Default value: 1.
*/
public Builder pageNumber(Integer pageNumber) {
this.putQueryParameter("pageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* The number of entries per page.
*
*
* * Valid values: 10 to 50.
* * Default value: 10.
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("pageSize", pageSize);
this.pageSize = pageSize;
return this;
}
@Override
public ListClusterKubeconfigStatesRequest build() {
return new ListClusterKubeconfigStatesRequest(this);
}
}
}