| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282 |
- /*
- * 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/dbs/model/ConfigureBackupPlanRequest.h>
- using AlibabaCloud::Dbs::Model::ConfigureBackupPlanRequest;
- ConfigureBackupPlanRequest::ConfigureBackupPlanRequest() :
- RpcServiceRequest("dbs", "2019-03-06", "ConfigureBackupPlan")
- {
- setMethod(HttpRequest::Method::Post);
- }
- ConfigureBackupPlanRequest::~ConfigureBackupPlanRequest()
- {}
- std::string ConfigureBackupPlanRequest::getSourceEndpointRegion()const
- {
- return sourceEndpointRegion_;
- }
- void ConfigureBackupPlanRequest::setSourceEndpointRegion(const std::string& sourceEndpointRegion)
- {
- sourceEndpointRegion_ = sourceEndpointRegion;
- setParameter("SourceEndpointRegion", sourceEndpointRegion);
- }
- long ConfigureBackupPlanRequest::getBackupGatewayId()const
- {
- return backupGatewayId_;
- }
- void ConfigureBackupPlanRequest::setBackupGatewayId(long backupGatewayId)
- {
- backupGatewayId_ = backupGatewayId;
- setParameter("BackupGatewayId", std::to_string(backupGatewayId));
- }
- std::string ConfigureBackupPlanRequest::getSourceEndpointInstanceID()const
- {
- return sourceEndpointInstanceID_;
- }
- void ConfigureBackupPlanRequest::setSourceEndpointInstanceID(const std::string& sourceEndpointInstanceID)
- {
- sourceEndpointInstanceID_ = sourceEndpointInstanceID;
- setParameter("SourceEndpointInstanceID", sourceEndpointInstanceID);
- }
- std::string ConfigureBackupPlanRequest::getSourceEndpointUserName()const
- {
- return sourceEndpointUserName_;
- }
- void ConfigureBackupPlanRequest::setSourceEndpointUserName(const std::string& sourceEndpointUserName)
- {
- sourceEndpointUserName_ = sourceEndpointUserName;
- setParameter("SourceEndpointUserName", sourceEndpointUserName);
- }
- std::string ConfigureBackupPlanRequest::getClientToken()const
- {
- return clientToken_;
- }
- void ConfigureBackupPlanRequest::setClientToken(const std::string& clientToken)
- {
- clientToken_ = clientToken;
- setParameter("ClientToken", clientToken);
- }
- std::string ConfigureBackupPlanRequest::getBackupPlanId()const
- {
- return backupPlanId_;
- }
- void ConfigureBackupPlanRequest::setBackupPlanId(const std::string& backupPlanId)
- {
- backupPlanId_ = backupPlanId;
- setParameter("BackupPlanId", backupPlanId);
- }
- std::string ConfigureBackupPlanRequest::getSourceEndpointDatabaseName()const
- {
- return sourceEndpointDatabaseName_;
- }
- void ConfigureBackupPlanRequest::setSourceEndpointDatabaseName(const std::string& sourceEndpointDatabaseName)
- {
- sourceEndpointDatabaseName_ = sourceEndpointDatabaseName;
- setParameter("SourceEndpointDatabaseName", sourceEndpointDatabaseName);
- }
- int ConfigureBackupPlanRequest::getDuplicationInfrequentAccessPeriod()const
- {
- return duplicationInfrequentAccessPeriod_;
- }
- void ConfigureBackupPlanRequest::setDuplicationInfrequentAccessPeriod(int duplicationInfrequentAccessPeriod)
- {
- duplicationInfrequentAccessPeriod_ = duplicationInfrequentAccessPeriod;
- setParameter("DuplicationInfrequentAccessPeriod", std::to_string(duplicationInfrequentAccessPeriod));
- }
- std::string ConfigureBackupPlanRequest::getBackupStartTime()const
- {
- return backupStartTime_;
- }
- void ConfigureBackupPlanRequest::setBackupStartTime(const std::string& backupStartTime)
- {
- backupStartTime_ = backupStartTime;
- setParameter("BackupStartTime", backupStartTime);
- }
- std::string ConfigureBackupPlanRequest::getSourceEndpointIP()const
- {
- return sourceEndpointIP_;
- }
- void ConfigureBackupPlanRequest::setSourceEndpointIP(const std::string& sourceEndpointIP)
- {
- sourceEndpointIP_ = sourceEndpointIP;
- setParameter("SourceEndpointIP", sourceEndpointIP);
- }
- bool ConfigureBackupPlanRequest::getEnableBackupLog()const
- {
- return enableBackupLog_;
- }
- void ConfigureBackupPlanRequest::setEnableBackupLog(bool enableBackupLog)
- {
- enableBackupLog_ = enableBackupLog;
- setParameter("EnableBackupLog", enableBackupLog ? "true" : "false");
- }
- std::string ConfigureBackupPlanRequest::getBackupStorageType()const
- {
- return backupStorageType_;
- }
- void ConfigureBackupPlanRequest::setBackupStorageType(const std::string& backupStorageType)
- {
- backupStorageType_ = backupStorageType;
- setParameter("BackupStorageType", backupStorageType);
- }
- int ConfigureBackupPlanRequest::getDuplicationArchivePeriod()const
- {
- return duplicationArchivePeriod_;
- }
- void ConfigureBackupPlanRequest::setDuplicationArchivePeriod(int duplicationArchivePeriod)
- {
- duplicationArchivePeriod_ = duplicationArchivePeriod;
- setParameter("DuplicationArchivePeriod", std::to_string(duplicationArchivePeriod));
- }
- std::string ConfigureBackupPlanRequest::getSourceEndpointPassword()const
- {
- return sourceEndpointPassword_;
- }
- void ConfigureBackupPlanRequest::setSourceEndpointPassword(const std::string& sourceEndpointPassword)
- {
- sourceEndpointPassword_ = sourceEndpointPassword;
- setParameter("SourceEndpointPassword", sourceEndpointPassword);
- }
- std::string ConfigureBackupPlanRequest::getBackupObjects()const
- {
- return backupObjects_;
- }
- void ConfigureBackupPlanRequest::setBackupObjects(const std::string& backupObjects)
- {
- backupObjects_ = backupObjects;
- setParameter("BackupObjects", backupObjects);
- }
- std::string ConfigureBackupPlanRequest::getOwnerId()const
- {
- return ownerId_;
- }
- void ConfigureBackupPlanRequest::setOwnerId(const std::string& ownerId)
- {
- ownerId_ = ownerId;
- setParameter("OwnerId", ownerId);
- }
- int ConfigureBackupPlanRequest::getSourceEndpointPort()const
- {
- return sourceEndpointPort_;
- }
- void ConfigureBackupPlanRequest::setSourceEndpointPort(int sourceEndpointPort)
- {
- sourceEndpointPort_ = sourceEndpointPort;
- setParameter("SourceEndpointPort", std::to_string(sourceEndpointPort));
- }
- int ConfigureBackupPlanRequest::getBackupRetentionPeriod()const
- {
- return backupRetentionPeriod_;
- }
- void ConfigureBackupPlanRequest::setBackupRetentionPeriod(int backupRetentionPeriod)
- {
- backupRetentionPeriod_ = backupRetentionPeriod;
- setParameter("BackupRetentionPeriod", std::to_string(backupRetentionPeriod));
- }
- std::string ConfigureBackupPlanRequest::getBackupPeriod()const
- {
- return backupPeriod_;
- }
- void ConfigureBackupPlanRequest::setBackupPeriod(const std::string& backupPeriod)
- {
- backupPeriod_ = backupPeriod;
- setParameter("BackupPeriod", backupPeriod);
- }
- std::string ConfigureBackupPlanRequest::getSourceEndpointInstanceType()const
- {
- return sourceEndpointInstanceType_;
- }
- void ConfigureBackupPlanRequest::setSourceEndpointInstanceType(const std::string& sourceEndpointInstanceType)
- {
- sourceEndpointInstanceType_ = sourceEndpointInstanceType;
- setParameter("SourceEndpointInstanceType", sourceEndpointInstanceType);
- }
- std::string ConfigureBackupPlanRequest::getBackupPlanName()const
- {
- return backupPlanName_;
- }
- void ConfigureBackupPlanRequest::setBackupPlanName(const std::string& backupPlanName)
- {
- backupPlanName_ = backupPlanName;
- setParameter("BackupPlanName", backupPlanName);
- }
- std::string ConfigureBackupPlanRequest::getSourceEndpointOracleSID()const
- {
- return sourceEndpointOracleSID_;
- }
- void ConfigureBackupPlanRequest::setSourceEndpointOracleSID(const std::string& sourceEndpointOracleSID)
- {
- sourceEndpointOracleSID_ = sourceEndpointOracleSID;
- setParameter("SourceEndpointOracleSID", sourceEndpointOracleSID);
- }
- std::string ConfigureBackupPlanRequest::getOSSBucketName()const
- {
- return oSSBucketName_;
- }
- void ConfigureBackupPlanRequest::setOSSBucketName(const std::string& oSSBucketName)
- {
- oSSBucketName_ = oSSBucketName;
- setParameter("OSSBucketName", oSSBucketName);
- }
|