DeployAppRequest.cc 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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/retailcloud/model/DeployAppRequest.h>
  17. using AlibabaCloud::Retailcloud::Model::DeployAppRequest;
  18. DeployAppRequest::DeployAppRequest() :
  19. RpcServiceRequest("retailcloud", "2018-03-13", "DeployApp")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. DeployAppRequest::~DeployAppRequest()
  24. {}
  25. long DeployAppRequest::getDeployPacketId()const
  26. {
  27. return deployPacketId_;
  28. }
  29. void DeployAppRequest::setDeployPacketId(long deployPacketId)
  30. {
  31. deployPacketId_ = deployPacketId;
  32. setParameter("DeployPacketId", std::to_string(deployPacketId));
  33. }
  34. std::string DeployAppRequest::getDeployPacketUrl()const
  35. {
  36. return deployPacketUrl_;
  37. }
  38. void DeployAppRequest::setDeployPacketUrl(const std::string& deployPacketUrl)
  39. {
  40. deployPacketUrl_ = deployPacketUrl;
  41. setParameter("DeployPacketUrl", deployPacketUrl);
  42. }
  43. int DeployAppRequest::getTotalPartitions()const
  44. {
  45. return totalPartitions_;
  46. }
  47. void DeployAppRequest::setTotalPartitions(int totalPartitions)
  48. {
  49. totalPartitions_ = totalPartitions;
  50. setParameter("TotalPartitions", std::to_string(totalPartitions));
  51. }
  52. std::string DeployAppRequest::getName()const
  53. {
  54. return name_;
  55. }
  56. void DeployAppRequest::setName(const std::string& name)
  57. {
  58. name_ = name;
  59. setParameter("Name", name);
  60. }
  61. std::string DeployAppRequest::getDescription()const
  62. {
  63. return description_;
  64. }
  65. void DeployAppRequest::setDescription(const std::string& description)
  66. {
  67. description_ = description;
  68. setParameter("Description", description);
  69. }
  70. long DeployAppRequest::getEnvId()const
  71. {
  72. return envId_;
  73. }
  74. void DeployAppRequest::setEnvId(long envId)
  75. {
  76. envId_ = envId;
  77. setParameter("EnvId", std::to_string(envId));
  78. }
  79. std::string DeployAppRequest::getPauseType()const
  80. {
  81. return pauseType_;
  82. }
  83. void DeployAppRequest::setPauseType(const std::string& pauseType)
  84. {
  85. pauseType_ = pauseType;
  86. setParameter("PauseType", pauseType);
  87. }
  88. bool DeployAppRequest::getArmsFlag()const
  89. {
  90. return armsFlag_;
  91. }
  92. void DeployAppRequest::setArmsFlag(bool armsFlag)
  93. {
  94. armsFlag_ = armsFlag;
  95. setParameter("ArmsFlag", armsFlag ? "true" : "false");
  96. }