CreateDeployConfigRequest.cc 3.5 KB

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