CreateEaiEciRequest.cc 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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/eais/model/CreateEaiEciRequest.h>
  17. using AlibabaCloud::Eais::Model::CreateEaiEciRequest;
  18. CreateEaiEciRequest::CreateEaiEciRequest()
  19. : RpcServiceRequest("eais", "2019-06-24", "CreateEaiEci") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. CreateEaiEciRequest::~CreateEaiEciRequest() {}
  23. std::string CreateEaiEciRequest::getClientToken() const {
  24. return clientToken_;
  25. }
  26. void CreateEaiEciRequest::setClientToken(const std::string &clientToken) {
  27. clientToken_ = clientToken;
  28. setParameter(std::string("ClientToken"), clientToken);
  29. }
  30. std::string CreateEaiEciRequest::getSecurityGroupId() const {
  31. return securityGroupId_;
  32. }
  33. void CreateEaiEciRequest::setSecurityGroupId(const std::string &securityGroupId) {
  34. securityGroupId_ = securityGroupId;
  35. setParameter(std::string("SecurityGroupId"), securityGroupId);
  36. }
  37. CreateEaiEciRequest::Eci CreateEaiEciRequest::getEci() const {
  38. return eci_;
  39. }
  40. void CreateEaiEciRequest::setEci(const CreateEaiEciRequest::Eci &eci) {
  41. eci_ = eci;
  42. setParameter(std::string("Eci") + ".Container.Image", eci.container.image);
  43. setParameter(std::string("Eci") + ".Container.Arg", eci.container.arg);
  44. setParameter(std::string("Eci") + ".Container.Name", eci.container.name);
  45. setParameter(std::string("Eci") + ".Container.Volumes", eci.container.volumes);
  46. setParameter(std::string("Eci") + ".Container.Command", eci.container.command);
  47. setParameter(std::string("Eci") + ".Volume", eci.volume);
  48. setParameter(std::string("Eci") + ".EipId", eci.eipId);
  49. setParameter(std::string("Eci") + ".Name", eci.name);
  50. setParameter(std::string("Eci") + ".Type", eci.type);
  51. }
  52. std::string CreateEaiEciRequest::getEaisType() const {
  53. return eaisType_;
  54. }
  55. void CreateEaiEciRequest::setEaisType(const std::string &eaisType) {
  56. eaisType_ = eaisType;
  57. setParameter(std::string("EaisType"), eaisType);
  58. }
  59. std::string CreateEaiEciRequest::getResourceGroupId() const {
  60. return resourceGroupId_;
  61. }
  62. void CreateEaiEciRequest::setResourceGroupId(const std::string &resourceGroupId) {
  63. resourceGroupId_ = resourceGroupId;
  64. setParameter(std::string("ResourceGroupId"), resourceGroupId);
  65. }
  66. std::string CreateEaiEciRequest::getRegionId() const {
  67. return regionId_;
  68. }
  69. void CreateEaiEciRequest::setRegionId(const std::string &regionId) {
  70. regionId_ = regionId;
  71. setParameter(std::string("RegionId"), regionId);
  72. }
  73. std::string CreateEaiEciRequest::getEaisName() const {
  74. return eaisName_;
  75. }
  76. void CreateEaiEciRequest::setEaisName(const std::string &eaisName) {
  77. eaisName_ = eaisName;
  78. setParameter(std::string("EaisName"), eaisName);
  79. }
  80. std::vector<CreateEaiEciRequest::Tag> CreateEaiEciRequest::getTag() const {
  81. return tag_;
  82. }
  83. void CreateEaiEciRequest::setTag(const std::vector<CreateEaiEciRequest::Tag> &tag) {
  84. tag_ = tag;
  85. for(int dep1 = 0; dep1 != tag.size(); dep1++) {
  86. auto tagObj = tag.at(dep1);
  87. std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
  88. setParameter(tagObjStr + ".Value", tagObj.value);
  89. setParameter(tagObjStr + ".Key", tagObj.key);
  90. }
  91. }
  92. std::string CreateEaiEciRequest::getVSwitchId() const {
  93. return vSwitchId_;
  94. }
  95. void CreateEaiEciRequest::setVSwitchId(const std::string &vSwitchId) {
  96. vSwitchId_ = vSwitchId;
  97. setParameter(std::string("VSwitchId"), vSwitchId);
  98. }