CreateGlobalQuestionRequest.cc 2.5 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/CreateGlobalQuestionRequest.h>
  17. using AlibabaCloud::OutboundBot::Model::CreateGlobalQuestionRequest;
  18. CreateGlobalQuestionRequest::CreateGlobalQuestionRequest() :
  19. RpcServiceRequest("outboundbot", "2019-12-26", "CreateGlobalQuestion")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. CreateGlobalQuestionRequest::~CreateGlobalQuestionRequest()
  24. {}
  25. std::string CreateGlobalQuestionRequest::getGlobalQuestionName()const
  26. {
  27. return globalQuestionName_;
  28. }
  29. void CreateGlobalQuestionRequest::setGlobalQuestionName(const std::string& globalQuestionName)
  30. {
  31. globalQuestionName_ = globalQuestionName;
  32. setParameter("GlobalQuestionName", globalQuestionName);
  33. }
  34. std::string CreateGlobalQuestionRequest::getQuestions()const
  35. {
  36. return questions_;
  37. }
  38. void CreateGlobalQuestionRequest::setQuestions(const std::string& questions)
  39. {
  40. questions_ = questions;
  41. setParameter("Questions", questions);
  42. }
  43. std::string CreateGlobalQuestionRequest::getAnswers()const
  44. {
  45. return answers_;
  46. }
  47. void CreateGlobalQuestionRequest::setAnswers(const std::string& answers)
  48. {
  49. answers_ = answers;
  50. setParameter("Answers", answers);
  51. }
  52. std::string CreateGlobalQuestionRequest::getScriptId()const
  53. {
  54. return scriptId_;
  55. }
  56. void CreateGlobalQuestionRequest::setScriptId(const std::string& scriptId)
  57. {
  58. scriptId_ = scriptId;
  59. setParameter("ScriptId", scriptId);
  60. }
  61. std::string CreateGlobalQuestionRequest::getInstanceId()const
  62. {
  63. return instanceId_;
  64. }
  65. void CreateGlobalQuestionRequest::setInstanceId(const std::string& instanceId)
  66. {
  67. instanceId_ = instanceId;
  68. setParameter("InstanceId", instanceId);
  69. }
  70. std::string CreateGlobalQuestionRequest::getGlobalQuestionType()const
  71. {
  72. return globalQuestionType_;
  73. }
  74. void CreateGlobalQuestionRequest::setGlobalQuestionType(const std::string& globalQuestionType)
  75. {
  76. globalQuestionType_ = globalQuestionType;
  77. setParameter("GlobalQuestionType", globalQuestionType);
  78. }