UpdateDeployConfigRequest.cc 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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/UpdateDeployConfigRequest.h>
  17. using AlibabaCloud::Retailcloud::Model::UpdateDeployConfigRequest;
  18. UpdateDeployConfigRequest::UpdateDeployConfigRequest() :
  19. RpcServiceRequest("retailcloud", "2018-03-13", "UpdateDeployConfig")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. UpdateDeployConfigRequest::~UpdateDeployConfigRequest()
  24. {}
  25. std::string UpdateDeployConfigRequest::getCodePath()const
  26. {
  27. return codePath_;
  28. }
  29. void UpdateDeployConfigRequest::setCodePath(const std::string& codePath)
  30. {
  31. codePath_ = codePath;
  32. setParameter("CodePath", codePath);
  33. }
  34. std::vector<std::string> UpdateDeployConfigRequest::getConfigMapList()const
  35. {
  36. return configMapList_;
  37. }
  38. void UpdateDeployConfigRequest::setConfigMapList(const std::vector<std::string>& configMapList)
  39. {
  40. configMapList_ = configMapList;
  41. for(int dep1 = 0; dep1!= configMapList.size(); dep1++) {
  42. setParameter("ConfigMapList."+ std::to_string(dep1), configMapList.at(dep1));
  43. }
  44. }
  45. std::string UpdateDeployConfigRequest::getConfigMap()const
  46. {
  47. return configMap_;
  48. }
  49. void UpdateDeployConfigRequest::setConfigMap(const std::string& configMap)
  50. {
  51. configMap_ = configMap;
  52. setParameter("ConfigMap", configMap);
  53. }
  54. std::string UpdateDeployConfigRequest::getStatefulSet()const
  55. {
  56. return statefulSet_;
  57. }
  58. void UpdateDeployConfigRequest::setStatefulSet(const std::string& statefulSet)
  59. {
  60. statefulSet_ = statefulSet;
  61. setParameter("StatefulSet", statefulSet);
  62. }
  63. long UpdateDeployConfigRequest::getAppId()const
  64. {
  65. return appId_;
  66. }
  67. void UpdateDeployConfigRequest::setAppId(long appId)
  68. {
  69. appId_ = appId;
  70. setParameter("AppId", std::to_string(appId));
  71. }
  72. std::vector<std::string> UpdateDeployConfigRequest::getSecretList()const
  73. {
  74. return secretList_;
  75. }
  76. void UpdateDeployConfigRequest::setSecretList(const std::vector<std::string>& secretList)
  77. {
  78. secretList_ = secretList;
  79. for(int dep1 = 0; dep1!= secretList.size(); dep1++) {
  80. setParameter("SecretList."+ std::to_string(dep1), secretList.at(dep1));
  81. }
  82. }
  83. long UpdateDeployConfigRequest::getId()const
  84. {
  85. return id_;
  86. }
  87. void UpdateDeployConfigRequest::setId(long id)
  88. {
  89. id_ = id;
  90. setParameter("Id", std::to_string(id));
  91. }
  92. std::string UpdateDeployConfigRequest::getCronJob()const
  93. {
  94. return cronJob_;
  95. }
  96. void UpdateDeployConfigRequest::setCronJob(const std::string& cronJob)
  97. {
  98. cronJob_ = cronJob;
  99. setParameter("CronJob", cronJob);
  100. }
  101. std::string UpdateDeployConfigRequest::getDeployment()const
  102. {
  103. return deployment_;
  104. }
  105. void UpdateDeployConfigRequest::setDeployment(const std::string& deployment)
  106. {
  107. deployment_ = deployment;
  108. setParameter("Deployment", deployment);
  109. }