| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218 |
- /*
- * 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/emr/model/ListBackupsRequest.h>
- using AlibabaCloud::Emr::Model::ListBackupsRequest;
- ListBackupsRequest::ListBackupsRequest() :
- RpcServiceRequest("emr", "2016-04-08", "ListBackups")
- {
- setMethod(HttpRequest::Method::Post);
- }
- ListBackupsRequest::~ListBackupsRequest()
- {}
- long ListBackupsRequest::getResourceOwnerId()const
- {
- return resourceOwnerId_;
- }
- void ListBackupsRequest::setResourceOwnerId(long resourceOwnerId)
- {
- resourceOwnerId_ = resourceOwnerId;
- setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
- }
- int ListBackupsRequest::getPageCount()const
- {
- return pageCount_;
- }
- void ListBackupsRequest::setPageCount(int pageCount)
- {
- pageCount_ = pageCount;
- setParameter("PageCount", std::to_string(pageCount));
- }
- std::string ListBackupsRequest::getOrderMode()const
- {
- return orderMode_;
- }
- void ListBackupsRequest::setOrderMode(const std::string& orderMode)
- {
- orderMode_ = orderMode;
- setParameter("OrderMode", orderMode);
- }
- std::string ListBackupsRequest::getBackupPlanId()const
- {
- return backupPlanId_;
- }
- void ListBackupsRequest::setBackupPlanId(const std::string& backupPlanId)
- {
- backupPlanId_ = backupPlanId;
- setParameter("BackupPlanId", backupPlanId);
- }
- int ListBackupsRequest::getPageNumber()const
- {
- return pageNumber_;
- }
- void ListBackupsRequest::setPageNumber(int pageNumber)
- {
- pageNumber_ = pageNumber;
- setParameter("PageNumber", std::to_string(pageNumber));
- }
- std::string ListBackupsRequest::getAccessKeyId()const
- {
- return accessKeyId_;
- }
- void ListBackupsRequest::setAccessKeyId(const std::string& accessKeyId)
- {
- accessKeyId_ = accessKeyId;
- setParameter("AccessKeyId", accessKeyId);
- }
- std::string ListBackupsRequest::getRegionId()const
- {
- return regionId_;
- }
- void ListBackupsRequest::setRegionId(const std::string& regionId)
- {
- regionId_ = regionId;
- setParameter("RegionId", regionId);
- }
- int ListBackupsRequest::getLimit()const
- {
- return limit_;
- }
- void ListBackupsRequest::setLimit(int limit)
- {
- limit_ = limit;
- setParameter("Limit", std::to_string(limit));
- }
- int ListBackupsRequest::getPageSize()const
- {
- return pageSize_;
- }
- void ListBackupsRequest::setPageSize(int pageSize)
- {
- pageSize_ = pageSize;
- setParameter("PageSize", std::to_string(pageSize));
- }
- std::string ListBackupsRequest::getServiceName()const
- {
- return serviceName_;
- }
- void ListBackupsRequest::setServiceName(const std::string& serviceName)
- {
- serviceName_ = serviceName;
- setParameter("ServiceName", serviceName);
- }
- long ListBackupsRequest::getId()const
- {
- return id_;
- }
- void ListBackupsRequest::setId(long id)
- {
- id_ = id;
- setParameter("Id", std::to_string(id));
- }
- int ListBackupsRequest::getCurrentSize()const
- {
- return currentSize_;
- }
- void ListBackupsRequest::setCurrentSize(int currentSize)
- {
- currentSize_ = currentSize;
- setParameter("CurrentSize", std::to_string(currentSize));
- }
- std::vector<std::string> ListBackupsRequest::getBackupId()const
- {
- return backupId_;
- }
- void ListBackupsRequest::setBackupId(const std::vector<std::string>& backupId)
- {
- backupId_ = backupId;
- for(int dep1 = 0; dep1!= backupId.size(); dep1++) {
- setParameter("BackupId."+ std::to_string(dep1), backupId.at(dep1));
- }
- }
- std::string ListBackupsRequest::getClusterId()const
- {
- return clusterId_;
- }
- void ListBackupsRequest::setClusterId(const std::string& clusterId)
- {
- clusterId_ = clusterId;
- setParameter("ClusterId", clusterId);
- }
- std::string ListBackupsRequest::getMetadataType()const
- {
- return metadataType_;
- }
- void ListBackupsRequest::setMetadataType(const std::string& metadataType)
- {
- metadataType_ = metadataType;
- setParameter("MetadataType", metadataType);
- }
- std::string ListBackupsRequest::getBizId()const
- {
- return bizId_;
- }
- void ListBackupsRequest::setBizId(const std::string& bizId)
- {
- bizId_ = bizId;
- setParameter("BizId", bizId);
- }
- std::string ListBackupsRequest::getStatus()const
- {
- return status_;
- }
- void ListBackupsRequest::setStatus(const std::string& status)
- {
- status_ = status;
- setParameter("Status", status);
- }
|