com.aliyuncs.dds.model.v20151201.CreateDBInstanceRequest 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 CreateDBInstanceRequest extends RpcAcsRequest {
private Long resourceOwnerId;
private Integer dBInstanceStorage;
private String secondaryZoneId;
private String couponNo;
private String engineVersion;
private String networkType;
private String srcRegion;
private String storageType;
private String resourceGroupId;
private String dBInstanceDescription;
private List tags;
private String globalSecurityGroupIds;
private String businessInfo;
private Integer period;
private String backupId;
private String encryptionKey;
private Long ownerId;
private String dBInstanceClass;
private String securityIPList;
private String vSwitchId;
private Long provisionedIops;
private String autoRenew;
private String zoneId;
private String clientToken;
private String readonlyReplicas;
private String replicationFactor;
private String storageEngine;
private String databaseNames;
private String engine;
private String hiddenZoneId;
private String restoreTime;
private String resourceOwnerAccount;
private String srcDBInstanceId;
private String ownerAccount;
private String clusterId;
private String restoreType;
private String accountPassword;
private Boolean encrypted;
private String vpcId;
private String chargeType;
public CreateDBInstanceRequest() {
super("Dds", "2015-12-01", "CreateDBInstance", "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 Integer getDBInstanceStorage() {
return this.dBInstanceStorage;
}
public void setDBInstanceStorage(Integer dBInstanceStorage) {
this.dBInstanceStorage = dBInstanceStorage;
if(dBInstanceStorage != null){
putQueryParameter("DBInstanceStorage", dBInstanceStorage.toString());
}
}
public String getSecondaryZoneId() {
return this.secondaryZoneId;
}
public void setSecondaryZoneId(String secondaryZoneId) {
this.secondaryZoneId = secondaryZoneId;
if(secondaryZoneId != null){
putQueryParameter("SecondaryZoneId", secondaryZoneId);
}
}
public String getCouponNo() {
return this.couponNo;
}
public void setCouponNo(String couponNo) {
this.couponNo = couponNo;
if(couponNo != null){
putQueryParameter("CouponNo", couponNo);
}
}
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 String getSrcRegion() {
return this.srcRegion;
}
public void setSrcRegion(String srcRegion) {
this.srcRegion = srcRegion;
if(srcRegion != null){
putQueryParameter("SrcRegion", srcRegion);
}
}
public String getStorageType() {
return this.storageType;
}
public void setStorageType(String storageType) {
this.storageType = storageType;
if(storageType != null){
putQueryParameter("StorageType", storageType);
}
}
public String getResourceGroupId() {
return this.resourceGroupId;
}
public void setResourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
if(resourceGroupId != null){
putQueryParameter("ResourceGroupId", resourceGroupId);
}
}
public String getDBInstanceDescription() {
return this.dBInstanceDescription;
}
public void setDBInstanceDescription(String dBInstanceDescription) {
this.dBInstanceDescription = dBInstanceDescription;
if(dBInstanceDescription != null){
putQueryParameter("DBInstanceDescription", dBInstanceDescription);
}
}
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 getGlobalSecurityGroupIds() {
return this.globalSecurityGroupIds;
}
public void setGlobalSecurityGroupIds(String globalSecurityGroupIds) {
this.globalSecurityGroupIds = globalSecurityGroupIds;
if(globalSecurityGroupIds != null){
putQueryParameter("GlobalSecurityGroupIds", globalSecurityGroupIds);
}
}
public String getBusinessInfo() {
return this.businessInfo;
}
public void setBusinessInfo(String businessInfo) {
this.businessInfo = businessInfo;
if(businessInfo != null){
putQueryParameter("BusinessInfo", businessInfo);
}
}
public Integer getPeriod() {
return this.period;
}
public void setPeriod(Integer period) {
this.period = period;
if(period != null){
putQueryParameter("Period", period.toString());
}
}
public String getBackupId() {
return this.backupId;
}
public void setBackupId(String backupId) {
this.backupId = backupId;
if(backupId != null){
putQueryParameter("BackupId", backupId);
}
}
public String getEncryptionKey() {
return this.encryptionKey;
}
public void setEncryptionKey(String encryptionKey) {
this.encryptionKey = encryptionKey;
if(encryptionKey != null){
putQueryParameter("EncryptionKey", encryptionKey);
}
}
public Long getOwnerId() {
return this.ownerId;
}
public void setOwnerId(Long ownerId) {
this.ownerId = ownerId;
if(ownerId != null){
putQueryParameter("OwnerId", ownerId.toString());
}
}
public String getDBInstanceClass() {
return this.dBInstanceClass;
}
public void setDBInstanceClass(String dBInstanceClass) {
this.dBInstanceClass = dBInstanceClass;
if(dBInstanceClass != null){
putQueryParameter("DBInstanceClass", dBInstanceClass);
}
}
public String getSecurityIPList() {
return this.securityIPList;
}
public void setSecurityIPList(String securityIPList) {
this.securityIPList = securityIPList;
if(securityIPList != null){
putQueryParameter("SecurityIPList", securityIPList);
}
}
public String getVSwitchId() {
return this.vSwitchId;
}
public void setVSwitchId(String vSwitchId) {
this.vSwitchId = vSwitchId;
if(vSwitchId != null){
putQueryParameter("VSwitchId", vSwitchId);
}
}
public Long getProvisionedIops() {
return this.provisionedIops;
}
public void setProvisionedIops(Long provisionedIops) {
this.provisionedIops = provisionedIops;
if(provisionedIops != null){
putQueryParameter("ProvisionedIops", provisionedIops.toString());
}
}
public String getAutoRenew() {
return this.autoRenew;
}
public void setAutoRenew(String autoRenew) {
this.autoRenew = autoRenew;
if(autoRenew != null){
putQueryParameter("AutoRenew", autoRenew);
}
}
public String getZoneId() {
return this.zoneId;
}
public void setZoneId(String zoneId) {
this.zoneId = zoneId;
if(zoneId != null){
putQueryParameter("ZoneId", zoneId);
}
}
public String getClientToken() {
return this.clientToken;
}
public void setClientToken(String clientToken) {
this.clientToken = clientToken;
if(clientToken != null){
putQueryParameter("ClientToken", clientToken);
}
}
public String getReadonlyReplicas() {
return this.readonlyReplicas;
}
public void setReadonlyReplicas(String readonlyReplicas) {
this.readonlyReplicas = readonlyReplicas;
if(readonlyReplicas != null){
putQueryParameter("ReadonlyReplicas", readonlyReplicas);
}
}
public String getReplicationFactor() {
return this.replicationFactor;
}
public void setReplicationFactor(String replicationFactor) {
this.replicationFactor = replicationFactor;
if(replicationFactor != null){
putQueryParameter("ReplicationFactor", replicationFactor);
}
}
public String getStorageEngine() {
return this.storageEngine;
}
public void setStorageEngine(String storageEngine) {
this.storageEngine = storageEngine;
if(storageEngine != null){
putQueryParameter("StorageEngine", storageEngine);
}
}
public String getDatabaseNames() {
return this.databaseNames;
}
public void setDatabaseNames(String databaseNames) {
this.databaseNames = databaseNames;
if(databaseNames != null){
putQueryParameter("DatabaseNames", databaseNames);
}
}
public String getEngine() {
return this.engine;
}
public void setEngine(String engine) {
this.engine = engine;
if(engine != null){
putQueryParameter("Engine", engine);
}
}
public String getHiddenZoneId() {
return this.hiddenZoneId;
}
public void setHiddenZoneId(String hiddenZoneId) {
this.hiddenZoneId = hiddenZoneId;
if(hiddenZoneId != null){
putQueryParameter("HiddenZoneId", hiddenZoneId);
}
}
public String getRestoreTime() {
return this.restoreTime;
}
public void setRestoreTime(String restoreTime) {
this.restoreTime = restoreTime;
if(restoreTime != null){
putQueryParameter("RestoreTime", restoreTime);
}
}
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
public void setResourceOwnerAccount(String resourceOwnerAccount) {
this.resourceOwnerAccount = resourceOwnerAccount;
if(resourceOwnerAccount != null){
putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
}
public String getSrcDBInstanceId() {
return this.srcDBInstanceId;
}
public void setSrcDBInstanceId(String srcDBInstanceId) {
this.srcDBInstanceId = srcDBInstanceId;
if(srcDBInstanceId != null){
putQueryParameter("SrcDBInstanceId", srcDBInstanceId);
}
}
public String getOwnerAccount() {
return this.ownerAccount;
}
public void setOwnerAccount(String ownerAccount) {
this.ownerAccount = ownerAccount;
if(ownerAccount != null){
putQueryParameter("OwnerAccount", ownerAccount);
}
}
public String getClusterId() {
return this.clusterId;
}
public void setClusterId(String clusterId) {
this.clusterId = clusterId;
if(clusterId != null){
putQueryParameter("ClusterId", clusterId);
}
}
public String getRestoreType() {
return this.restoreType;
}
public void setRestoreType(String restoreType) {
this.restoreType = restoreType;
if(restoreType != null){
putQueryParameter("RestoreType", restoreType);
}
}
public String getAccountPassword() {
return this.accountPassword;
}
public void setAccountPassword(String accountPassword) {
this.accountPassword = accountPassword;
if(accountPassword != null){
putQueryParameter("AccountPassword", accountPassword);
}
}
public Boolean getEncrypted() {
return this.encrypted;
}
public void setEncrypted(Boolean encrypted) {
this.encrypted = encrypted;
if(encrypted != null){
putQueryParameter("Encrypted", encrypted.toString());
}
}
public String getVpcId() {
return this.vpcId;
}
public void setVpcId(String vpcId) {
this.vpcId = vpcId;
if(vpcId != null){
putQueryParameter("VpcId", vpcId);
}
}
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 CreateDBInstanceResponse.class;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy