| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536 |
- /*
- * Copyright 2009-2017 Alibaba Cloud 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.
- */
- #include <alibabacloud/polardb/model/CreateDBClusterRequest.h>
- using AlibabaCloud::Polardb::Model::CreateDBClusterRequest;
- CreateDBClusterRequest::CreateDBClusterRequest()
- : RpcServiceRequest("polardb", "2017-08-01", "CreateDBCluster") {
- setMethod(HttpRequest::Method::Post);
- }
- CreateDBClusterRequest::~CreateDBClusterRequest() {}
- long CreateDBClusterRequest::getResourceOwnerId() const {
- return resourceOwnerId_;
- }
- void CreateDBClusterRequest::setResourceOwnerId(long resourceOwnerId) {
- resourceOwnerId_ = resourceOwnerId;
- setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
- }
- std::string CreateDBClusterRequest::getDBClusterDescription() const {
- return dBClusterDescription_;
- }
- void CreateDBClusterRequest::setDBClusterDescription(const std::string &dBClusterDescription) {
- dBClusterDescription_ = dBClusterDescription;
- setParameter(std::string("DBClusterDescription"), dBClusterDescription);
- }
- std::string CreateDBClusterRequest::getProxyClass() const {
- return proxyClass_;
- }
- void CreateDBClusterRequest::setProxyClass(const std::string &proxyClass) {
- proxyClass_ = proxyClass;
- setParameter(std::string("ProxyClass"), proxyClass);
- }
- std::string CreateDBClusterRequest::getProxyType() const {
- return proxyType_;
- }
- void CreateDBClusterRequest::setProxyType(const std::string &proxyType) {
- proxyType_ = proxyType;
- setParameter(std::string("ProxyType"), proxyType);
- }
- std::string CreateDBClusterRequest::getScaleMax() const {
- return scaleMax_;
- }
- void CreateDBClusterRequest::setScaleMax(const std::string &scaleMax) {
- scaleMax_ = scaleMax;
- setParameter(std::string("ScaleMax"), scaleMax);
- }
- std::string CreateDBClusterRequest::getStorageType() const {
- return storageType_;
- }
- void CreateDBClusterRequest::setStorageType(const std::string &storageType) {
- storageType_ = storageType;
- setParameter(std::string("StorageType"), storageType);
- }
- std::string CreateDBClusterRequest::getCreationCategory() const {
- return creationCategory_;
- }
- void CreateDBClusterRequest::setCreationCategory(const std::string &creationCategory) {
- creationCategory_ = creationCategory;
- setParameter(std::string("CreationCategory"), creationCategory);
- }
- std::string CreateDBClusterRequest::getResourceGroupId() const {
- return resourceGroupId_;
- }
- void CreateDBClusterRequest::setResourceGroupId(const std::string &resourceGroupId) {
- resourceGroupId_ = resourceGroupId;
- setParameter(std::string("ResourceGroupId"), resourceGroupId);
- }
- std::string CreateDBClusterRequest::getDBNodeClass() const {
- return dBNodeClass_;
- }
- void CreateDBClusterRequest::setDBNodeClass(const std::string &dBNodeClass) {
- dBNodeClass_ = dBNodeClass;
- setParameter(std::string("DBNodeClass"), dBNodeClass);
- }
- std::string CreateDBClusterRequest::getCreationOption() const {
- return creationOption_;
- }
- void CreateDBClusterRequest::setCreationOption(const std::string &creationOption) {
- creationOption_ = creationOption;
- setParameter(std::string("CreationOption"), creationOption);
- }
- std::vector<CreateDBClusterRequest::Tag> CreateDBClusterRequest::getTag() const {
- return tag_;
- }
- void CreateDBClusterRequest::setTag(const std::vector<CreateDBClusterRequest::Tag> &tag) {
- tag_ = tag;
- for(int dep1 = 0; dep1 != tag.size(); dep1++) {
- auto tagObj = tag.at(dep1);
- std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
- setParameter(tagObjStr + ".Value", tagObj.value);
- setParameter(tagObjStr + ".Key", tagObj.key);
- }
- }
- std::string CreateDBClusterRequest::getSourceResourceId() const {
- return sourceResourceId_;
- }
- void CreateDBClusterRequest::setSourceResourceId(const std::string &sourceResourceId) {
- sourceResourceId_ = sourceResourceId;
- setParameter(std::string("SourceResourceId"), sourceResourceId);
- }
- std::string CreateDBClusterRequest::getScaleMin() const {
- return scaleMin_;
- }
- void CreateDBClusterRequest::setScaleMin(const std::string &scaleMin) {
- scaleMin_ = scaleMin;
- setParameter(std::string("ScaleMin"), scaleMin);
- }
- std::string CreateDBClusterRequest::getBackupRetentionPolicyOnClusterDeletion() const {
- return backupRetentionPolicyOnClusterDeletion_;
- }
- void CreateDBClusterRequest::setBackupRetentionPolicyOnClusterDeletion(const std::string &backupRetentionPolicyOnClusterDeletion) {
- backupRetentionPolicyOnClusterDeletion_ = backupRetentionPolicyOnClusterDeletion;
- setParameter(std::string("BackupRetentionPolicyOnClusterDeletion"), backupRetentionPolicyOnClusterDeletion);
- }
- std::string CreateDBClusterRequest::getPeriod() const {
- return period_;
- }
- void CreateDBClusterRequest::setPeriod(const std::string &period) {
- period_ = period;
- setParameter(std::string("Period"), period);
- }
- long CreateDBClusterRequest::getOwnerId() const {
- return ownerId_;
- }
- void CreateDBClusterRequest::setOwnerId(long ownerId) {
- ownerId_ = ownerId;
- setParameter(std::string("OwnerId"), std::to_string(ownerId));
- }
- std::string CreateDBClusterRequest::getVSwitchId() const {
- return vSwitchId_;
- }
- void CreateDBClusterRequest::setVSwitchId(const std::string &vSwitchId) {
- vSwitchId_ = vSwitchId;
- setParameter(std::string("VSwitchId"), vSwitchId);
- }
- std::string CreateDBClusterRequest::getSecurityIPList() const {
- return securityIPList_;
- }
- void CreateDBClusterRequest::setSecurityIPList(const std::string &securityIPList) {
- securityIPList_ = securityIPList;
- setParameter(std::string("SecurityIPList"), securityIPList);
- }
- std::string CreateDBClusterRequest::getDBMinorVersion() const {
- return dBMinorVersion_;
- }
- void CreateDBClusterRequest::setDBMinorVersion(const std::string &dBMinorVersion) {
- dBMinorVersion_ = dBMinorVersion;
- setParameter(std::string("DBMinorVersion"), dBMinorVersion);
- }
- long CreateDBClusterRequest::getProvisionedIops() const {
- return provisionedIops_;
- }
- void CreateDBClusterRequest::setProvisionedIops(long provisionedIops) {
- provisionedIops_ = provisionedIops;
- setParameter(std::string("ProvisionedIops"), std::to_string(provisionedIops));
- }
- bool CreateDBClusterRequest::getAutoRenew() const {
- return autoRenew_;
- }
- void CreateDBClusterRequest::setAutoRenew(bool autoRenew) {
- autoRenew_ = autoRenew;
- setParameter(std::string("AutoRenew"), autoRenew ? "true" : "false");
- }
- std::string CreateDBClusterRequest::getHotStandbyCluster() const {
- return hotStandbyCluster_;
- }
- void CreateDBClusterRequest::setHotStandbyCluster(const std::string &hotStandbyCluster) {
- hotStandbyCluster_ = hotStandbyCluster;
- setParameter(std::string("HotStandbyCluster"), hotStandbyCluster);
- }
- std::string CreateDBClusterRequest::getStoragePayType() const {
- return storagePayType_;
- }
- void CreateDBClusterRequest::setStoragePayType(const std::string &storagePayType) {
- storagePayType_ = storagePayType;
- setParameter(std::string("StoragePayType"), storagePayType);
- }
- std::string CreateDBClusterRequest::getZoneId() const {
- return zoneId_;
- }
- void CreateDBClusterRequest::setZoneId(const std::string &zoneId) {
- zoneId_ = zoneId;
- setParameter(std::string("ZoneId"), zoneId);
- }
- std::string CreateDBClusterRequest::getStorageAutoScale() const {
- return storageAutoScale_;
- }
- void CreateDBClusterRequest::setStorageAutoScale(const std::string &storageAutoScale) {
- storageAutoScale_ = storageAutoScale;
- setParameter(std::string("StorageAutoScale"), storageAutoScale);
- }
- bool CreateDBClusterRequest::getTDEStatus() const {
- return tDEStatus_;
- }
- void CreateDBClusterRequest::setTDEStatus(bool tDEStatus) {
- tDEStatus_ = tDEStatus;
- setParameter(std::string("TDEStatus"), tDEStatus ? "true" : "false");
- }
- std::string CreateDBClusterRequest::getAllowShutDown() const {
- return allowShutDown_;
- }
- void CreateDBClusterRequest::setAllowShutDown(const std::string &allowShutDown) {
- allowShutDown_ = allowShutDown;
- setParameter(std::string("AllowShutDown"), allowShutDown);
- }
- std::string CreateDBClusterRequest::getLowerCaseTableNames() const {
- return lowerCaseTableNames_;
- }
- void CreateDBClusterRequest::setLowerCaseTableNames(const std::string &lowerCaseTableNames) {
- lowerCaseTableNames_ = lowerCaseTableNames;
- setParameter(std::string("LowerCaseTableNames"), lowerCaseTableNames);
- }
- std::string CreateDBClusterRequest::getScaleRoNumMax() const {
- return scaleRoNumMax_;
- }
- void CreateDBClusterRequest::setScaleRoNumMax(const std::string &scaleRoNumMax) {
- scaleRoNumMax_ = scaleRoNumMax;
- setParameter(std::string("ScaleRoNumMax"), scaleRoNumMax);
- }
- std::string CreateDBClusterRequest::getStandbyAZ() const {
- return standbyAZ_;
- }
- void CreateDBClusterRequest::setStandbyAZ(const std::string &standbyAZ) {
- standbyAZ_ = standbyAZ;
- setParameter(std::string("StandbyAZ"), standbyAZ);
- }
- std::string CreateDBClusterRequest::getClientToken() const {
- return clientToken_;
- }
- void CreateDBClusterRequest::setClientToken(const std::string &clientToken) {
- clientToken_ = clientToken;
- setParameter(std::string("ClientToken"), clientToken);
- }
- std::string CreateDBClusterRequest::getDefaultTimeZone() const {
- return defaultTimeZone_;
- }
- void CreateDBClusterRequest::setDefaultTimeZone(const std::string &defaultTimeZone) {
- defaultTimeZone_ = defaultTimeZone;
- setParameter(std::string("DefaultTimeZone"), defaultTimeZone);
- }
- std::string CreateDBClusterRequest::getAccessKeyId() const {
- return accessKeyId_;
- }
- void CreateDBClusterRequest::setAccessKeyId(const std::string &accessKeyId) {
- accessKeyId_ = accessKeyId;
- setParameter(std::string("AccessKeyId"), accessKeyId);
- }
- std::string CreateDBClusterRequest::getClusterNetworkType() const {
- return clusterNetworkType_;
- }
- void CreateDBClusterRequest::setClusterNetworkType(const std::string &clusterNetworkType) {
- clusterNetworkType_ = clusterNetworkType;
- setParameter(std::string("ClusterNetworkType"), clusterNetworkType);
- }
- std::string CreateDBClusterRequest::getParameterGroupId() const {
- return parameterGroupId_;
- }
- void CreateDBClusterRequest::setParameterGroupId(const std::string ¶meterGroupId) {
- parameterGroupId_ = parameterGroupId;
- setParameter(std::string("ParameterGroupId"), parameterGroupId);
- }
- std::string CreateDBClusterRequest::getRegionId() const {
- return regionId_;
- }
- void CreateDBClusterRequest::setRegionId(const std::string ®ionId) {
- regionId_ = regionId;
- setParameter(std::string("RegionId"), regionId);
- }
- std::string CreateDBClusterRequest::getEngine() const {
- return engine_;
- }
- void CreateDBClusterRequest::setEngine(const std::string &engine) {
- engine_ = engine;
- setParameter(std::string("Engine"), engine);
- }
- std::string CreateDBClusterRequest::getGDNId() const {
- return gDNId_;
- }
- void CreateDBClusterRequest::setGDNId(const std::string &gDNId) {
- gDNId_ = gDNId;
- setParameter(std::string("GDNId"), gDNId);
- }
- std::string CreateDBClusterRequest::getLooseXEngine() const {
- return looseXEngine_;
- }
- void CreateDBClusterRequest::setLooseXEngine(const std::string &looseXEngine) {
- looseXEngine_ = looseXEngine;
- setParameter(std::string("LooseXEngine"), looseXEngine);
- }
- std::string CreateDBClusterRequest::getLoosePolarLogBin() const {
- return loosePolarLogBin_;
- }
- void CreateDBClusterRequest::setLoosePolarLogBin(const std::string &loosePolarLogBin) {
- loosePolarLogBin_ = loosePolarLogBin;
- setParameter(std::string("LoosePolarLogBin"), loosePolarLogBin);
- }
- std::string CreateDBClusterRequest::getArchitecture() const {
- return architecture_;
- }
- void CreateDBClusterRequest::setArchitecture(const std::string &architecture) {
- architecture_ = architecture;
- setParameter(std::string("Architecture"), architecture);
- }
- std::string CreateDBClusterRequest::getResourceOwnerAccount() const {
- return resourceOwnerAccount_;
- }
- void CreateDBClusterRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
- resourceOwnerAccount_ = resourceOwnerAccount;
- setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
- }
- std::string CreateDBClusterRequest::getOwnerAccount() const {
- return ownerAccount_;
- }
- void CreateDBClusterRequest::setOwnerAccount(const std::string &ownerAccount) {
- ownerAccount_ = ownerAccount;
- setParameter(std::string("OwnerAccount"), ownerAccount);
- }
- std::string CreateDBClusterRequest::getLooseXEngineUseMemoryPct() const {
- return looseXEngineUseMemoryPct_;
- }
- void CreateDBClusterRequest::setLooseXEngineUseMemoryPct(const std::string &looseXEngineUseMemoryPct) {
- looseXEngineUseMemoryPct_ = looseXEngineUseMemoryPct;
- setParameter(std::string("LooseXEngineUseMemoryPct"), looseXEngineUseMemoryPct);
- }
- std::string CreateDBClusterRequest::getUsedTime() const {
- return usedTime_;
- }
- void CreateDBClusterRequest::setUsedTime(const std::string &usedTime) {
- usedTime_ = usedTime;
- setParameter(std::string("UsedTime"), usedTime);
- }
- int CreateDBClusterRequest::getDBNodeNum() const {
- return dBNodeNum_;
- }
- void CreateDBClusterRequest::setDBNodeNum(int dBNodeNum) {
- dBNodeNum_ = dBNodeNum;
- setParameter(std::string("DBNodeNum"), std::to_string(dBNodeNum));
- }
- long CreateDBClusterRequest::getStorageUpperBound() const {
- return storageUpperBound_;
- }
- void CreateDBClusterRequest::setStorageUpperBound(long storageUpperBound) {
- storageUpperBound_ = storageUpperBound;
- setParameter(std::string("StorageUpperBound"), std::to_string(storageUpperBound));
- }
- std::string CreateDBClusterRequest::getVPCId() const {
- return vPCId_;
- }
- void CreateDBClusterRequest::setVPCId(const std::string &vPCId) {
- vPCId_ = vPCId;
- setParameter(std::string("VPCId"), vPCId);
- }
- std::string CreateDBClusterRequest::getScaleRoNumMin() const {
- return scaleRoNumMin_;
- }
- void CreateDBClusterRequest::setScaleRoNumMin(const std::string &scaleRoNumMin) {
- scaleRoNumMin_ = scaleRoNumMin;
- setParameter(std::string("ScaleRoNumMin"), scaleRoNumMin);
- }
- std::string CreateDBClusterRequest::getDBType() const {
- return dBType_;
- }
- void CreateDBClusterRequest::setDBType(const std::string &dBType) {
- dBType_ = dBType;
- setParameter(std::string("DBType"), dBType);
- }
- std::string CreateDBClusterRequest::getDBVersion() const {
- return dBVersion_;
- }
- void CreateDBClusterRequest::setDBVersion(const std::string &dBVersion) {
- dBVersion_ = dBVersion;
- setParameter(std::string("DBVersion"), dBVersion);
- }
- std::string CreateDBClusterRequest::getStrictConsistency() const {
- return strictConsistency_;
- }
- void CreateDBClusterRequest::setStrictConsistency(const std::string &strictConsistency) {
- strictConsistency_ = strictConsistency;
- setParameter(std::string("StrictConsistency"), strictConsistency);
- }
- std::string CreateDBClusterRequest::getCloneDataPoint() const {
- return cloneDataPoint_;
- }
- void CreateDBClusterRequest::setCloneDataPoint(const std::string &cloneDataPoint) {
- cloneDataPoint_ = cloneDataPoint;
- setParameter(std::string("CloneDataPoint"), cloneDataPoint);
- }
- std::string CreateDBClusterRequest::getPayType() const {
- return payType_;
- }
- void CreateDBClusterRequest::setPayType(const std::string &payType) {
- payType_ = payType;
- setParameter(std::string("PayType"), payType);
- }
- long CreateDBClusterRequest::getStorageSpace() const {
- return storageSpace_;
- }
- void CreateDBClusterRequest::setStorageSpace(long storageSpace) {
- storageSpace_ = storageSpace;
- setParameter(std::string("StorageSpace"), std::to_string(storageSpace));
- }
- std::string CreateDBClusterRequest::getServerlessType() const {
- return serverlessType_;
- }
- void CreateDBClusterRequest::setServerlessType(const std::string &serverlessType) {
- serverlessType_ = serverlessType;
- setParameter(std::string("ServerlessType"), serverlessType);
- }
|