CreatePhysicalConnectionRequest.cc 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  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/CreatePhysicalConnectionRequest.h>
  17. using AlibabaCloud::Vpc::Model::CreatePhysicalConnectionRequest;
  18. CreatePhysicalConnectionRequest::CreatePhysicalConnectionRequest() :
  19. RpcServiceRequest("vpc", "2016-04-28", "CreatePhysicalConnection")
  20. {}
  21. CreatePhysicalConnectionRequest::~CreatePhysicalConnectionRequest()
  22. {}
  23. std::string CreatePhysicalConnectionRequest::getAccessPointId()const
  24. {
  25. return accessPointId_;
  26. }
  27. void CreatePhysicalConnectionRequest::setAccessPointId(const std::string& accessPointId)
  28. {
  29. accessPointId_ = accessPointId;
  30. setCoreParameter("AccessPointId", accessPointId);
  31. }
  32. long CreatePhysicalConnectionRequest::getResourceOwnerId()const
  33. {
  34. return resourceOwnerId_;
  35. }
  36. void CreatePhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId)
  37. {
  38. resourceOwnerId_ = resourceOwnerId;
  39. setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
  40. }
  41. std::string CreatePhysicalConnectionRequest::getPortType()const
  42. {
  43. return portType_;
  44. }
  45. void CreatePhysicalConnectionRequest::setPortType(const std::string& portType)
  46. {
  47. portType_ = portType;
  48. setCoreParameter("PortType", portType);
  49. }
  50. std::string CreatePhysicalConnectionRequest::getCircuitCode()const
  51. {
  52. return circuitCode_;
  53. }
  54. void CreatePhysicalConnectionRequest::setCircuitCode(const std::string& circuitCode)
  55. {
  56. circuitCode_ = circuitCode;
  57. setCoreParameter("CircuitCode", circuitCode);
  58. }
  59. std::string CreatePhysicalConnectionRequest::getClientToken()const
  60. {
  61. return clientToken_;
  62. }
  63. void CreatePhysicalConnectionRequest::setClientToken(const std::string& clientToken)
  64. {
  65. clientToken_ = clientToken;
  66. setCoreParameter("ClientToken", clientToken);
  67. }
  68. std::string CreatePhysicalConnectionRequest::getDescription()const
  69. {
  70. return description_;
  71. }
  72. void CreatePhysicalConnectionRequest::setDescription(const std::string& description)
  73. {
  74. description_ = description;
  75. setCoreParameter("Description", description);
  76. }
  77. std::string CreatePhysicalConnectionRequest::getType()const
  78. {
  79. return type_;
  80. }
  81. void CreatePhysicalConnectionRequest::setType(const std::string& type)
  82. {
  83. type_ = type;
  84. setCoreParameter("Type", type);
  85. }
  86. std::string CreatePhysicalConnectionRequest::getRegionId()const
  87. {
  88. return regionId_;
  89. }
  90. void CreatePhysicalConnectionRequest::setRegionId(const std::string& regionId)
  91. {
  92. regionId_ = regionId;
  93. setCoreParameter("RegionId", regionId);
  94. }
  95. std::string CreatePhysicalConnectionRequest::getRedundantPhysicalConnectionId()const
  96. {
  97. return redundantPhysicalConnectionId_;
  98. }
  99. void CreatePhysicalConnectionRequest::setRedundantPhysicalConnectionId(const std::string& redundantPhysicalConnectionId)
  100. {
  101. redundantPhysicalConnectionId_ = redundantPhysicalConnectionId;
  102. setCoreParameter("RedundantPhysicalConnectionId", redundantPhysicalConnectionId);
  103. }
  104. std::string CreatePhysicalConnectionRequest::getPeerLocation()const
  105. {
  106. return peerLocation_;
  107. }
  108. void CreatePhysicalConnectionRequest::setPeerLocation(const std::string& peerLocation)
  109. {
  110. peerLocation_ = peerLocation;
  111. setCoreParameter("PeerLocation", peerLocation);
  112. }
  113. int CreatePhysicalConnectionRequest::getBandwidth()const
  114. {
  115. return bandwidth_;
  116. }
  117. void CreatePhysicalConnectionRequest::setBandwidth(int bandwidth)
  118. {
  119. bandwidth_ = bandwidth;
  120. setCoreParameter("Bandwidth", std::to_string(bandwidth));
  121. }
  122. std::string CreatePhysicalConnectionRequest::getResourceOwnerAccount()const
  123. {
  124. return resourceOwnerAccount_;
  125. }
  126. void CreatePhysicalConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
  127. {
  128. resourceOwnerAccount_ = resourceOwnerAccount;
  129. setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
  130. }
  131. std::string CreatePhysicalConnectionRequest::getOwnerAccount()const
  132. {
  133. return ownerAccount_;
  134. }
  135. void CreatePhysicalConnectionRequest::setOwnerAccount(const std::string& ownerAccount)
  136. {
  137. ownerAccount_ = ownerAccount;
  138. setCoreParameter("OwnerAccount", ownerAccount);
  139. }
  140. long CreatePhysicalConnectionRequest::getOwnerId()const
  141. {
  142. return ownerId_;
  143. }
  144. void CreatePhysicalConnectionRequest::setOwnerId(long ownerId)
  145. {
  146. ownerId_ = ownerId;
  147. setCoreParameter("OwnerId", std::to_string(ownerId));
  148. }
  149. std::string CreatePhysicalConnectionRequest::getLineOperator()const
  150. {
  151. return lineOperator_;
  152. }
  153. void CreatePhysicalConnectionRequest::setLineOperator(const std::string& lineOperator)
  154. {
  155. lineOperator_ = lineOperator;
  156. setCoreParameter("LineOperator", lineOperator);
  157. }
  158. std::string CreatePhysicalConnectionRequest::getName()const
  159. {
  160. return name_;
  161. }
  162. void CreatePhysicalConnectionRequest::setName(const std::string& name)
  163. {
  164. name_ = name;
  165. setCoreParameter("Name", name);
  166. }