DemoHsfSixTestRequest.cc 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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/lmztest/model/DemoHsfSixTestRequest.h>
  17. using AlibabaCloud::LmzTest::Model::DemoHsfSixTestRequest;
  18. DemoHsfSixTestRequest::DemoHsfSixTestRequest()
  19. : RpcServiceRequest("lmztest", "2010-10-11", "DemoHsfSixTest") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. DemoHsfSixTestRequest::~DemoHsfSixTestRequest() {}
  23. std::vector<DemoHsfSixTestRequest::std::map<std::string, std::map<std::string, ObjectOfAny>>> DemoHsfSixTestRequest::getStrListMap() const {
  24. return strListMap_;
  25. }
  26. void DemoHsfSixTestRequest::setStrListMap(const std::vector<DemoHsfSixTestRequest::std::map<std::string, std::map<std::string, ObjectOfAny>>> &strListMap) {
  27. strListMap_ = strListMap;
  28. for(int dep1 = 0; dep1 != strListMap.size(); dep1++) {
  29. for(auto const &iter2 : strListMap[dep1]) {
  30. for(auto const &iter3 : iter2.second) {
  31. setBodyParameter(std::string("StrListMap") + "." + std::to_string(dep1 + 1) + "." + iter2.first + "." + iter3.first, std::to_string(iter3.second));
  32. }
  33. }
  34. }
  35. }
  36. std::string DemoHsfSixTestRequest::getData() const {
  37. return data_;
  38. }
  39. void DemoHsfSixTestRequest::setData(const std::string &data) {
  40. data_ = data;
  41. setBodyParameter(std::string("Data"), data);
  42. }
  43. std::string DemoHsfSixTestRequest::getMap() const {
  44. return map_;
  45. }
  46. void DemoHsfSixTestRequest::setMap(const std::string &map) {
  47. map_ = map;
  48. setBodyParameter(std::string("Map"), map);
  49. }
  50. std::map<std::string, DemoHsfSixTestRequest::codeMap> DemoHsfSixTestRequest::getCodeMap() const {
  51. return codeMap_;
  52. }
  53. void DemoHsfSixTestRequest::setCodeMap(const std::map<std::string, DemoHsfSixTestRequest::codeMap> &codeMap) {
  54. codeMap_ = codeMap;
  55. for(auto const &iter1 : codeMap) {
  56. setParameter(std::string("codeMap") + "." + iter1.first + ".Name", iter1.second.name);
  57. setParameter(std::string("codeMap") + "." + iter1.first + ".Id", iter1.second.id);
  58. }
  59. }