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

com.tencentcloudapi.bmvpc.v20180625.models.DescribeRoutePoliciesRequest 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.bmvpc.v20180625.models;

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

public class DescribeRoutePoliciesRequest extends AbstractModel{

    /**
    * 路由表实例ID,例如:rtb-afg8md3c。
    */
    @SerializedName("RouteTableId")
    @Expose
    private String RouteTableId;

    /**
    * 路由策略实例ID,例如:rti-azd4dt1c。
    */
    @SerializedName("RoutePolicyIds")
    @Expose
    private String [] RoutePolicyIds;

    /**
    * 过滤条件,参数不支持同时指定RoutePolicyIds和Filters。
route-table-id - String - (过滤条件)路由表实例ID。
vpc-id - String - (过滤条件)VPC实例ID,形如:vpc-f49l6u0z。
route-policy-id - String - (过滤条件)路由策略ID。
route-policy-description-like - String -(过滤条件)路由项备注。
route-policy-type - String - (过滤条件)路由项策略类型。
destination-cidr-like - String - (过滤条件)路由项目的地址。
gateway-id-like - String - (过滤条件)路由项下一跳网关。
gateway-type - String - (过滤条件)路由项下一条网关类型。
enable - Bool - (过滤条件)路由策略是否启用。
    */
    @SerializedName("Filters")
    @Expose
    private Filter [] Filters;

    /**
    * 初始行的偏移量,默认为0。
    */
    @SerializedName("Offset")
    @Expose
    private Long Offset;

    /**
    * 每页行数,默认为20。
    */
    @SerializedName("Limit")
    @Expose
    private Long Limit;

    /**
     * Get 路由表实例ID,例如:rtb-afg8md3c。 
     * @return RouteTableId 路由表实例ID,例如:rtb-afg8md3c。
     */
    public String getRouteTableId() {
        return this.RouteTableId;
    }

    /**
     * Set 路由表实例ID,例如:rtb-afg8md3c。
     * @param RouteTableId 路由表实例ID,例如:rtb-afg8md3c。
     */
    public void setRouteTableId(String RouteTableId) {
        this.RouteTableId = RouteTableId;
    }

    /**
     * Get 路由策略实例ID,例如:rti-azd4dt1c。 
     * @return RoutePolicyIds 路由策略实例ID,例如:rti-azd4dt1c。
     */
    public String [] getRoutePolicyIds() {
        return this.RoutePolicyIds;
    }

    /**
     * Set 路由策略实例ID,例如:rti-azd4dt1c。
     * @param RoutePolicyIds 路由策略实例ID,例如:rti-azd4dt1c。
     */
    public void setRoutePolicyIds(String [] RoutePolicyIds) {
        this.RoutePolicyIds = RoutePolicyIds;
    }

    /**
     * Get 过滤条件,参数不支持同时指定RoutePolicyIds和Filters。
route-table-id - String - (过滤条件)路由表实例ID。
vpc-id - String - (过滤条件)VPC实例ID,形如:vpc-f49l6u0z。
route-policy-id - String - (过滤条件)路由策略ID。
route-policy-description-like - String -(过滤条件)路由项备注。
route-policy-type - String - (过滤条件)路由项策略类型。
destination-cidr-like - String - (过滤条件)路由项目的地址。
gateway-id-like - String - (过滤条件)路由项下一跳网关。
gateway-type - String - (过滤条件)路由项下一条网关类型。
enable - Bool - (过滤条件)路由策略是否启用。 
     * @return Filters 过滤条件,参数不支持同时指定RoutePolicyIds和Filters。
route-table-id - String - (过滤条件)路由表实例ID。
vpc-id - String - (过滤条件)VPC实例ID,形如:vpc-f49l6u0z。
route-policy-id - String - (过滤条件)路由策略ID。
route-policy-description-like - String -(过滤条件)路由项备注。
route-policy-type - String - (过滤条件)路由项策略类型。
destination-cidr-like - String - (过滤条件)路由项目的地址。
gateway-id-like - String - (过滤条件)路由项下一跳网关。
gateway-type - String - (过滤条件)路由项下一条网关类型。
enable - Bool - (过滤条件)路由策略是否启用。
     */
    public Filter [] getFilters() {
        return this.Filters;
    }

    /**
     * Set 过滤条件,参数不支持同时指定RoutePolicyIds和Filters。
route-table-id - String - (过滤条件)路由表实例ID。
vpc-id - String - (过滤条件)VPC实例ID,形如:vpc-f49l6u0z。
route-policy-id - String - (过滤条件)路由策略ID。
route-policy-description-like - String -(过滤条件)路由项备注。
route-policy-type - String - (过滤条件)路由项策略类型。
destination-cidr-like - String - (过滤条件)路由项目的地址。
gateway-id-like - String - (过滤条件)路由项下一跳网关。
gateway-type - String - (过滤条件)路由项下一条网关类型。
enable - Bool - (过滤条件)路由策略是否启用。
     * @param Filters 过滤条件,参数不支持同时指定RoutePolicyIds和Filters。
route-table-id - String - (过滤条件)路由表实例ID。
vpc-id - String - (过滤条件)VPC实例ID,形如:vpc-f49l6u0z。
route-policy-id - String - (过滤条件)路由策略ID。
route-policy-description-like - String -(过滤条件)路由项备注。
route-policy-type - String - (过滤条件)路由项策略类型。
destination-cidr-like - String - (过滤条件)路由项目的地址。
gateway-id-like - String - (过滤条件)路由项下一跳网关。
gateway-type - String - (过滤条件)路由项下一条网关类型。
enable - Bool - (过滤条件)路由策略是否启用。
     */
    public void setFilters(Filter [] Filters) {
        this.Filters = Filters;
    }

    /**
     * Get 初始行的偏移量,默认为0。 
     * @return Offset 初始行的偏移量,默认为0。
     */
    public Long getOffset() {
        return this.Offset;
    }

    /**
     * Set 初始行的偏移量,默认为0。
     * @param Offset 初始行的偏移量,默认为0。
     */
    public void setOffset(Long Offset) {
        this.Offset = Offset;
    }

    /**
     * Get 每页行数,默认为20。 
     * @return Limit 每页行数,默认为20。
     */
    public Long getLimit() {
        return this.Limit;
    }

    /**
     * Set 每页行数,默认为20。
     * @param Limit 每页行数,默认为20。
     */
    public void setLimit(Long Limit) {
        this.Limit = Limit;
    }

    public DescribeRoutePoliciesRequest() {
    }

    /**
     * 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 DescribeRoutePoliciesRequest(DescribeRoutePoliciesRequest source) {
        if (source.RouteTableId != null) {
            this.RouteTableId = new String(source.RouteTableId);
        }
        if (source.RoutePolicyIds != null) {
            this.RoutePolicyIds = new String[source.RoutePolicyIds.length];
            for (int i = 0; i < source.RoutePolicyIds.length; i++) {
                this.RoutePolicyIds[i] = new String(source.RoutePolicyIds[i]);
            }
        }
        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.Offset != null) {
            this.Offset = new Long(source.Offset);
        }
        if (source.Limit != null) {
            this.Limit = new Long(source.Limit);
        }
    }


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

    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy