ModifyVpcAttributeRequest.cc 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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/ModifyVpcAttributeRequest.h>
  17. using namespace AlibabaCloud::Vpc;
  18. using namespace AlibabaCloud::Vpc::Model;
  19. ModifyVpcAttributeRequest::ModifyVpcAttributeRequest() :
  20. VpcRequest("ModifyVpcAttribute")
  21. {}
  22. ModifyVpcAttributeRequest::~ModifyVpcAttributeRequest()
  23. {}
  24. std::string ModifyVpcAttributeRequest::getVpcName()const
  25. {
  26. return vpcName_;
  27. }
  28. void ModifyVpcAttributeRequest::setVpcName(const std::string& vpcName)
  29. {
  30. vpcName_ = vpcName;
  31. setParameter("VpcName", vpcName);
  32. }
  33. long ModifyVpcAttributeRequest::getResourceOwnerId()const
  34. {
  35. return resourceOwnerId_;
  36. }
  37. void ModifyVpcAttributeRequest::setResourceOwnerId(long resourceOwnerId)
  38. {
  39. resourceOwnerId_ = resourceOwnerId;
  40. setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
  41. }
  42. std::string ModifyVpcAttributeRequest::getResourceOwnerAccount()const
  43. {
  44. return resourceOwnerAccount_;
  45. }
  46. void ModifyVpcAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
  47. {
  48. resourceOwnerAccount_ = resourceOwnerAccount;
  49. setParameter("ResourceOwnerAccount", resourceOwnerAccount);
  50. }
  51. std::string ModifyVpcAttributeRequest::getVpcId()const
  52. {
  53. return vpcId_;
  54. }
  55. void ModifyVpcAttributeRequest::setVpcId(const std::string& vpcId)
  56. {
  57. vpcId_ = vpcId;
  58. setParameter("VpcId", vpcId);
  59. }
  60. std::string ModifyVpcAttributeRequest::getOwnerAccount()const
  61. {
  62. return ownerAccount_;
  63. }
  64. void ModifyVpcAttributeRequest::setOwnerAccount(const std::string& ownerAccount)
  65. {
  66. ownerAccount_ = ownerAccount;
  67. setParameter("OwnerAccount", ownerAccount);
  68. }
  69. std::string ModifyVpcAttributeRequest::getDescription()const
  70. {
  71. return description_;
  72. }
  73. void ModifyVpcAttributeRequest::setDescription(const std::string& description)
  74. {
  75. description_ = description;
  76. setParameter("Description", description);
  77. }
  78. std::string ModifyVpcAttributeRequest::getUserCidr()const
  79. {
  80. return userCidr_;
  81. }
  82. void ModifyVpcAttributeRequest::setUserCidr(const std::string& userCidr)
  83. {
  84. userCidr_ = userCidr;
  85. setParameter("UserCidr", userCidr);
  86. }
  87. long ModifyVpcAttributeRequest::getOwnerId()const
  88. {
  89. return ownerId_;
  90. }
  91. void ModifyVpcAttributeRequest::setOwnerId(long ownerId)
  92. {
  93. ownerId_ = ownerId;
  94. setParameter("OwnerId", std::to_string(ownerId));
  95. }