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

com.tencentcloudapi.bm.v20180423.models.DescribePsaRegulationsRequest 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.bm.v20180423.models;

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

public class DescribePsaRegulationsRequest extends AbstractModel{

    /**
    * 数量限制
    */
    @SerializedName("Limit")
    @Expose
    private Long Limit;

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

    /**
    * 规则ID过滤,支持模糊查询
    */
    @SerializedName("PsaIds")
    @Expose
    private String [] PsaIds;

    /**
    * 规则别名过滤,支持模糊查询
    */
    @SerializedName("PsaNames")
    @Expose
    private String [] PsaNames;

    /**
    * 标签过滤
    */
    @SerializedName("Tags")
    @Expose
    private Tag [] Tags;

    /**
    * 排序字段,取值支持:CreateTime
    */
    @SerializedName("OrderField")
    @Expose
    private String OrderField;

    /**
    * 排序方式 0:递增(默认) 1:递减
    */
    @SerializedName("Order")
    @Expose
    private Long Order;

    /**
     * Get 数量限制 
     * @return Limit 数量限制
     */
    public Long getLimit() {
        return this.Limit;
    }

    /**
     * Set 数量限制
     * @param Limit 数量限制
     */
    public void setLimit(Long Limit) {
        this.Limit = Limit;
    }

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

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

    /**
     * Get 规则ID过滤,支持模糊查询 
     * @return PsaIds 规则ID过滤,支持模糊查询
     */
    public String [] getPsaIds() {
        return this.PsaIds;
    }

    /**
     * Set 规则ID过滤,支持模糊查询
     * @param PsaIds 规则ID过滤,支持模糊查询
     */
    public void setPsaIds(String [] PsaIds) {
        this.PsaIds = PsaIds;
    }

    /**
     * Get 规则别名过滤,支持模糊查询 
     * @return PsaNames 规则别名过滤,支持模糊查询
     */
    public String [] getPsaNames() {
        return this.PsaNames;
    }

    /**
     * Set 规则别名过滤,支持模糊查询
     * @param PsaNames 规则别名过滤,支持模糊查询
     */
    public void setPsaNames(String [] PsaNames) {
        this.PsaNames = PsaNames;
    }

    /**
     * Get 标签过滤 
     * @return Tags 标签过滤
     */
    public Tag [] getTags() {
        return this.Tags;
    }

    /**
     * Set 标签过滤
     * @param Tags 标签过滤
     */
    public void setTags(Tag [] Tags) {
        this.Tags = Tags;
    }

    /**
     * Get 排序字段,取值支持:CreateTime 
     * @return OrderField 排序字段,取值支持:CreateTime
     */
    public String getOrderField() {
        return this.OrderField;
    }

    /**
     * Set 排序字段,取值支持:CreateTime
     * @param OrderField 排序字段,取值支持:CreateTime
     */
    public void setOrderField(String OrderField) {
        this.OrderField = OrderField;
    }

    /**
     * Get 排序方式 0:递增(默认) 1:递减 
     * @return Order 排序方式 0:递增(默认) 1:递减
     */
    public Long getOrder() {
        return this.Order;
    }

    /**
     * Set 排序方式 0:递增(默认) 1:递减
     * @param Order 排序方式 0:递增(默认) 1:递减
     */
    public void setOrder(Long Order) {
        this.Order = Order;
    }

    public DescribePsaRegulationsRequest() {
    }

    /**
     * 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 DescribePsaRegulationsRequest(DescribePsaRegulationsRequest source) {
        if (source.Limit != null) {
            this.Limit = new Long(source.Limit);
        }
        if (source.Offset != null) {
            this.Offset = new Long(source.Offset);
        }
        if (source.PsaIds != null) {
            this.PsaIds = new String[source.PsaIds.length];
            for (int i = 0; i < source.PsaIds.length; i++) {
                this.PsaIds[i] = new String(source.PsaIds[i]);
            }
        }
        if (source.PsaNames != null) {
            this.PsaNames = new String[source.PsaNames.length];
            for (int i = 0; i < source.PsaNames.length; i++) {
                this.PsaNames[i] = new String(source.PsaNames[i]);
            }
        }
        if (source.Tags != null) {
            this.Tags = new Tag[source.Tags.length];
            for (int i = 0; i < source.Tags.length; i++) {
                this.Tags[i] = new Tag(source.Tags[i]);
            }
        }
        if (source.OrderField != null) {
            this.OrderField = new String(source.OrderField);
        }
        if (source.Order != null) {
            this.Order = new Long(source.Order);
        }
    }


    /**
     * Internal implementation, normal users should not use it.
     */
    public void toMap(HashMap map, String prefix) {
        this.setParamSimple(map, prefix + "Limit", this.Limit);
        this.setParamSimple(map, prefix + "Offset", this.Offset);
        this.setParamArraySimple(map, prefix + "PsaIds.", this.PsaIds);
        this.setParamArraySimple(map, prefix + "PsaNames.", this.PsaNames);
        this.setParamArrayObj(map, prefix + "Tags.", this.Tags);
        this.setParamSimple(map, prefix + "OrderField", this.OrderField);
        this.setParamSimple(map, prefix + "Order", this.Order);

    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy