com.tencentcloudapi.teo.v20220901.models.DescribeZonesRequest 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.teo.v20220901.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 DescribeZonesRequest extends AbstractModel {
/**
* The page offset. Default value: 0
*/
@SerializedName("Offset")
@Expose
private Long Offset;
/**
* Limit on paginated queries. Default value: 20. Maximum value: 100.
*/
@SerializedName("Limit")
@Expose
private Long Limit;
/**
* Filter conditions. Up to 20 values for each filter. If this parameter is not filled in, the information of all sites under the current account is returned. Detailed filtering conditions are as follows:
`zone-name`: Site name `zone-id`: Site ID, such as zone-2noz78a8ev6k `status`: Site status `tag-key`: Tag key `tag-value`: Tag value Only `zone-name` supports fuzzy query.
*/
@SerializedName("Filters")
@Expose
private AdvancedFilter [] Filters;
/**
* Sort the returned results according to this field. Values include:
`type`: Connection mode
`area`: Acceleration region
`create-time`: Creation time
`zone-name`: Site name
`use-time`: Last used time
`active-status` Effective status Default value: `create-time`
*/
@SerializedName("Order")
@Expose
private String Order;
/**
* Sort direction. If the field value is a number, sort by the numeric value. If the field value is text, sort by the ascill code. Values include:
`asc`: From the smallest to largest
`desc`: From the largest to smallest. Default value: `desc`
*/
@SerializedName("Direction")
@Expose
private String Direction;
/**
* Get The page offset. Default value: 0
* @return Offset The page offset. Default value: 0
*/
public Long getOffset() {
return this.Offset;
}
/**
* Set The page offset. Default value: 0
* @param Offset The page offset. Default value: 0
*/
public void setOffset(Long Offset) {
this.Offset = Offset;
}
/**
* Get Limit on paginated queries. Default value: 20. Maximum value: 100.
* @return Limit Limit on paginated queries. Default value: 20. Maximum value: 100.
*/
public Long getLimit() {
return this.Limit;
}
/**
* Set Limit on paginated queries. Default value: 20. Maximum value: 100.
* @param Limit Limit on paginated queries. Default value: 20. Maximum value: 100.
*/
public void setLimit(Long Limit) {
this.Limit = Limit;
}
/**
* Get Filter conditions. Up to 20 values for each filter. If this parameter is not filled in, the information of all sites under the current account is returned. Detailed filtering conditions are as follows:
`zone-name`: Site name `zone-id`: Site ID, such as zone-2noz78a8ev6k `status`: Site status `tag-key`: Tag key `tag-value`: Tag value Only `zone-name` supports fuzzy query.
* @return Filters Filter conditions. Up to 20 values for each filter. If this parameter is not filled in, the information of all sites under the current account is returned. Detailed filtering conditions are as follows:
`zone-name`: Site name `zone-id`: Site ID, such as zone-2noz78a8ev6k `status`: Site status `tag-key`: Tag key `tag-value`: Tag value Only `zone-name` supports fuzzy query.
*/
public AdvancedFilter [] getFilters() {
return this.Filters;
}
/**
* Set Filter conditions. Up to 20 values for each filter. If this parameter is not filled in, the information of all sites under the current account is returned. Detailed filtering conditions are as follows:
`zone-name`: Site name `zone-id`: Site ID, such as zone-2noz78a8ev6k `status`: Site status `tag-key`: Tag key `tag-value`: Tag value Only `zone-name` supports fuzzy query.
* @param Filters Filter conditions. Up to 20 values for each filter. If this parameter is not filled in, the information of all sites under the current account is returned. Detailed filtering conditions are as follows:
`zone-name`: Site name `zone-id`: Site ID, such as zone-2noz78a8ev6k `status`: Site status `tag-key`: Tag key `tag-value`: Tag value Only `zone-name` supports fuzzy query.
*/
public void setFilters(AdvancedFilter [] Filters) {
this.Filters = Filters;
}
/**
* Get Sort the returned results according to this field. Values include:
`type`: Connection mode
`area`: Acceleration region
`create-time`: Creation time
`zone-name`: Site name
`use-time`: Last used time
`active-status` Effective status Default value: `create-time`
* @return Order Sort the returned results according to this field. Values include:
`type`: Connection mode
`area`: Acceleration region
`create-time`: Creation time
`zone-name`: Site name
`use-time`: Last used time
`active-status` Effective status Default value: `create-time`
*/
public String getOrder() {
return this.Order;
}
/**
* Set Sort the returned results according to this field. Values include:
`type`: Connection mode
`area`: Acceleration region
`create-time`: Creation time
`zone-name`: Site name
`use-time`: Last used time
`active-status` Effective status Default value: `create-time`
* @param Order Sort the returned results according to this field. Values include:
`type`: Connection mode
`area`: Acceleration region
`create-time`: Creation time
`zone-name`: Site name
`use-time`: Last used time
`active-status` Effective status Default value: `create-time`
*/
public void setOrder(String Order) {
this.Order = Order;
}
/**
* Get Sort direction. If the field value is a number, sort by the numeric value. If the field value is text, sort by the ascill code. Values include:
`asc`: From the smallest to largest
`desc`: From the largest to smallest. Default value: `desc`
* @return Direction Sort direction. If the field value is a number, sort by the numeric value. If the field value is text, sort by the ascill code. Values include:
`asc`: From the smallest to largest
`desc`: From the largest to smallest. Default value: `desc`
*/
public String getDirection() {
return this.Direction;
}
/**
* Set Sort direction. If the field value is a number, sort by the numeric value. If the field value is text, sort by the ascill code. Values include:
`asc`: From the smallest to largest
`desc`: From the largest to smallest. Default value: `desc`
* @param Direction Sort direction. If the field value is a number, sort by the numeric value. If the field value is text, sort by the ascill code. Values include:
`asc`: From the smallest to largest
`desc`: From the largest to smallest. Default value: `desc`
*/
public void setDirection(String Direction) {
this.Direction = Direction;
}
public DescribeZonesRequest() {
}
/**
* 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 DescribeZonesRequest(DescribeZonesRequest source) {
if (source.Offset != null) {
this.Offset = new Long(source.Offset);
}
if (source.Limit != null) {
this.Limit = new Long(source.Limit);
}
if (source.Filters != null) {
this.Filters = new AdvancedFilter[source.Filters.length];
for (int i = 0; i < source.Filters.length; i++) {
this.Filters[i] = new AdvancedFilter(source.Filters[i]);
}
}
if (source.Order != null) {
this.Order = new String(source.Order);
}
if (source.Direction != null) {
this.Direction = new String(source.Direction);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "Offset", this.Offset);
this.setParamSimple(map, prefix + "Limit", this.Limit);
this.setParamArrayObj(map, prefix + "Filters.", this.Filters);
this.setParamSimple(map, prefix + "Order", this.Order);
this.setParamSimple(map, prefix + "Direction", this.Direction);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy