EnablePhysicalConnectionRequest.cc 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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/EnablePhysicalConnectionRequest.h>
  17. using namespace AlibabaCloud::Vpc;
  18. using namespace AlibabaCloud::Vpc::Model;
  19. EnablePhysicalConnectionRequest::EnablePhysicalConnectionRequest() :
  20. VpcRequest("EnablePhysicalConnection")
  21. {}
  22. EnablePhysicalConnectionRequest::~EnablePhysicalConnectionRequest()
  23. {}
  24. long EnablePhysicalConnectionRequest::getResourceOwnerId()const
  25. {
  26. return resourceOwnerId_;
  27. }
  28. void EnablePhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId)
  29. {
  30. resourceOwnerId_ = resourceOwnerId;
  31. setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
  32. }
  33. std::string EnablePhysicalConnectionRequest::getRegionId()const
  34. {
  35. return regionId_;
  36. }
  37. void EnablePhysicalConnectionRequest::setRegionId(const std::string& regionId)
  38. {
  39. regionId_ = regionId;
  40. setParameter("RegionId", regionId);
  41. }
  42. std::string EnablePhysicalConnectionRequest::getResourceOwnerAccount()const
  43. {
  44. return resourceOwnerAccount_;
  45. }
  46. void EnablePhysicalConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
  47. {
  48. resourceOwnerAccount_ = resourceOwnerAccount;
  49. setParameter("ResourceOwnerAccount", resourceOwnerAccount);
  50. }
  51. std::string EnablePhysicalConnectionRequest::getClientToken()const
  52. {
  53. return clientToken_;
  54. }
  55. void EnablePhysicalConnectionRequest::setClientToken(const std::string& clientToken)
  56. {
  57. clientToken_ = clientToken;
  58. setParameter("ClientToken", clientToken);
  59. }
  60. std::string EnablePhysicalConnectionRequest::getPhysicalConnectionId()const
  61. {
  62. return physicalConnectionId_;
  63. }
  64. void EnablePhysicalConnectionRequest::setPhysicalConnectionId(const std::string& physicalConnectionId)
  65. {
  66. physicalConnectionId_ = physicalConnectionId;
  67. setParameter("PhysicalConnectionId", physicalConnectionId);
  68. }
  69. std::string EnablePhysicalConnectionRequest::getOwnerAccount()const
  70. {
  71. return ownerAccount_;
  72. }
  73. void EnablePhysicalConnectionRequest::setOwnerAccount(const std::string& ownerAccount)
  74. {
  75. ownerAccount_ = ownerAccount;
  76. setParameter("OwnerAccount", ownerAccount);
  77. }
  78. long EnablePhysicalConnectionRequest::getOwnerId()const
  79. {
  80. return ownerId_;
  81. }
  82. void EnablePhysicalConnectionRequest::setOwnerId(long ownerId)
  83. {
  84. ownerId_ = ownerId;
  85. setParameter("OwnerId", std::to_string(ownerId));
  86. }