SmartCallRequest.cc 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  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/dyvmsapi/model/SmartCallRequest.h>
  17. using AlibabaCloud::Dyvmsapi::Model::SmartCallRequest;
  18. SmartCallRequest::SmartCallRequest() :
  19. RpcServiceRequest("dyvmsapi", "2017-05-25", "SmartCall")
  20. {}
  21. SmartCallRequest::~SmartCallRequest()
  22. {}
  23. long SmartCallRequest::getResourceOwnerId()const
  24. {
  25. return resourceOwnerId_;
  26. }
  27. void SmartCallRequest::setResourceOwnerId(long resourceOwnerId)
  28. {
  29. resourceOwnerId_ = resourceOwnerId;
  30. setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
  31. }
  32. bool SmartCallRequest::getActionCodeBreak()const
  33. {
  34. return actionCodeBreak_;
  35. }
  36. void SmartCallRequest::setActionCodeBreak(bool actionCodeBreak)
  37. {
  38. actionCodeBreak_ = actionCodeBreak;
  39. setParameter("ActionCodeBreak", std::to_string(actionCodeBreak));
  40. }
  41. std::string SmartCallRequest::getResourceOwnerAccount()const
  42. {
  43. return resourceOwnerAccount_;
  44. }
  45. void SmartCallRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
  46. {
  47. resourceOwnerAccount_ = resourceOwnerAccount;
  48. setParameter("ResourceOwnerAccount", resourceOwnerAccount);
  49. }
  50. bool SmartCallRequest::getRecordFlag()const
  51. {
  52. return recordFlag_;
  53. }
  54. void SmartCallRequest::setRecordFlag(bool recordFlag)
  55. {
  56. recordFlag_ = recordFlag;
  57. setParameter("RecordFlag", std::to_string(recordFlag));
  58. }
  59. long SmartCallRequest::getOwnerId()const
  60. {
  61. return ownerId_;
  62. }
  63. void SmartCallRequest::setOwnerId(long ownerId)
  64. {
  65. ownerId_ = ownerId;
  66. setParameter("OwnerId", std::to_string(ownerId));
  67. }
  68. int SmartCallRequest::getSpeed()const
  69. {
  70. return speed_;
  71. }
  72. void SmartCallRequest::setSpeed(int speed)
  73. {
  74. speed_ = speed;
  75. setParameter("Speed", std::to_string(speed));
  76. }
  77. std::string SmartCallRequest::getAccessKeyId()const
  78. {
  79. return accessKeyId_;
  80. }
  81. void SmartCallRequest::setAccessKeyId(const std::string& accessKeyId)
  82. {
  83. accessKeyId_ = accessKeyId;
  84. setParameter("AccessKeyId", accessKeyId);
  85. }
  86. int SmartCallRequest::getVolume()const
  87. {
  88. return volume_;
  89. }
  90. void SmartCallRequest::setVolume(int volume)
  91. {
  92. volume_ = volume;
  93. setParameter("Volume", std::to_string(volume));
  94. }
  95. std::string SmartCallRequest::getDynamicId()const
  96. {
  97. return dynamicId_;
  98. }
  99. void SmartCallRequest::setDynamicId(const std::string& dynamicId)
  100. {
  101. dynamicId_ = dynamicId;
  102. setParameter("DynamicId", dynamicId);
  103. }
  104. std::string SmartCallRequest::getCalledNumber()const
  105. {
  106. return calledNumber_;
  107. }
  108. void SmartCallRequest::setCalledNumber(const std::string& calledNumber)
  109. {
  110. calledNumber_ = calledNumber;
  111. setParameter("CalledNumber", calledNumber);
  112. }
  113. std::string SmartCallRequest::getVoiceCode()const
  114. {
  115. return voiceCode_;
  116. }
  117. void SmartCallRequest::setVoiceCode(const std::string& voiceCode)
  118. {
  119. voiceCode_ = voiceCode;
  120. setParameter("VoiceCode", voiceCode);
  121. }
  122. int SmartCallRequest::getMuteTime()const
  123. {
  124. return muteTime_;
  125. }
  126. void SmartCallRequest::setMuteTime(int muteTime)
  127. {
  128. muteTime_ = muteTime;
  129. setParameter("MuteTime", std::to_string(muteTime));
  130. }
  131. std::string SmartCallRequest::getCalledShowNumber()const
  132. {
  133. return calledShowNumber_;
  134. }
  135. void SmartCallRequest::setCalledShowNumber(const std::string& calledShowNumber)
  136. {
  137. calledShowNumber_ = calledShowNumber;
  138. setParameter("CalledShowNumber", calledShowNumber);
  139. }
  140. std::string SmartCallRequest::getOutId()const
  141. {
  142. return outId_;
  143. }
  144. void SmartCallRequest::setOutId(const std::string& outId)
  145. {
  146. outId_ = outId;
  147. setParameter("OutId", outId);
  148. }
  149. std::string SmartCallRequest::getAsrModelId()const
  150. {
  151. return asrModelId_;
  152. }
  153. void SmartCallRequest::setAsrModelId(const std::string& asrModelId)
  154. {
  155. asrModelId_ = asrModelId;
  156. setParameter("AsrModelId", asrModelId);
  157. }
  158. int SmartCallRequest::getPauseTime()const
  159. {
  160. return pauseTime_;
  161. }
  162. void SmartCallRequest::setPauseTime(int pauseTime)
  163. {
  164. pauseTime_ = pauseTime;
  165. setParameter("PauseTime", std::to_string(pauseTime));
  166. }