CreateCommonBandwidthPackageRequest.cc 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  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/vpc/model/CreateCommonBandwidthPackageRequest.h>
  17. using AlibabaCloud::Vpc::Model::CreateCommonBandwidthPackageRequest;
  18. CreateCommonBandwidthPackageRequest::CreateCommonBandwidthPackageRequest() :
  19. RpcServiceRequest("vpc", "2016-04-28", "CreateCommonBandwidthPackage")
  20. {}
  21. CreateCommonBandwidthPackageRequest::~CreateCommonBandwidthPackageRequest()
  22. {}
  23. long CreateCommonBandwidthPackageRequest::getResourceOwnerId()const
  24. {
  25. return resourceOwnerId_;
  26. }
  27. void CreateCommonBandwidthPackageRequest::setResourceOwnerId(long resourceOwnerId)
  28. {
  29. resourceOwnerId_ = resourceOwnerId;
  30. setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
  31. }
  32. std::string CreateCommonBandwidthPackageRequest::getResourceOwnerAccount()const
  33. {
  34. return resourceOwnerAccount_;
  35. }
  36. void CreateCommonBandwidthPackageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
  37. {
  38. resourceOwnerAccount_ = resourceOwnerAccount;
  39. setParameter("ResourceOwnerAccount", resourceOwnerAccount);
  40. }
  41. std::string CreateCommonBandwidthPackageRequest::getClientToken()const
  42. {
  43. return clientToken_;
  44. }
  45. void CreateCommonBandwidthPackageRequest::setClientToken(const std::string& clientToken)
  46. {
  47. clientToken_ = clientToken;
  48. setParameter("ClientToken", clientToken);
  49. }
  50. int CreateCommonBandwidthPackageRequest::getBandwidth()const
  51. {
  52. return bandwidth_;
  53. }
  54. void CreateCommonBandwidthPackageRequest::setBandwidth(int bandwidth)
  55. {
  56. bandwidth_ = bandwidth;
  57. setParameter("Bandwidth", std::to_string(bandwidth));
  58. }
  59. std::string CreateCommonBandwidthPackageRequest::getOwnerAccount()const
  60. {
  61. return ownerAccount_;
  62. }
  63. void CreateCommonBandwidthPackageRequest::setOwnerAccount(const std::string& ownerAccount)
  64. {
  65. ownerAccount_ = ownerAccount;
  66. setParameter("OwnerAccount", ownerAccount);
  67. }
  68. std::string CreateCommonBandwidthPackageRequest::getISP()const
  69. {
  70. return iSP_;
  71. }
  72. void CreateCommonBandwidthPackageRequest::setISP(const std::string& iSP)
  73. {
  74. iSP_ = iSP;
  75. setParameter("ISP", iSP);
  76. }
  77. std::string CreateCommonBandwidthPackageRequest::getDescription()const
  78. {
  79. return description_;
  80. }
  81. void CreateCommonBandwidthPackageRequest::setDescription(const std::string& description)
  82. {
  83. description_ = description;
  84. setParameter("Description", description);
  85. }
  86. long CreateCommonBandwidthPackageRequest::getOwnerId()const
  87. {
  88. return ownerId_;
  89. }
  90. void CreateCommonBandwidthPackageRequest::setOwnerId(long ownerId)
  91. {
  92. ownerId_ = ownerId;
  93. setParameter("OwnerId", std::to_string(ownerId));
  94. }
  95. std::string CreateCommonBandwidthPackageRequest::getResourceGroupId()const
  96. {
  97. return resourceGroupId_;
  98. }
  99. void CreateCommonBandwidthPackageRequest::setResourceGroupId(const std::string& resourceGroupId)
  100. {
  101. resourceGroupId_ = resourceGroupId;
  102. setParameter("ResourceGroupId", resourceGroupId);
  103. }
  104. std::string CreateCommonBandwidthPackageRequest::getRegionId()const
  105. {
  106. return regionId_;
  107. }
  108. void CreateCommonBandwidthPackageRequest::setRegionId(const std::string& regionId)
  109. {
  110. regionId_ = regionId;
  111. setParameter("RegionId", regionId);
  112. }
  113. std::string CreateCommonBandwidthPackageRequest::getZone()const
  114. {
  115. return zone_;
  116. }
  117. void CreateCommonBandwidthPackageRequest::setZone(const std::string& zone)
  118. {
  119. zone_ = zone;
  120. setParameter("Zone", zone);
  121. }
  122. std::string CreateCommonBandwidthPackageRequest::getInternetChargeType()const
  123. {
  124. return internetChargeType_;
  125. }
  126. void CreateCommonBandwidthPackageRequest::setInternetChargeType(const std::string& internetChargeType)
  127. {
  128. internetChargeType_ = internetChargeType;
  129. setParameter("InternetChargeType", internetChargeType);
  130. }
  131. std::string CreateCommonBandwidthPackageRequest::getName()const
  132. {
  133. return name_;
  134. }
  135. void CreateCommonBandwidthPackageRequest::setName(const std::string& name)
  136. {
  137. name_ = name;
  138. setParameter("Name", name);
  139. }
  140. int CreateCommonBandwidthPackageRequest::getRatio()const
  141. {
  142. return ratio_;
  143. }
  144. void CreateCommonBandwidthPackageRequest::setRatio(int ratio)
  145. {
  146. ratio_ = ratio;
  147. setParameter("Ratio", std::to_string(ratio));
  148. }