|
@@ -1,171 +1,163 @@
|
|
|
/*
|
|
/*
|
|
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
|
|
- *
|
|
|
|
|
|
|
+ *
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
* you may not use this file except in compliance with the License.
|
|
* you may not use this file except in compliance with the License.
|
|
|
* You may obtain a copy of the License at
|
|
* You may obtain a copy of the License at
|
|
|
- *
|
|
|
|
|
|
|
+ *
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
- *
|
|
|
|
|
|
|
+ *
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
* See the License for the specific language governing permissions and
|
|
* See the License for the specific language governing permissions and
|
|
|
* limitations under the License.
|
|
* limitations under the License.
|
|
|
- */
|
|
|
|
|
-
|
|
|
|
|
-#ifndef ALIBABACLOUD_R_KVSTORE_MODEL_CREATEINSTANCEREQUEST_H_
|
|
|
|
|
-#define ALIBABACLOUD_R_KVSTORE_MODEL_CREATEINSTANCEREQUEST_H_
|
|
|
|
|
-
|
|
|
|
|
-#include <string>
|
|
|
|
|
-#include <vector>
|
|
|
|
|
-#include <alibabacloud/core/RpcServiceRequest.h>
|
|
|
|
|
-#include <alibabacloud/r-kvstore/R_kvstoreExport.h>
|
|
|
|
|
-
|
|
|
|
|
-namespace AlibabaCloud
|
|
|
|
|
-{
|
|
|
|
|
- namespace R_kvstore
|
|
|
|
|
- {
|
|
|
|
|
- namespace Model
|
|
|
|
|
- {
|
|
|
|
|
- class ALIBABACLOUD_R_KVSTORE_EXPORT CreateInstanceRequest : public RpcServiceRequest
|
|
|
|
|
- {
|
|
|
|
|
- public:
|
|
|
|
|
- struct Tag
|
|
|
|
|
- {
|
|
|
|
|
- std::string value;
|
|
|
|
|
- std::string key;
|
|
|
|
|
- };
|
|
|
|
|
-
|
|
|
|
|
- public:
|
|
|
|
|
- CreateInstanceRequest();
|
|
|
|
|
- ~CreateInstanceRequest();
|
|
|
|
|
-
|
|
|
|
|
- long getResourceOwnerId()const;
|
|
|
|
|
- void setResourceOwnerId(long resourceOwnerId);
|
|
|
|
|
- std::string getSecondaryZoneId()const;
|
|
|
|
|
- void setSecondaryZoneId(const std::string& secondaryZoneId);
|
|
|
|
|
- std::string getCouponNo()const;
|
|
|
|
|
- void setCouponNo(const std::string& couponNo);
|
|
|
|
|
- std::string getNetworkType()const;
|
|
|
|
|
- void setNetworkType(const std::string& networkType);
|
|
|
|
|
- std::string getEngineVersion()const;
|
|
|
|
|
- void setEngineVersion(const std::string& engineVersion);
|
|
|
|
|
- std::string getResourceGroupId()const;
|
|
|
|
|
- void setResourceGroupId(const std::string& resourceGroupId);
|
|
|
|
|
- std::string getPassword()const;
|
|
|
|
|
- void setPassword(const std::string& password);
|
|
|
|
|
- std::string getSecurityToken()const;
|
|
|
|
|
- void setSecurityToken(const std::string& securityToken);
|
|
|
|
|
- std::vector<Tag> getTag()const;
|
|
|
|
|
- void setTag(const std::vector<Tag>& tag);
|
|
|
|
|
- std::string getBusinessInfo()const;
|
|
|
|
|
- void setBusinessInfo(const std::string& businessInfo);
|
|
|
|
|
- int getShardCount()const;
|
|
|
|
|
- void setShardCount(int shardCount);
|
|
|
|
|
- std::string getAutoRenewPeriod()const;
|
|
|
|
|
- void setAutoRenewPeriod(const std::string& autoRenewPeriod);
|
|
|
|
|
- std::string getPeriod()const;
|
|
|
|
|
- void setPeriod(const std::string& period);
|
|
|
|
|
- bool getDryRun()const;
|
|
|
|
|
- void setDryRun(bool dryRun);
|
|
|
|
|
- std::string getBackupId()const;
|
|
|
|
|
- void setBackupId(const std::string& backupId);
|
|
|
|
|
- long getOwnerId()const;
|
|
|
|
|
- void setOwnerId(long ownerId);
|
|
|
|
|
- std::string getVSwitchId()const;
|
|
|
|
|
- void setVSwitchId(const std::string& vSwitchId);
|
|
|
|
|
- std::string getPrivateIpAddress()const;
|
|
|
|
|
- void setPrivateIpAddress(const std::string& privateIpAddress);
|
|
|
|
|
- std::string getInstanceName()const;
|
|
|
|
|
- void setInstanceName(const std::string& instanceName);
|
|
|
|
|
- std::string getAutoRenew()const;
|
|
|
|
|
- void setAutoRenew(const std::string& autoRenew);
|
|
|
|
|
- std::string getPort()const;
|
|
|
|
|
- void setPort(const std::string& port);
|
|
|
|
|
- std::string getZoneId()const;
|
|
|
|
|
- void setZoneId(const std::string& zoneId);
|
|
|
|
|
- std::string getNodeType()const;
|
|
|
|
|
- void setNodeType(const std::string& nodeType);
|
|
|
|
|
- std::string getAutoUseCoupon()const;
|
|
|
|
|
- void setAutoUseCoupon(const std::string& autoUseCoupon);
|
|
|
|
|
- std::string getInstanceClass()const;
|
|
|
|
|
- void setInstanceClass(const std::string& instanceClass);
|
|
|
|
|
- std::string getAccessKeyId()const;
|
|
|
|
|
- void setAccessKeyId(const std::string& accessKeyId);
|
|
|
|
|
- long getCapacity()const;
|
|
|
|
|
- void setCapacity(long capacity);
|
|
|
|
|
- std::string getRegionId()const;
|
|
|
|
|
- void setRegionId(const std::string& regionId);
|
|
|
|
|
- std::string getInstanceType()const;
|
|
|
|
|
- void setInstanceType(const std::string& instanceType);
|
|
|
|
|
- std::string getDedicatedHostGroupId()const;
|
|
|
|
|
- void setDedicatedHostGroupId(const std::string& dedicatedHostGroupId);
|
|
|
|
|
- std::string getRestoreTime()const;
|
|
|
|
|
- void setRestoreTime(const std::string& restoreTime);
|
|
|
|
|
- std::string getResourceOwnerAccount()const;
|
|
|
|
|
- void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
|
|
|
|
- std::string getSrcDBInstanceId()const;
|
|
|
|
|
- void setSrcDBInstanceId(const std::string& srcDBInstanceId);
|
|
|
|
|
- std::string getOwnerAccount()const;
|
|
|
|
|
- void setOwnerAccount(const std::string& ownerAccount);
|
|
|
|
|
- bool getGlobalInstance()const;
|
|
|
|
|
- void setGlobalInstance(bool globalInstance);
|
|
|
|
|
- std::string getToken()const;
|
|
|
|
|
- void setToken(const std::string& token);
|
|
|
|
|
- std::string getGlobalInstanceId()const;
|
|
|
|
|
- void setGlobalInstanceId(const std::string& globalInstanceId);
|
|
|
|
|
- std::string getVpcId()const;
|
|
|
|
|
- void setVpcId(const std::string& vpcId);
|
|
|
|
|
- std::string getChargeType()const;
|
|
|
|
|
- void setChargeType(const std::string& chargeType);
|
|
|
|
|
- std::string getConfig()const;
|
|
|
|
|
- void setConfig(const std::string& config);
|
|
|
|
|
-
|
|
|
|
|
- private:
|
|
|
|
|
- long resourceOwnerId_;
|
|
|
|
|
- std::string secondaryZoneId_;
|
|
|
|
|
- std::string couponNo_;
|
|
|
|
|
- std::string networkType_;
|
|
|
|
|
- std::string engineVersion_;
|
|
|
|
|
- std::string resourceGroupId_;
|
|
|
|
|
- std::string password_;
|
|
|
|
|
- std::string securityToken_;
|
|
|
|
|
- std::vector<Tag> tag_;
|
|
|
|
|
- std::string businessInfo_;
|
|
|
|
|
- int shardCount_;
|
|
|
|
|
- std::string autoRenewPeriod_;
|
|
|
|
|
- std::string period_;
|
|
|
|
|
- bool dryRun_;
|
|
|
|
|
- std::string backupId_;
|
|
|
|
|
- long ownerId_;
|
|
|
|
|
- std::string vSwitchId_;
|
|
|
|
|
- std::string privateIpAddress_;
|
|
|
|
|
- std::string instanceName_;
|
|
|
|
|
- std::string autoRenew_;
|
|
|
|
|
- std::string port_;
|
|
|
|
|
- std::string zoneId_;
|
|
|
|
|
- std::string nodeType_;
|
|
|
|
|
- std::string autoUseCoupon_;
|
|
|
|
|
- std::string instanceClass_;
|
|
|
|
|
- std::string accessKeyId_;
|
|
|
|
|
- long capacity_;
|
|
|
|
|
- std::string regionId_;
|
|
|
|
|
- std::string instanceType_;
|
|
|
|
|
- std::string dedicatedHostGroupId_;
|
|
|
|
|
- std::string restoreTime_;
|
|
|
|
|
- std::string resourceOwnerAccount_;
|
|
|
|
|
- std::string srcDBInstanceId_;
|
|
|
|
|
- std::string ownerAccount_;
|
|
|
|
|
- bool globalInstance_;
|
|
|
|
|
- std::string token_;
|
|
|
|
|
- std::string globalInstanceId_;
|
|
|
|
|
- std::string vpcId_;
|
|
|
|
|
- std::string chargeType_;
|
|
|
|
|
- std::string config_;
|
|
|
|
|
-
|
|
|
|
|
- };
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-}
|
|
|
|
|
-#endif // !ALIBABACLOUD_R_KVSTORE_MODEL_CREATEINSTANCEREQUEST_H_
|
|
|
|
|
|
|
+ */
|
|
|
|
|
+
|
|
|
|
|
+#ifndef ALIBABACLOUD_R_KVSTORE_MODEL_CREATEINSTANCEREQUEST_H_
|
|
|
|
|
+#define ALIBABACLOUD_R_KVSTORE_MODEL_CREATEINSTANCEREQUEST_H_
|
|
|
|
|
+
|
|
|
|
|
+#include <alibabacloud/r-kvstore/R_kvstoreExport.h>
|
|
|
|
|
+#include <alibabacloud/core/RpcServiceRequest.h>
|
|
|
|
|
+#include <string>
|
|
|
|
|
+#include <vector>
|
|
|
|
|
+#include <map>
|
|
|
|
|
+
|
|
|
|
|
+namespace AlibabaCloud {
|
|
|
|
|
+namespace R_kvstore {
|
|
|
|
|
+namespace Model {
|
|
|
|
|
+class ALIBABACLOUD_R_KVSTORE_EXPORT CreateInstanceRequest : public RpcServiceRequest {
|
|
|
|
|
+public:
|
|
|
|
|
+ struct Tag {
|
|
|
|
|
+ std::string value;
|
|
|
|
|
+ std::string key;
|
|
|
|
|
+ };
|
|
|
|
|
+ CreateInstanceRequest();
|
|
|
|
|
+ ~CreateInstanceRequest();
|
|
|
|
|
+ long getResourceOwnerId() const;
|
|
|
|
|
+ void setResourceOwnerId(long resourceOwnerId);
|
|
|
|
|
+ std::string getSecondaryZoneId() const;
|
|
|
|
|
+ void setSecondaryZoneId(const std::string &secondaryZoneId);
|
|
|
|
|
+ std::string getCouponNo() const;
|
|
|
|
|
+ void setCouponNo(const std::string &couponNo);
|
|
|
|
|
+ std::string getNetworkType() const;
|
|
|
|
|
+ void setNetworkType(const std::string &networkType);
|
|
|
|
|
+ std::string getEngineVersion() const;
|
|
|
|
|
+ void setEngineVersion(const std::string &engineVersion);
|
|
|
|
|
+ std::string getResourceGroupId() const;
|
|
|
|
|
+ void setResourceGroupId(const std::string &resourceGroupId);
|
|
|
|
|
+ std::string getPassword() const;
|
|
|
|
|
+ void setPassword(const std::string &password);
|
|
|
|
|
+ std::string getSecurityToken() const;
|
|
|
|
|
+ void setSecurityToken(const std::string &securityToken);
|
|
|
|
|
+ std::vector<Tag> getTag() const;
|
|
|
|
|
+ void setTag(const std::vector<Tag> &tag);
|
|
|
|
|
+ std::string getBusinessInfo() const;
|
|
|
|
|
+ void setBusinessInfo(const std::string &businessInfo);
|
|
|
|
|
+ int getShardCount() const;
|
|
|
|
|
+ void setShardCount(int shardCount);
|
|
|
|
|
+ std::string getAutoRenewPeriod() const;
|
|
|
|
|
+ void setAutoRenewPeriod(const std::string &autoRenewPeriod);
|
|
|
|
|
+ std::string getPeriod() const;
|
|
|
|
|
+ void setPeriod(const std::string &period);
|
|
|
|
|
+ bool getDryRun() const;
|
|
|
|
|
+ void setDryRun(bool dryRun);
|
|
|
|
|
+ std::string getBackupId() const;
|
|
|
|
|
+ void setBackupId(const std::string &backupId);
|
|
|
|
|
+ long getOwnerId() const;
|
|
|
|
|
+ void setOwnerId(long ownerId);
|
|
|
|
|
+ std::string getVSwitchId() const;
|
|
|
|
|
+ void setVSwitchId(const std::string &vSwitchId);
|
|
|
|
|
+ std::string getPrivateIpAddress() const;
|
|
|
|
|
+ void setPrivateIpAddress(const std::string &privateIpAddress);
|
|
|
|
|
+ std::string getInstanceName() const;
|
|
|
|
|
+ void setInstanceName(const std::string &instanceName);
|
|
|
|
|
+ std::string getAutoRenew() const;
|
|
|
|
|
+ void setAutoRenew(const std::string &autoRenew);
|
|
|
|
|
+ std::string getPort() const;
|
|
|
|
|
+ void setPort(const std::string &port);
|
|
|
|
|
+ std::string getZoneId() const;
|
|
|
|
|
+ void setZoneId(const std::string &zoneId);
|
|
|
|
|
+ std::string getNodeType() const;
|
|
|
|
|
+ void setNodeType(const std::string &nodeType);
|
|
|
|
|
+ std::string getAutoUseCoupon() const;
|
|
|
|
|
+ void setAutoUseCoupon(const std::string &autoUseCoupon);
|
|
|
|
|
+ std::string getInstanceClass() const;
|
|
|
|
|
+ void setInstanceClass(const std::string &instanceClass);
|
|
|
|
|
+ std::string getAccessKeyId() const;
|
|
|
|
|
+ void setAccessKeyId(const std::string &accessKeyId);
|
|
|
|
|
+ long getCapacity() const;
|
|
|
|
|
+ void setCapacity(long capacity);
|
|
|
|
|
+ std::string getRegionId() const;
|
|
|
|
|
+ void setRegionId(const std::string ®ionId);
|
|
|
|
|
+ std::string getInstanceType() const;
|
|
|
|
|
+ void setInstanceType(const std::string &instanceType);
|
|
|
|
|
+ std::string getDedicatedHostGroupId() const;
|
|
|
|
|
+ void setDedicatedHostGroupId(const std::string &dedicatedHostGroupId);
|
|
|
|
|
+ std::string getRestoreTime() const;
|
|
|
|
|
+ void setRestoreTime(const std::string &restoreTime);
|
|
|
|
|
+ std::string getResourceOwnerAccount() const;
|
|
|
|
|
+ void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
|
|
|
|
|
+ std::string getSrcDBInstanceId() const;
|
|
|
|
|
+ void setSrcDBInstanceId(const std::string &srcDBInstanceId);
|
|
|
|
|
+ std::string getOwnerAccount() const;
|
|
|
|
|
+ void setOwnerAccount(const std::string &ownerAccount);
|
|
|
|
|
+ bool getGlobalInstance() const;
|
|
|
|
|
+ void setGlobalInstance(bool globalInstance);
|
|
|
|
|
+ std::string getToken() const;
|
|
|
|
|
+ void setToken(const std::string &token);
|
|
|
|
|
+ std::string getGlobalInstanceId() const;
|
|
|
|
|
+ void setGlobalInstanceId(const std::string &globalInstanceId);
|
|
|
|
|
+ std::string getVpcId() const;
|
|
|
|
|
+ void setVpcId(const std::string &vpcId);
|
|
|
|
|
+ std::string getChargeType() const;
|
|
|
|
|
+ void setChargeType(const std::string &chargeType);
|
|
|
|
|
+ std::string getConfig() const;
|
|
|
|
|
+ void setConfig(const std::string &config);
|
|
|
|
|
+
|
|
|
|
|
+private:
|
|
|
|
|
+ long resourceOwnerId_;
|
|
|
|
|
+ std::string secondaryZoneId_;
|
|
|
|
|
+ std::string couponNo_;
|
|
|
|
|
+ std::string networkType_;
|
|
|
|
|
+ std::string engineVersion_;
|
|
|
|
|
+ std::string resourceGroupId_;
|
|
|
|
|
+ std::string password_;
|
|
|
|
|
+ std::string securityToken_;
|
|
|
|
|
+ std::vector<Tag> tag_;
|
|
|
|
|
+ std::string businessInfo_;
|
|
|
|
|
+ int shardCount_;
|
|
|
|
|
+ std::string autoRenewPeriod_;
|
|
|
|
|
+ std::string period_;
|
|
|
|
|
+ bool dryRun_;
|
|
|
|
|
+ std::string backupId_;
|
|
|
|
|
+ long ownerId_;
|
|
|
|
|
+ std::string vSwitchId_;
|
|
|
|
|
+ std::string privateIpAddress_;
|
|
|
|
|
+ std::string instanceName_;
|
|
|
|
|
+ std::string autoRenew_;
|
|
|
|
|
+ std::string port_;
|
|
|
|
|
+ std::string zoneId_;
|
|
|
|
|
+ std::string nodeType_;
|
|
|
|
|
+ std::string autoUseCoupon_;
|
|
|
|
|
+ std::string instanceClass_;
|
|
|
|
|
+ std::string accessKeyId_;
|
|
|
|
|
+ long capacity_;
|
|
|
|
|
+ std::string regionId_;
|
|
|
|
|
+ std::string instanceType_;
|
|
|
|
|
+ std::string dedicatedHostGroupId_;
|
|
|
|
|
+ std::string restoreTime_;
|
|
|
|
|
+ std::string resourceOwnerAccount_;
|
|
|
|
|
+ std::string srcDBInstanceId_;
|
|
|
|
|
+ std::string ownerAccount_;
|
|
|
|
|
+ bool globalInstance_;
|
|
|
|
|
+ std::string token_;
|
|
|
|
|
+ std::string globalInstanceId_;
|
|
|
|
|
+ std::string vpcId_;
|
|
|
|
|
+ std::string chargeType_;
|
|
|
|
|
+ std::string config_;
|
|
|
|
|
+};
|
|
|
|
|
+} // namespace Model
|
|
|
|
|
+} // namespace R_kvstore
|
|
|
|
|
+} // namespace AlibabaCloud
|
|
|
|
|
+#endif // !ALIBABACLOUD_R_KVSTORE_MODEL_CREATEINSTANCEREQUEST_H_
|