96 lines
3.0 KiB
C++
96 lines
3.0 KiB
C++
/*
|
|
* 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/ga/model/ListBasicAcceleratorsRequest.h>
|
|
|
|
using AlibabaCloud::Ga::Model::ListBasicAcceleratorsRequest;
|
|
|
|
ListBasicAcceleratorsRequest::ListBasicAcceleratorsRequest()
|
|
: RpcServiceRequest("ga", "2019-11-20", "ListBasicAccelerators") {
|
|
setMethod(HttpRequest::Method::Post);
|
|
}
|
|
|
|
ListBasicAcceleratorsRequest::~ListBasicAcceleratorsRequest() {}
|
|
|
|
int ListBasicAcceleratorsRequest::getPageNumber() const {
|
|
return pageNumber_;
|
|
}
|
|
|
|
void ListBasicAcceleratorsRequest::setPageNumber(int pageNumber) {
|
|
pageNumber_ = pageNumber;
|
|
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
|
}
|
|
|
|
std::string ListBasicAcceleratorsRequest::getResourceGroupId() const {
|
|
return resourceGroupId_;
|
|
}
|
|
|
|
void ListBasicAcceleratorsRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
|
resourceGroupId_ = resourceGroupId;
|
|
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
|
}
|
|
|
|
std::string ListBasicAcceleratorsRequest::getRegionId() const {
|
|
return regionId_;
|
|
}
|
|
|
|
void ListBasicAcceleratorsRequest::setRegionId(const std::string ®ionId) {
|
|
regionId_ = regionId;
|
|
setParameter(std::string("RegionId"), regionId);
|
|
}
|
|
|
|
int ListBasicAcceleratorsRequest::getPageSize() const {
|
|
return pageSize_;
|
|
}
|
|
|
|
void ListBasicAcceleratorsRequest::setPageSize(int pageSize) {
|
|
pageSize_ = pageSize;
|
|
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
|
}
|
|
|
|
std::string ListBasicAcceleratorsRequest::getAcceleratorId() const {
|
|
return acceleratorId_;
|
|
}
|
|
|
|
void ListBasicAcceleratorsRequest::setAcceleratorId(const std::string &acceleratorId) {
|
|
acceleratorId_ = acceleratorId;
|
|
setParameter(std::string("AcceleratorId"), acceleratorId);
|
|
}
|
|
|
|
std::string ListBasicAcceleratorsRequest::getState() const {
|
|
return state_;
|
|
}
|
|
|
|
void ListBasicAcceleratorsRequest::setState(const std::string &state) {
|
|
state_ = state;
|
|
setParameter(std::string("State"), state);
|
|
}
|
|
|
|
std::vector<ListBasicAcceleratorsRequest::Tag> ListBasicAcceleratorsRequest::getTag() const {
|
|
return tag_;
|
|
}
|
|
|
|
void ListBasicAcceleratorsRequest::setTag(const std::vector<ListBasicAcceleratorsRequest::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 + ".Key", tagObj.key);
|
|
setParameter(tagObjStr + ".Value", tagObj.value);
|
|
}
|
|
}
|
|
|