
com.tencentcloudapi.memcached.v20190318.models.DescribeInstancesRequest 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.memcached.v20190318.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class DescribeInstancesRequest extends AbstractModel{
/**
* 枚举范围: AddTimeStamp, InstanceName, ProjectId
*/
@SerializedName("OrderBy")
@Expose
private String OrderBy;
/**
* 查找的关键字
*/
@SerializedName("SearchKeys")
@Expose
private String [] SearchKeys;
/**
* 子网ID列表
*/
@SerializedName("UniqSubnetIds")
@Expose
private String [] UniqSubnetIds;
/**
* VIP列表
*/
@SerializedName("Vips")
@Expose
private String [] Vips;
/**
* 0倒序,1正序,默认倒序
*/
@SerializedName("OrderType")
@Expose
private Long OrderType;
/**
* 实例名称列表
*/
@SerializedName("InstanceNames")
@Expose
private String [] InstanceNames;
/**
* VPC ID列表
*/
@SerializedName("UniqVpcIds")
@Expose
private String [] UniqVpcIds;
/**
* 项目ID列表
*/
@SerializedName("ProjectIds")
@Expose
private Long [] ProjectIds;
/**
* 偏移量,取Limit整数倍
*/
@SerializedName("Offset")
@Expose
private Long Offset;
/**
* 实例列表的大小,参数默认值100
*/
@SerializedName("Limit")
@Expose
private Long Limit;
/**
* 实例ID列表
*/
@SerializedName("InstanceIds")
@Expose
private String [] InstanceIds;
/**
* Get 枚举范围: AddTimeStamp, InstanceName, ProjectId
* @return OrderBy 枚举范围: AddTimeStamp, InstanceName, ProjectId
*/
public String getOrderBy() {
return this.OrderBy;
}
/**
* Set 枚举范围: AddTimeStamp, InstanceName, ProjectId
* @param OrderBy 枚举范围: AddTimeStamp, InstanceName, ProjectId
*/
public void setOrderBy(String OrderBy) {
this.OrderBy = OrderBy;
}
/**
* Get 查找的关键字
* @return SearchKeys 查找的关键字
*/
public String [] getSearchKeys() {
return this.SearchKeys;
}
/**
* Set 查找的关键字
* @param SearchKeys 查找的关键字
*/
public void setSearchKeys(String [] SearchKeys) {
this.SearchKeys = SearchKeys;
}
/**
* Get 子网ID列表
* @return UniqSubnetIds 子网ID列表
*/
public String [] getUniqSubnetIds() {
return this.UniqSubnetIds;
}
/**
* Set 子网ID列表
* @param UniqSubnetIds 子网ID列表
*/
public void setUniqSubnetIds(String [] UniqSubnetIds) {
this.UniqSubnetIds = UniqSubnetIds;
}
/**
* Get VIP列表
* @return Vips VIP列表
*/
public String [] getVips() {
return this.Vips;
}
/**
* Set VIP列表
* @param Vips VIP列表
*/
public void setVips(String [] Vips) {
this.Vips = Vips;
}
/**
* Get 0倒序,1正序,默认倒序
* @return OrderType 0倒序,1正序,默认倒序
*/
public Long getOrderType() {
return this.OrderType;
}
/**
* Set 0倒序,1正序,默认倒序
* @param OrderType 0倒序,1正序,默认倒序
*/
public void setOrderType(Long OrderType) {
this.OrderType = OrderType;
}
/**
* Get 实例名称列表
* @return InstanceNames 实例名称列表
*/
public String [] getInstanceNames() {
return this.InstanceNames;
}
/**
* Set 实例名称列表
* @param InstanceNames 实例名称列表
*/
public void setInstanceNames(String [] InstanceNames) {
this.InstanceNames = InstanceNames;
}
/**
* Get VPC ID列表
* @return UniqVpcIds VPC ID列表
*/
public String [] getUniqVpcIds() {
return this.UniqVpcIds;
}
/**
* Set VPC ID列表
* @param UniqVpcIds VPC ID列表
*/
public void setUniqVpcIds(String [] UniqVpcIds) {
this.UniqVpcIds = UniqVpcIds;
}
/**
* Get 项目ID列表
* @return ProjectIds 项目ID列表
*/
public Long [] getProjectIds() {
return this.ProjectIds;
}
/**
* Set 项目ID列表
* @param ProjectIds 项目ID列表
*/
public void setProjectIds(Long [] ProjectIds) {
this.ProjectIds = ProjectIds;
}
/**
* Get 偏移量,取Limit整数倍
* @return Offset 偏移量,取Limit整数倍
*/
public Long getOffset() {
return this.Offset;
}
/**
* Set 偏移量,取Limit整数倍
* @param Offset 偏移量,取Limit整数倍
*/
public void setOffset(Long Offset) {
this.Offset = Offset;
}
/**
* Get 实例列表的大小,参数默认值100
* @return Limit 实例列表的大小,参数默认值100
*/
public Long getLimit() {
return this.Limit;
}
/**
* Set 实例列表的大小,参数默认值100
* @param Limit 实例列表的大小,参数默认值100
*/
public void setLimit(Long Limit) {
this.Limit = Limit;
}
/**
* Get 实例ID列表
* @return InstanceIds 实例ID列表
*/
public String [] getInstanceIds() {
return this.InstanceIds;
}
/**
* Set 实例ID列表
* @param InstanceIds 实例ID列表
*/
public void setInstanceIds(String [] InstanceIds) {
this.InstanceIds = InstanceIds;
}
public DescribeInstancesRequest() {
}
/**
* 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 DescribeInstancesRequest(DescribeInstancesRequest source) {
if (source.OrderBy != null) {
this.OrderBy = new String(source.OrderBy);
}
if (source.SearchKeys != null) {
this.SearchKeys = new String[source.SearchKeys.length];
for (int i = 0; i < source.SearchKeys.length; i++) {
this.SearchKeys[i] = new String(source.SearchKeys[i]);
}
}
if (source.UniqSubnetIds != null) {
this.UniqSubnetIds = new String[source.UniqSubnetIds.length];
for (int i = 0; i < source.UniqSubnetIds.length; i++) {
this.UniqSubnetIds[i] = new String(source.UniqSubnetIds[i]);
}
}
if (source.Vips != null) {
this.Vips = new String[source.Vips.length];
for (int i = 0; i < source.Vips.length; i++) {
this.Vips[i] = new String(source.Vips[i]);
}
}
if (source.OrderType != null) {
this.OrderType = new Long(source.OrderType);
}
if (source.InstanceNames != null) {
this.InstanceNames = new String[source.InstanceNames.length];
for (int i = 0; i < source.InstanceNames.length; i++) {
this.InstanceNames[i] = new String(source.InstanceNames[i]);
}
}
if (source.UniqVpcIds != null) {
this.UniqVpcIds = new String[source.UniqVpcIds.length];
for (int i = 0; i < source.UniqVpcIds.length; i++) {
this.UniqVpcIds[i] = new String(source.UniqVpcIds[i]);
}
}
if (source.ProjectIds != null) {
this.ProjectIds = new Long[source.ProjectIds.length];
for (int i = 0; i < source.ProjectIds.length; i++) {
this.ProjectIds[i] = new Long(source.ProjectIds[i]);
}
}
if (source.Offset != null) {
this.Offset = new Long(source.Offset);
}
if (source.Limit != null) {
this.Limit = new Long(source.Limit);
}
if (source.InstanceIds != null) {
this.InstanceIds = new String[source.InstanceIds.length];
for (int i = 0; i < source.InstanceIds.length; i++) {
this.InstanceIds[i] = new String(source.InstanceIds[i]);
}
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "OrderBy", this.OrderBy);
this.setParamArraySimple(map, prefix + "SearchKeys.", this.SearchKeys);
this.setParamArraySimple(map, prefix + "UniqSubnetIds.", this.UniqSubnetIds);
this.setParamArraySimple(map, prefix + "Vips.", this.Vips);
this.setParamSimple(map, prefix + "OrderType", this.OrderType);
this.setParamArraySimple(map, prefix + "InstanceNames.", this.InstanceNames);
this.setParamArraySimple(map, prefix + "UniqVpcIds.", this.UniqVpcIds);
this.setParamArraySimple(map, prefix + "ProjectIds.", this.ProjectIds);
this.setParamSimple(map, prefix + "Offset", this.Offset);
this.setParamSimple(map, prefix + "Limit", this.Limit);
this.setParamArraySimple(map, prefix + "InstanceIds.", this.InstanceIds);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy