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

com.tencentcloudapi.tdmq.v20200217.models.DescribeRabbitMQNodeListRequest 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.tdmq.v20200217.models;

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

public class DescribeRabbitMQNodeListRequest extends AbstractModel {

    /**
    * TDMQ for RabbitMQ cluster ID
    */
    @SerializedName("InstanceId")
    @Expose
    private String InstanceId;

    /**
    * Offset
    */
    @SerializedName("Offset")
    @Expose
    private Long Offset;

    /**
    * The maximum entries per page
    */
    @SerializedName("Limit")
    @Expose
    private Long Limit;

    /**
    * Node name for fuzzy search
    */
    @SerializedName("NodeName")
    @Expose
    private String NodeName;

    /**
    * Name and value of a filter.
Currently, only the `nodeStatus` filter is supported.
Valid values: `running`, `down`.
It is an array type and can contain multiple filters.

    */
    @SerializedName("Filters")
    @Expose
    private Filter [] Filters;

    /**
    * Sorting by a specified element.
Valid values: `cpuUsage`, `diskUsage`.
    */
    @SerializedName("SortElement")
    @Expose
    private String SortElement;

    /**
    * Sorting order.
Valid values: `ascend`, `descend`.
    */
    @SerializedName("SortOrder")
    @Expose
    private String SortOrder;

    /**
     * Get TDMQ for RabbitMQ cluster ID 
     * @return InstanceId TDMQ for RabbitMQ cluster ID
     */
    public String getInstanceId() {
        return this.InstanceId;
    }

    /**
     * Set TDMQ for RabbitMQ cluster ID
     * @param InstanceId TDMQ for RabbitMQ cluster ID
     */
    public void setInstanceId(String InstanceId) {
        this.InstanceId = InstanceId;
    }

    /**
     * Get Offset 
     * @return Offset Offset
     */
    public Long getOffset() {
        return this.Offset;
    }

    /**
     * Set Offset
     * @param Offset Offset
     */
    public void setOffset(Long Offset) {
        this.Offset = Offset;
    }

    /**
     * Get The maximum entries per page 
     * @return Limit The maximum entries per page
     */
    public Long getLimit() {
        return this.Limit;
    }

    /**
     * Set The maximum entries per page
     * @param Limit The maximum entries per page
     */
    public void setLimit(Long Limit) {
        this.Limit = Limit;
    }

    /**
     * Get Node name for fuzzy search 
     * @return NodeName Node name for fuzzy search
     */
    public String getNodeName() {
        return this.NodeName;
    }

    /**
     * Set Node name for fuzzy search
     * @param NodeName Node name for fuzzy search
     */
    public void setNodeName(String NodeName) {
        this.NodeName = NodeName;
    }

    /**
     * Get Name and value of a filter.
Currently, only the `nodeStatus` filter is supported.
Valid values: `running`, `down`.
It is an array type and can contain multiple filters.
 
     * @return Filters Name and value of a filter.
Currently, only the `nodeStatus` filter is supported.
Valid values: `running`, `down`.
It is an array type and can contain multiple filters.

     */
    public Filter [] getFilters() {
        return this.Filters;
    }

    /**
     * Set Name and value of a filter.
Currently, only the `nodeStatus` filter is supported.
Valid values: `running`, `down`.
It is an array type and can contain multiple filters.

     * @param Filters Name and value of a filter.
Currently, only the `nodeStatus` filter is supported.
Valid values: `running`, `down`.
It is an array type and can contain multiple filters.

     */
    public void setFilters(Filter [] Filters) {
        this.Filters = Filters;
    }

    /**
     * Get Sorting by a specified element.
Valid values: `cpuUsage`, `diskUsage`. 
     * @return SortElement Sorting by a specified element.
Valid values: `cpuUsage`, `diskUsage`.
     */
    public String getSortElement() {
        return this.SortElement;
    }

    /**
     * Set Sorting by a specified element.
Valid values: `cpuUsage`, `diskUsage`.
     * @param SortElement Sorting by a specified element.
Valid values: `cpuUsage`, `diskUsage`.
     */
    public void setSortElement(String SortElement) {
        this.SortElement = SortElement;
    }

    /**
     * Get Sorting order.
Valid values: `ascend`, `descend`. 
     * @return SortOrder Sorting order.
Valid values: `ascend`, `descend`.
     */
    public String getSortOrder() {
        return this.SortOrder;
    }

    /**
     * Set Sorting order.
Valid values: `ascend`, `descend`.
     * @param SortOrder Sorting order.
Valid values: `ascend`, `descend`.
     */
    public void setSortOrder(String SortOrder) {
        this.SortOrder = SortOrder;
    }

    public DescribeRabbitMQNodeListRequest() {
    }

    /**
     * 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 DescribeRabbitMQNodeListRequest(DescribeRabbitMQNodeListRequest source) {
        if (source.InstanceId != null) {
            this.InstanceId = new String(source.InstanceId);
        }
        if (source.Offset != null) {
            this.Offset = new Long(source.Offset);
        }
        if (source.Limit != null) {
            this.Limit = new Long(source.Limit);
        }
        if (source.NodeName != null) {
            this.NodeName = new String(source.NodeName);
        }
        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.SortElement != null) {
            this.SortElement = new String(source.SortElement);
        }
        if (source.SortOrder != null) {
            this.SortOrder = new String(source.SortOrder);
        }
    }


    /**
     * Internal implementation, normal users should not use it.
     */
    public void toMap(HashMap map, String prefix) {
        this.setParamSimple(map, prefix + "InstanceId", this.InstanceId);
        this.setParamSimple(map, prefix + "Offset", this.Offset);
        this.setParamSimple(map, prefix + "Limit", this.Limit);
        this.setParamSimple(map, prefix + "NodeName", this.NodeName);
        this.setParamArrayObj(map, prefix + "Filters.", this.Filters);
        this.setParamSimple(map, prefix + "SortElement", this.SortElement);
        this.setParamSimple(map, prefix + "SortOrder", this.SortOrder);

    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy