com.tencentcloudapi.vpc.v20170312.models.DescribeCustomerGatewaysRequest 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.vpc.v20170312.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class DescribeCustomerGatewaysRequest extends AbstractModel{
/**
* Customer gateway ID, such as `cgw-2wqq41m9`. Each request can have a maximum of 100 instances. `CustomerGatewayIds` and `Filters` cannot be specified at the same time.
*/
@SerializedName("CustomerGatewayIds")
@Expose
private String [] CustomerGatewayIds;
/**
* The filter condition. For details, see the Instance Filter Conditions Table. The upper limit for `Filters` in each request is 10 and 5 for `Filter.Values`. `CustomerGatewayIds` and `Filters` cannot be specified at the same time.
customer-gateway-id - String - (Filter condition) The unique ID of the user gateway, such as `cgw-mgp33pll`.
customer-gateway-name - String - (Filter condition) The name of the user gateway, such as `test-cgw`.
ip-address - String - (Filter condition) The public IP address, such as `58.211.1.12`.
*/
@SerializedName("Filters")
@Expose
private Filter [] Filters;
/**
* The Offset. The default value is 0. For more information about Offset, see the relevant section in the API Introduction.
*/
@SerializedName("Offset")
@Expose
private Long Offset;
/**
* Number of returned results. Default value: 20. Maximum value: 100.
*/
@SerializedName("Limit")
@Expose
private Long Limit;
/**
* Get Customer gateway ID, such as `cgw-2wqq41m9`. Each request can have a maximum of 100 instances. `CustomerGatewayIds` and `Filters` cannot be specified at the same time.
* @return CustomerGatewayIds Customer gateway ID, such as `cgw-2wqq41m9`. Each request can have a maximum of 100 instances. `CustomerGatewayIds` and `Filters` cannot be specified at the same time.
*/
public String [] getCustomerGatewayIds() {
return this.CustomerGatewayIds;
}
/**
* Set Customer gateway ID, such as `cgw-2wqq41m9`. Each request can have a maximum of 100 instances. `CustomerGatewayIds` and `Filters` cannot be specified at the same time.
* @param CustomerGatewayIds Customer gateway ID, such as `cgw-2wqq41m9`. Each request can have a maximum of 100 instances. `CustomerGatewayIds` and `Filters` cannot be specified at the same time.
*/
public void setCustomerGatewayIds(String [] CustomerGatewayIds) {
this.CustomerGatewayIds = CustomerGatewayIds;
}
/**
* Get The filter condition. For details, see the Instance Filter Conditions Table. The upper limit for `Filters` in each request is 10 and 5 for `Filter.Values`. `CustomerGatewayIds` and `Filters` cannot be specified at the same time.
customer-gateway-id - String - (Filter condition) The unique ID of the user gateway, such as `cgw-mgp33pll`.
customer-gateway-name - String - (Filter condition) The name of the user gateway, such as `test-cgw`.
ip-address - String - (Filter condition) The public IP address, such as `58.211.1.12`.
* @return Filters The filter condition. For details, see the Instance Filter Conditions Table. The upper limit for `Filters` in each request is 10 and 5 for `Filter.Values`. `CustomerGatewayIds` and `Filters` cannot be specified at the same time.
customer-gateway-id - String - (Filter condition) The unique ID of the user gateway, such as `cgw-mgp33pll`.
customer-gateway-name - String - (Filter condition) The name of the user gateway, such as `test-cgw`.
ip-address - String - (Filter condition) The public IP address, such as `58.211.1.12`.
*/
public Filter [] getFilters() {
return this.Filters;
}
/**
* Set The filter condition. For details, see the Instance Filter Conditions Table. The upper limit for `Filters` in each request is 10 and 5 for `Filter.Values`. `CustomerGatewayIds` and `Filters` cannot be specified at the same time.
customer-gateway-id - String - (Filter condition) The unique ID of the user gateway, such as `cgw-mgp33pll`.
customer-gateway-name - String - (Filter condition) The name of the user gateway, such as `test-cgw`.
ip-address - String - (Filter condition) The public IP address, such as `58.211.1.12`.
* @param Filters The filter condition. For details, see the Instance Filter Conditions Table. The upper limit for `Filters` in each request is 10 and 5 for `Filter.Values`. `CustomerGatewayIds` and `Filters` cannot be specified at the same time.
customer-gateway-id - String - (Filter condition) The unique ID of the user gateway, such as `cgw-mgp33pll`.
customer-gateway-name - String - (Filter condition) The name of the user gateway, such as `test-cgw`.
ip-address - String - (Filter condition) The public IP address, such as `58.211.1.12`.
*/
public void setFilters(Filter [] Filters) {
this.Filters = Filters;
}
/**
* Get The Offset. The default value is 0. For more information about Offset, see the relevant section in the API Introduction.
* @return Offset The Offset. The default value is 0. For more information about Offset, see the relevant section in the API Introduction.
*/
public Long getOffset() {
return this.Offset;
}
/**
* Set The Offset. The default value is 0. For more information about Offset, see the relevant section in the API Introduction.
* @param Offset The Offset. The default value is 0. For more information about Offset, see the relevant section in the API Introduction.
*/
public void setOffset(Long Offset) {
this.Offset = Offset;
}
/**
* Get Number of returned results. Default value: 20. Maximum value: 100.
* @return Limit Number of returned results. Default value: 20. Maximum value: 100.
*/
public Long getLimit() {
return this.Limit;
}
/**
* Set Number of returned results. Default value: 20. Maximum value: 100.
* @param Limit Number of returned results. Default value: 20. Maximum value: 100.
*/
public void setLimit(Long Limit) {
this.Limit = Limit;
}
public DescribeCustomerGatewaysRequest() {
}
/**
* 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 DescribeCustomerGatewaysRequest(DescribeCustomerGatewaysRequest source) {
if (source.CustomerGatewayIds != null) {
this.CustomerGatewayIds = new String[source.CustomerGatewayIds.length];
for (int i = 0; i < source.CustomerGatewayIds.length; i++) {
this.CustomerGatewayIds[i] = new String(source.CustomerGatewayIds[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.setParamArraySimple(map, prefix + "CustomerGatewayIds.", this.CustomerGatewayIds);
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