DemoHsfNineResponseRequest.cc 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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/DemoHsfNineResponseRequest.h>
  17. using AlibabaCloud::LmzTest::Model::DemoHsfNineResponseRequest;
  18. DemoHsfNineResponseRequest::DemoHsfNineResponseRequest()
  19. : RpcServiceRequest("lmztest", "2010-10-11", "DemoHsfNineResponse") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. DemoHsfNineResponseRequest::~DemoHsfNineResponseRequest() {}
  23. std::string DemoHsfNineResponseRequest::getName() const {
  24. return name_;
  25. }
  26. void DemoHsfNineResponseRequest::setName(const std::string &name) {
  27. name_ = name;
  28. setParameter(std::string("name"), name);
  29. }
  30. std::string DemoHsfNineResponseRequest::getTestF1() const {
  31. return testF1_;
  32. }
  33. void DemoHsfNineResponseRequest::setTestF1(const std::string &testF1) {
  34. testF1_ = testF1;
  35. setParameter(std::string("TestF1"), testF1);
  36. }
  37. std::map<std::string, DemoHsfNineResponseRequest::userMap> DemoHsfNineResponseRequest::getUserMap() const {
  38. return userMap_;
  39. }
  40. void DemoHsfNineResponseRequest::setUserMap(const std::map<std::string, DemoHsfNineResponseRequest::userMap> &userMap) {
  41. userMap_ = userMap;
  42. for(auto const &iter1 : userMap) {
  43. setParameter(std::string("userMap") + "." + iter1.first + ".Uaa", iter1.second.uaa);
  44. setParameter(std::string("userMap") + "." + iter1.first + ".Uas", iter1.second.uas);
  45. setParameter(std::string("userMap") + "." + iter1.first + ".name", iter1.second.name);
  46. setParameter(std::string("userMap") + "." + iter1.first + ".id", iter1.second.id);
  47. }
  48. }