com.tencentcloudapi.dcdb.v20180411.models.DescribeDCDBShardsRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-dcdb Show documentation
Show all versions of tencentcloud-sdk-java-dcdb Show documentation
Tencent Cloud Open API SDK for Java
/*
* 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.dcdb.v20180411.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class DescribeDCDBShardsRequest extends AbstractModel{
/**
* 实例ID,形如:dcdbt-ow728lmc。
*/
@SerializedName("InstanceId")
@Expose
private String InstanceId;
/**
* 分片ID列表。
*/
@SerializedName("ShardInstanceIds")
@Expose
private String [] ShardInstanceIds;
/**
* 偏移量,默认为 0
*/
@SerializedName("Offset")
@Expose
private Long Offset;
/**
* 返回数量,默认为 20,最大值为 100。
*/
@SerializedName("Limit")
@Expose
private Long Limit;
/**
* 排序字段, 目前仅支持 createtime
*/
@SerializedName("OrderBy")
@Expose
private String OrderBy;
/**
* 排序类型, desc 或者 asc
*/
@SerializedName("OrderByType")
@Expose
private String OrderByType;
/**
* Get 实例ID,形如:dcdbt-ow728lmc。
* @return InstanceId 实例ID,形如:dcdbt-ow728lmc。
*/
public String getInstanceId() {
return this.InstanceId;
}
/**
* Set 实例ID,形如:dcdbt-ow728lmc。
* @param InstanceId 实例ID,形如:dcdbt-ow728lmc。
*/
public void setInstanceId(String InstanceId) {
this.InstanceId = InstanceId;
}
/**
* Get 分片ID列表。
* @return ShardInstanceIds 分片ID列表。
*/
public String [] getShardInstanceIds() {
return this.ShardInstanceIds;
}
/**
* Set 分片ID列表。
* @param ShardInstanceIds 分片ID列表。
*/
public void setShardInstanceIds(String [] ShardInstanceIds) {
this.ShardInstanceIds = ShardInstanceIds;
}
/**
* 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,最大值为 100。
* @return Limit 返回数量,默认为 20,最大值为 100。
*/
public Long getLimit() {
return this.Limit;
}
/**
* Set 返回数量,默认为 20,最大值为 100。
* @param Limit 返回数量,默认为 20,最大值为 100。
*/
public void setLimit(Long Limit) {
this.Limit = Limit;
}
/**
* Get 排序字段, 目前仅支持 createtime
* @return OrderBy 排序字段, 目前仅支持 createtime
*/
public String getOrderBy() {
return this.OrderBy;
}
/**
* Set 排序字段, 目前仅支持 createtime
* @param OrderBy 排序字段, 目前仅支持 createtime
*/
public void setOrderBy(String OrderBy) {
this.OrderBy = OrderBy;
}
/**
* Get 排序类型, desc 或者 asc
* @return OrderByType 排序类型, desc 或者 asc
*/
public String getOrderByType() {
return this.OrderByType;
}
/**
* Set 排序类型, desc 或者 asc
* @param OrderByType 排序类型, desc 或者 asc
*/
public void setOrderByType(String OrderByType) {
this.OrderByType = OrderByType;
}
public DescribeDCDBShardsRequest() {
}
/**
* 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 DescribeDCDBShardsRequest(DescribeDCDBShardsRequest source) {
if (source.InstanceId != null) {
this.InstanceId = new String(source.InstanceId);
}
if (source.ShardInstanceIds != null) {
this.ShardInstanceIds = new String[source.ShardInstanceIds.length];
for (int i = 0; i < source.ShardInstanceIds.length; i++) {
this.ShardInstanceIds[i] = new String(source.ShardInstanceIds[i]);
}
}
if (source.Offset != null) {
this.Offset = new Long(source.Offset);
}
if (source.Limit != null) {
this.Limit = new Long(source.Limit);
}
if (source.OrderBy != null) {
this.OrderBy = new String(source.OrderBy);
}
if (source.OrderByType != null) {
this.OrderByType = new String(source.OrderByType);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "InstanceId", this.InstanceId);
this.setParamArraySimple(map, prefix + "ShardInstanceIds.", this.ShardInstanceIds);
this.setParamSimple(map, prefix + "Offset", this.Offset);
this.setParamSimple(map, prefix + "Limit", this.Limit);
this.setParamSimple(map, prefix + "OrderBy", this.OrderBy);
this.setParamSimple(map, prefix + "OrderByType", this.OrderByType);
}
}