com.aliyuncs.dds.model.v20151201.DescribeDBInstancesRequest Maven / Gradle / Ivy
/*
* 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.aliyuncs.dds.model.v20151201;
import com.aliyuncs.RpcAcsRequest;
import java.util.List;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.dds.Endpoint;
/**
* @author auto create
* @version
*/
public class DescribeDBInstancesRequest extends RpcAcsRequest {
private Long resourceOwnerId;
private String engineVersion;
private String networkType;
private Integer pageNumber;
private String replicationFactor;
private String resourceGroupId;
private String expired;
private String engine;
private Integer pageSize;
private String dBNodeType;
private String dBInstanceId;
private String dBInstanceDescription;
private String dBInstanceStatus;
private List tags;
private String expireTime;
private String resourceOwnerAccount;
private String ownerAccount;
private String connectionDomain;
private Long ownerId;
private String dBInstanceType;
private String dBInstanceClass;
private String vSwitchId;
private String vpcId;
private String zoneId;
private String chargeType;
public DescribeDBInstancesRequest() {
super("Dds", "2015-12-01", "DescribeDBInstances", "dds");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
} catch (Exception e) {}
}
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public void setResourceOwnerId(Long resourceOwnerId) {
this.resourceOwnerId = resourceOwnerId;
if(resourceOwnerId != null){
putQueryParameter("ResourceOwnerId", resourceOwnerId.toString());
}
}
public String getEngineVersion() {
return this.engineVersion;
}
public void setEngineVersion(String engineVersion) {
this.engineVersion = engineVersion;
if(engineVersion != null){
putQueryParameter("EngineVersion", engineVersion);
}
}
public String getNetworkType() {
return this.networkType;
}
public void setNetworkType(String networkType) {
this.networkType = networkType;
if(networkType != null){
putQueryParameter("NetworkType", networkType);
}
}
public Integer getPageNumber() {
return this.pageNumber;
}
public void setPageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
if(pageNumber != null){
putQueryParameter("PageNumber", pageNumber.toString());
}
}
public String getReplicationFactor() {
return this.replicationFactor;
}
public void setReplicationFactor(String replicationFactor) {
this.replicationFactor = replicationFactor;
if(replicationFactor != null){
putQueryParameter("ReplicationFactor", replicationFactor);
}
}
public String getResourceGroupId() {
return this.resourceGroupId;
}
public void setResourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
if(resourceGroupId != null){
putQueryParameter("ResourceGroupId", resourceGroupId);
}
}
public String getExpired() {
return this.expired;
}
public void setExpired(String expired) {
this.expired = expired;
if(expired != null){
putQueryParameter("Expired", expired);
}
}
public String getEngine() {
return this.engine;
}
public void setEngine(String engine) {
this.engine = engine;
if(engine != null){
putQueryParameter("Engine", engine);
}
}
public Integer getPageSize() {
return this.pageSize;
}
public void setPageSize(Integer pageSize) {
this.pageSize = pageSize;
if(pageSize != null){
putQueryParameter("PageSize", pageSize.toString());
}
}
public String getDBNodeType() {
return this.dBNodeType;
}
public void setDBNodeType(String dBNodeType) {
this.dBNodeType = dBNodeType;
if(dBNodeType != null){
putQueryParameter("DBNodeType", dBNodeType);
}
}
public String getDBInstanceId() {
return this.dBInstanceId;
}
public void setDBInstanceId(String dBInstanceId) {
this.dBInstanceId = dBInstanceId;
if(dBInstanceId != null){
putQueryParameter("DBInstanceId", dBInstanceId);
}
}
public String getDBInstanceDescription() {
return this.dBInstanceDescription;
}
public void setDBInstanceDescription(String dBInstanceDescription) {
this.dBInstanceDescription = dBInstanceDescription;
if(dBInstanceDescription != null){
putQueryParameter("DBInstanceDescription", dBInstanceDescription);
}
}
public String getDBInstanceStatus() {
return this.dBInstanceStatus;
}
public void setDBInstanceStatus(String dBInstanceStatus) {
this.dBInstanceStatus = dBInstanceStatus;
if(dBInstanceStatus != null){
putQueryParameter("DBInstanceStatus", dBInstanceStatus);
}
}
public List getTags() {
return this.tags;
}
public void setTags(List tags) {
this.tags = tags;
if (tags != null) {
for (int depth1 = 0; depth1 < tags.size(); depth1++) {
putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue());
putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey());
}
}
}
public String getExpireTime() {
return this.expireTime;
}
public void setExpireTime(String expireTime) {
this.expireTime = expireTime;
if(expireTime != null){
putQueryParameter("ExpireTime", expireTime);
}
}
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
public void setResourceOwnerAccount(String resourceOwnerAccount) {
this.resourceOwnerAccount = resourceOwnerAccount;
if(resourceOwnerAccount != null){
putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
}
public String getOwnerAccount() {
return this.ownerAccount;
}
public void setOwnerAccount(String ownerAccount) {
this.ownerAccount = ownerAccount;
if(ownerAccount != null){
putQueryParameter("OwnerAccount", ownerAccount);
}
}
public String getConnectionDomain() {
return this.connectionDomain;
}
public void setConnectionDomain(String connectionDomain) {
this.connectionDomain = connectionDomain;
if(connectionDomain != null){
putQueryParameter("ConnectionDomain", connectionDomain);
}
}
public Long getOwnerId() {
return this.ownerId;
}
public void setOwnerId(Long ownerId) {
this.ownerId = ownerId;
if(ownerId != null){
putQueryParameter("OwnerId", ownerId.toString());
}
}
public String getDBInstanceType() {
return this.dBInstanceType;
}
public void setDBInstanceType(String dBInstanceType) {
this.dBInstanceType = dBInstanceType;
if(dBInstanceType != null){
putQueryParameter("DBInstanceType", dBInstanceType);
}
}
public String getDBInstanceClass() {
return this.dBInstanceClass;
}
public void setDBInstanceClass(String dBInstanceClass) {
this.dBInstanceClass = dBInstanceClass;
if(dBInstanceClass != null){
putQueryParameter("DBInstanceClass", dBInstanceClass);
}
}
public String getVSwitchId() {
return this.vSwitchId;
}
public void setVSwitchId(String vSwitchId) {
this.vSwitchId = vSwitchId;
if(vSwitchId != null){
putQueryParameter("VSwitchId", vSwitchId);
}
}
public String getVpcId() {
return this.vpcId;
}
public void setVpcId(String vpcId) {
this.vpcId = vpcId;
if(vpcId != null){
putQueryParameter("VpcId", vpcId);
}
}
public String getZoneId() {
return this.zoneId;
}
public void setZoneId(String zoneId) {
this.zoneId = zoneId;
if(zoneId != null){
putQueryParameter("ZoneId", zoneId);
}
}
public String getChargeType() {
return this.chargeType;
}
public void setChargeType(String chargeType) {
this.chargeType = chargeType;
if(chargeType != null){
putQueryParameter("ChargeType", chargeType);
}
}
public static class Tag {
private String value;
private String key;
public String getValue() {
return this.value;
}
public void setValue(String value) {
this.value = value;
}
public String getKey() {
return this.key;
}
public void setKey(String key) {
this.key = key;
}
}
@Override
public Class getResponseClass() {
return DescribeDBInstancesResponse.class;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy