ClassifyPOIRequest.cc 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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/address-purification/model/ClassifyPOIRequest.h>
  17. using AlibabaCloud::Address_purification::Model::ClassifyPOIRequest;
  18. ClassifyPOIRequest::ClassifyPOIRequest() :
  19. RpcServiceRequest("address-purification", "2019-11-18", "ClassifyPOI")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. ClassifyPOIRequest::~ClassifyPOIRequest()
  24. {}
  25. std::string ClassifyPOIRequest::getDefaultProvince()const
  26. {
  27. return defaultProvince_;
  28. }
  29. void ClassifyPOIRequest::setDefaultProvince(const std::string& defaultProvince)
  30. {
  31. defaultProvince_ = defaultProvince;
  32. setBodyParameter("DefaultProvince", defaultProvince);
  33. }
  34. std::string ClassifyPOIRequest::getServiceCode()const
  35. {
  36. return serviceCode_;
  37. }
  38. void ClassifyPOIRequest::setServiceCode(const std::string& serviceCode)
  39. {
  40. serviceCode_ = serviceCode;
  41. setBodyParameter("ServiceCode", serviceCode);
  42. }
  43. std::string ClassifyPOIRequest::getDefaultCity()const
  44. {
  45. return defaultCity_;
  46. }
  47. void ClassifyPOIRequest::setDefaultCity(const std::string& defaultCity)
  48. {
  49. defaultCity_ = defaultCity;
  50. setBodyParameter("DefaultCity", defaultCity);
  51. }
  52. std::string ClassifyPOIRequest::getDefaultDistrict()const
  53. {
  54. return defaultDistrict_;
  55. }
  56. void ClassifyPOIRequest::setDefaultDistrict(const std::string& defaultDistrict)
  57. {
  58. defaultDistrict_ = defaultDistrict;
  59. setBodyParameter("DefaultDistrict", defaultDistrict);
  60. }
  61. std::string ClassifyPOIRequest::getAppKey()const
  62. {
  63. return appKey_;
  64. }
  65. void ClassifyPOIRequest::setAppKey(const std::string& appKey)
  66. {
  67. appKey_ = appKey;
  68. setBodyParameter("AppKey", appKey);
  69. }
  70. std::string ClassifyPOIRequest::getText()const
  71. {
  72. return text_;
  73. }
  74. void ClassifyPOIRequest::setText(const std::string& text)
  75. {
  76. text_ = text;
  77. setBodyParameter("Text", text);
  78. }