GetOpenNLURequest.cc 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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/alinlp/model/GetOpenNLURequest.h>
  17. using AlibabaCloud::Alinlp::Model::GetOpenNLURequest;
  18. GetOpenNLURequest::GetOpenNLURequest()
  19. : RpcServiceRequest("alinlp", "2020-06-29", "GetOpenNLU") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. GetOpenNLURequest::~GetOpenNLURequest() {}
  23. std::string GetOpenNLURequest::getSentence() const {
  24. return sentence_;
  25. }
  26. void GetOpenNLURequest::setSentence(const std::string &sentence) {
  27. sentence_ = sentence;
  28. setBodyParameter(std::string("Sentence"), sentence);
  29. }
  30. std::string GetOpenNLURequest::getBusiness() const {
  31. return business_;
  32. }
  33. void GetOpenNLURequest::setBusiness(const std::string &business) {
  34. business_ = business;
  35. setParameter(std::string("Business"), business);
  36. }
  37. std::string GetOpenNLURequest::getLabels() const {
  38. return labels_;
  39. }
  40. void GetOpenNLURequest::setLabels(const std::string &labels) {
  41. labels_ = labels;
  42. setBodyParameter(std::string("Labels"), labels);
  43. }
  44. std::string GetOpenNLURequest::getTask() const {
  45. return task_;
  46. }
  47. void GetOpenNLURequest::setTask(const std::string &task) {
  48. task_ = task;
  49. setBodyParameter(std::string("Task"), task);
  50. }
  51. std::string GetOpenNLURequest::getServiceCode() const {
  52. return serviceCode_;
  53. }
  54. void GetOpenNLURequest::setServiceCode(const std::string &serviceCode) {
  55. serviceCode_ = serviceCode;
  56. setBodyParameter(std::string("ServiceCode"), serviceCode);
  57. }
  58. std::string GetOpenNLURequest::getExamples() const {
  59. return examples_;
  60. }
  61. void GetOpenNLURequest::setExamples(const std::string &examples) {
  62. examples_ = examples;
  63. setBodyParameter(std::string("Examples"), examples);
  64. }