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

com.tencentcloudapi.tdcpg.v20211118.models.DescribeClusterInstancesRequest Maven / Gradle / Ivy

/*
 * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.tencentcloudapi.tdcpg.v20211118.models;

import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class DescribeClusterInstancesRequest extends AbstractModel{

    /**
    * 集群ID
    */
    @SerializedName("ClusterId")
    @Expose
    private String ClusterId;

    /**
    * 页码,取值范围为[1,INF),默认值为1
    */
    @SerializedName("PageNumber")
    @Expose
    private Long PageNumber;

    /**
    * 每页个数,取值范围为默认为[1,100],默认值为20
    */
    @SerializedName("PageSize")
    @Expose
    private Long PageSize;

    /**
    * 目前支持查询条件包括:
 - InstanceId : 实例ID
 - InstanceName : 实例名
 - EndpointId : 接入点ID
 - Status : 实例状态
 - InstanceType : 实例类型
    */
    @SerializedName("Filters")
    @Expose
    private Filter [] Filters;

    /**
    * 排序字段,可选字段:
- CreateTime : 实例创建时间(默认值)
- PayPeriodEndTime : 实例过期时间
    */
    @SerializedName("OrderBy")
    @Expose
    private String OrderBy;

    /**
    * 排序方式,可选字段:
- DESC : 降序(默认值)
- ASC : 升序
    */
    @SerializedName("OrderByType")
    @Expose
    private String OrderByType;

    /**
     * Get 集群ID 
     * @return ClusterId 集群ID
     */
    public String getClusterId() {
        return this.ClusterId;
    }

    /**
     * Set 集群ID
     * @param ClusterId 集群ID
     */
    public void setClusterId(String ClusterId) {
        this.ClusterId = ClusterId;
    }

    /**
     * Get 页码,取值范围为[1,INF),默认值为1 
     * @return PageNumber 页码,取值范围为[1,INF),默认值为1
     */
    public Long getPageNumber() {
        return this.PageNumber;
    }

    /**
     * Set 页码,取值范围为[1,INF),默认值为1
     * @param PageNumber 页码,取值范围为[1,INF),默认值为1
     */
    public void setPageNumber(Long PageNumber) {
        this.PageNumber = PageNumber;
    }

    /**
     * Get 每页个数,取值范围为默认为[1,100],默认值为20 
     * @return PageSize 每页个数,取值范围为默认为[1,100],默认值为20
     */
    public Long getPageSize() {
        return this.PageSize;
    }

    /**
     * Set 每页个数,取值范围为默认为[1,100],默认值为20
     * @param PageSize 每页个数,取值范围为默认为[1,100],默认值为20
     */
    public void setPageSize(Long PageSize) {
        this.PageSize = PageSize;
    }

    /**
     * Get 目前支持查询条件包括:
 - InstanceId : 实例ID
 - InstanceName : 实例名
 - EndpointId : 接入点ID
 - Status : 实例状态
 - InstanceType : 实例类型 
     * @return Filters 目前支持查询条件包括:
 - InstanceId : 实例ID
 - InstanceName : 实例名
 - EndpointId : 接入点ID
 - Status : 实例状态
 - InstanceType : 实例类型
     */
    public Filter [] getFilters() {
        return this.Filters;
    }

    /**
     * Set 目前支持查询条件包括:
 - InstanceId : 实例ID
 - InstanceName : 实例名
 - EndpointId : 接入点ID
 - Status : 实例状态
 - InstanceType : 实例类型
     * @param Filters 目前支持查询条件包括:
 - InstanceId : 实例ID
 - InstanceName : 实例名
 - EndpointId : 接入点ID
 - Status : 实例状态
 - InstanceType : 实例类型
     */
    public void setFilters(Filter [] Filters) {
        this.Filters = Filters;
    }

    /**
     * Get 排序字段,可选字段:
- CreateTime : 实例创建时间(默认值)
- PayPeriodEndTime : 实例过期时间 
     * @return OrderBy 排序字段,可选字段:
- CreateTime : 实例创建时间(默认值)
- PayPeriodEndTime : 实例过期时间
     */
    public String getOrderBy() {
        return this.OrderBy;
    }

    /**
     * Set 排序字段,可选字段:
- CreateTime : 实例创建时间(默认值)
- PayPeriodEndTime : 实例过期时间
     * @param OrderBy 排序字段,可选字段:
- CreateTime : 实例创建时间(默认值)
- PayPeriodEndTime : 实例过期时间
     */
    public void setOrderBy(String OrderBy) {
        this.OrderBy = OrderBy;
    }

    /**
     * Get 排序方式,可选字段:
- DESC : 降序(默认值)
- ASC : 升序 
     * @return OrderByType 排序方式,可选字段:
- DESC : 降序(默认值)
- ASC : 升序
     */
    public String getOrderByType() {
        return this.OrderByType;
    }

    /**
     * Set 排序方式,可选字段:
- DESC : 降序(默认值)
- ASC : 升序
     * @param OrderByType 排序方式,可选字段:
- DESC : 降序(默认值)
- ASC : 升序
     */
    public void setOrderByType(String OrderByType) {
        this.OrderByType = OrderByType;
    }

    public DescribeClusterInstancesRequest() {
    }

    /**
     * NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
     *       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
     */
    public DescribeClusterInstancesRequest(DescribeClusterInstancesRequest source) {
        if (source.ClusterId != null) {
            this.ClusterId = new String(source.ClusterId);
        }
        if (source.PageNumber != null) {
            this.PageNumber = new Long(source.PageNumber);
        }
        if (source.PageSize != null) {
            this.PageSize = new Long(source.PageSize);
        }
        if (source.Filters != null) {
            this.Filters = new Filter[source.Filters.length];
            for (int i = 0; i < source.Filters.length; i++) {
                this.Filters[i] = new Filter(source.Filters[i]);
            }
        }
        if (source.OrderBy != null) {
            this.OrderBy = new String(source.OrderBy);
        }
        if (source.OrderByType != null) {
            this.OrderByType = new String(source.OrderByType);
        }
    }


    /**
     * Internal implementation, normal users should not use it.
     */
    public void toMap(HashMap map, String prefix) {
        this.setParamSimple(map, prefix + "ClusterId", this.ClusterId);
        this.setParamSimple(map, prefix + "PageNumber", this.PageNumber);
        this.setParamSimple(map, prefix + "PageSize", this.PageSize);
        this.setParamArrayObj(map, prefix + "Filters.", this.Filters);
        this.setParamSimple(map, prefix + "OrderBy", this.OrderBy);
        this.setParamSimple(map, prefix + "OrderByType", this.OrderByType);

    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy