CreateIntentRequest.cc 2.3 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/outboundbot/model/CreateIntentRequest.h>
  17. using AlibabaCloud::OutboundBot::Model::CreateIntentRequest;
  18. CreateIntentRequest::CreateIntentRequest() :
  19. RpcServiceRequest("outboundbot", "2019-12-26", "CreateIntent")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. CreateIntentRequest::~CreateIntentRequest()
  24. {}
  25. std::string CreateIntentRequest::getUtterances()const
  26. {
  27. return utterances_;
  28. }
  29. void CreateIntentRequest::setUtterances(const std::string& utterances)
  30. {
  31. utterances_ = utterances;
  32. setParameter("Utterances", utterances);
  33. }
  34. std::string CreateIntentRequest::getKeywords()const
  35. {
  36. return keywords_;
  37. }
  38. void CreateIntentRequest::setKeywords(const std::string& keywords)
  39. {
  40. keywords_ = keywords;
  41. setParameter("Keywords", keywords);
  42. }
  43. std::string CreateIntentRequest::getIntentDescription()const
  44. {
  45. return intentDescription_;
  46. }
  47. void CreateIntentRequest::setIntentDescription(const std::string& intentDescription)
  48. {
  49. intentDescription_ = intentDescription;
  50. setParameter("IntentDescription", intentDescription);
  51. }
  52. std::string CreateIntentRequest::getScriptId()const
  53. {
  54. return scriptId_;
  55. }
  56. void CreateIntentRequest::setScriptId(const std::string& scriptId)
  57. {
  58. scriptId_ = scriptId;
  59. setParameter("ScriptId", scriptId);
  60. }
  61. std::string CreateIntentRequest::getInstanceId()const
  62. {
  63. return instanceId_;
  64. }
  65. void CreateIntentRequest::setInstanceId(const std::string& instanceId)
  66. {
  67. instanceId_ = instanceId;
  68. setParameter("InstanceId", instanceId);
  69. }
  70. std::string CreateIntentRequest::getIntentName()const
  71. {
  72. return intentName_;
  73. }
  74. void CreateIntentRequest::setIntentName(const std::string& intentName)
  75. {
  76. intentName_ = intentName;
  77. setParameter("IntentName", intentName);
  78. }