SpeechByCombinationRequest.cc 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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/iot/model/SpeechByCombinationRequest.h>
  17. using AlibabaCloud::Iot::Model::SpeechByCombinationRequest;
  18. SpeechByCombinationRequest::SpeechByCombinationRequest() :
  19. RpcServiceRequest("iot", "2018-01-20", "SpeechByCombination")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. SpeechByCombinationRequest::~SpeechByCombinationRequest()
  24. {}
  25. std::string SpeechByCombinationRequest::getSpeechId()const
  26. {
  27. return speechId_;
  28. }
  29. void SpeechByCombinationRequest::setSpeechId(const std::string& speechId)
  30. {
  31. speechId_ = speechId;
  32. setBodyParameter("SpeechId", speechId);
  33. }
  34. std::string SpeechByCombinationRequest::getAudioFormat()const
  35. {
  36. return audioFormat_;
  37. }
  38. void SpeechByCombinationRequest::setAudioFormat(const std::string& audioFormat)
  39. {
  40. audioFormat_ = audioFormat;
  41. setBodyParameter("AudioFormat", audioFormat);
  42. }
  43. std::string SpeechByCombinationRequest::getIotId()const
  44. {
  45. return iotId_;
  46. }
  47. void SpeechByCombinationRequest::setIotId(const std::string& iotId)
  48. {
  49. iotId_ = iotId;
  50. setBodyParameter("IotId", iotId);
  51. }
  52. std::vector<std::string> SpeechByCombinationRequest::getCombinationList()const
  53. {
  54. return combinationList_;
  55. }
  56. void SpeechByCombinationRequest::setCombinationList(const std::vector<std::string>& combinationList)
  57. {
  58. combinationList_ = combinationList;
  59. for(int dep1 = 0; dep1!= combinationList.size(); dep1++) {
  60. setBodyParameter("CombinationList."+ std::to_string(dep1), combinationList.at(dep1));
  61. }
  62. }
  63. std::string SpeechByCombinationRequest::getIotInstanceId()const
  64. {
  65. return iotInstanceId_;
  66. }
  67. void SpeechByCombinationRequest::setIotInstanceId(const std::string& iotInstanceId)
  68. {
  69. iotInstanceId_ = iotInstanceId;
  70. setBodyParameter("IotInstanceId", iotInstanceId);
  71. }
  72. std::string SpeechByCombinationRequest::getProductKey()const
  73. {
  74. return productKey_;
  75. }
  76. void SpeechByCombinationRequest::setProductKey(const std::string& productKey)
  77. {
  78. productKey_ = productKey;
  79. setBodyParameter("ProductKey", productKey);
  80. }
  81. std::string SpeechByCombinationRequest::getApiProduct()const
  82. {
  83. return apiProduct_;
  84. }
  85. void SpeechByCombinationRequest::setApiProduct(const std::string& apiProduct)
  86. {
  87. apiProduct_ = apiProduct;
  88. setBodyParameter("ApiProduct", apiProduct);
  89. }
  90. std::string SpeechByCombinationRequest::getApiRevision()const
  91. {
  92. return apiRevision_;
  93. }
  94. void SpeechByCombinationRequest::setApiRevision(const std::string& apiRevision)
  95. {
  96. apiRevision_ = apiRevision;
  97. setBodyParameter("ApiRevision", apiRevision);
  98. }
  99. std::string SpeechByCombinationRequest::getDeviceName()const
  100. {
  101. return deviceName_;
  102. }
  103. void SpeechByCombinationRequest::setDeviceName(const std::string& deviceName)
  104. {
  105. deviceName_ = deviceName;
  106. setBodyParameter("DeviceName", deviceName);
  107. }