ListVpcInfoByVpcRequest.cc 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. /*
  2. * Copyright 2009-2017 Alibaba Cloud All rights reserved.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #include <alibabacloud/ots/model/ListVpcInfoByVpcRequest.h>
  17. using AlibabaCloud::Ots::Model::ListVpcInfoByVpcRequest;
  18. ListVpcInfoByVpcRequest::ListVpcInfoByVpcRequest() :
  19. RpcServiceRequest("ots", "2016-06-20", "ListVpcInfoByVpc")
  20. {}
  21. ListVpcInfoByVpcRequest::~ListVpcInfoByVpcRequest()
  22. {}
  23. std::string ListVpcInfoByVpcRequest::getAccess_key_id()const
  24. {
  25. return access_key_id_;
  26. }
  27. void ListVpcInfoByVpcRequest::setAccess_key_id(const std::string& access_key_id)
  28. {
  29. access_key_id_ = access_key_id;
  30. setCoreParameter("Access_key_id", access_key_id);
  31. }
  32. long ListVpcInfoByVpcRequest::getResourceOwnerId()const
  33. {
  34. return resourceOwnerId_;
  35. }
  36. void ListVpcInfoByVpcRequest::setResourceOwnerId(long resourceOwnerId)
  37. {
  38. resourceOwnerId_ = resourceOwnerId;
  39. setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
  40. }
  41. long ListVpcInfoByVpcRequest::getPageNum()const
  42. {
  43. return pageNum_;
  44. }
  45. void ListVpcInfoByVpcRequest::setPageNum(long pageNum)
  46. {
  47. pageNum_ = pageNum;
  48. setCoreParameter("PageNum", std::to_string(pageNum));
  49. }
  50. std::string ListVpcInfoByVpcRequest::getVpcId()const
  51. {
  52. return vpcId_;
  53. }
  54. void ListVpcInfoByVpcRequest::setVpcId(const std::string& vpcId)
  55. {
  56. vpcId_ = vpcId;
  57. setCoreParameter("VpcId", vpcId);
  58. }
  59. long ListVpcInfoByVpcRequest::getPageSize()const
  60. {
  61. return pageSize_;
  62. }
  63. void ListVpcInfoByVpcRequest::setPageSize(long pageSize)
  64. {
  65. pageSize_ = pageSize;
  66. setCoreParameter("PageSize", std::to_string(pageSize));
  67. }
  68. std::vector<ListVpcInfoByVpcRequest::TagInfo> ListVpcInfoByVpcRequest::getTagInfo()const
  69. {
  70. return tagInfo_;
  71. }
  72. void ListVpcInfoByVpcRequest::setTagInfo(const std::vector<TagInfo>& tagInfo)
  73. {
  74. tagInfo_ = tagInfo;
  75. int i = 0;
  76. for(int i = 0; i!= tagInfo.size(); i++) {
  77. auto obj = tagInfo.at(i);
  78. std::string str ="TagInfo."+ std::to_string(i);
  79. setCoreParameter(str + ".TagValue", obj.tagValue);
  80. setCoreParameter(str + ".TagKey", obj.tagKey);
  81. }
  82. }