AddDeviceRequest.cc 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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/vcs/model/AddDeviceRequest.h>
  17. using AlibabaCloud::Vcs::Model::AddDeviceRequest;
  18. AddDeviceRequest::AddDeviceRequest() :
  19. RpcServiceRequest("vcs", "2020-05-15", "AddDevice")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. AddDeviceRequest::~AddDeviceRequest()
  24. {}
  25. std::string AddDeviceRequest::getDeviceSite()const
  26. {
  27. return deviceSite_;
  28. }
  29. void AddDeviceRequest::setDeviceSite(const std::string& deviceSite)
  30. {
  31. deviceSite_ = deviceSite;
  32. setBodyParameter("DeviceSite", deviceSite);
  33. }
  34. std::string AddDeviceRequest::getCorpId()const
  35. {
  36. return corpId_;
  37. }
  38. void AddDeviceRequest::setCorpId(const std::string& corpId)
  39. {
  40. corpId_ = corpId;
  41. setBodyParameter("CorpId", corpId);
  42. }
  43. std::string AddDeviceRequest::getGbId()const
  44. {
  45. return gbId_;
  46. }
  47. void AddDeviceRequest::setGbId(const std::string& gbId)
  48. {
  49. gbId_ = gbId;
  50. setBodyParameter("GbId", gbId);
  51. }
  52. std::string AddDeviceRequest::getBitRate()const
  53. {
  54. return bitRate_;
  55. }
  56. void AddDeviceRequest::setBitRate(const std::string& bitRate)
  57. {
  58. bitRate_ = bitRate;
  59. setBodyParameter("BitRate", bitRate);
  60. }
  61. std::string AddDeviceRequest::getDeviceDirection()const
  62. {
  63. return deviceDirection_;
  64. }
  65. void AddDeviceRequest::setDeviceDirection(const std::string& deviceDirection)
  66. {
  67. deviceDirection_ = deviceDirection;
  68. setBodyParameter("DeviceDirection", deviceDirection);
  69. }
  70. std::string AddDeviceRequest::getDeviceAddress()const
  71. {
  72. return deviceAddress_;
  73. }
  74. void AddDeviceRequest::setDeviceAddress(const std::string& deviceAddress)
  75. {
  76. deviceAddress_ = deviceAddress;
  77. setBodyParameter("DeviceAddress", deviceAddress);
  78. }
  79. std::string AddDeviceRequest::getDeviceType()const
  80. {
  81. return deviceType_;
  82. }
  83. void AddDeviceRequest::setDeviceType(const std::string& deviceType)
  84. {
  85. deviceType_ = deviceType;
  86. setBodyParameter("DeviceType", deviceType);
  87. }
  88. std::string AddDeviceRequest::getDeviceResolution()const
  89. {
  90. return deviceResolution_;
  91. }
  92. void AddDeviceRequest::setDeviceResolution(const std::string& deviceResolution)
  93. {
  94. deviceResolution_ = deviceResolution;
  95. setBodyParameter("DeviceResolution", deviceResolution);
  96. }
  97. std::string AddDeviceRequest::getVendor()const
  98. {
  99. return vendor_;
  100. }
  101. void AddDeviceRequest::setVendor(const std::string& vendor)
  102. {
  103. vendor_ = vendor;
  104. setBodyParameter("Vendor", vendor);
  105. }
  106. std::string AddDeviceRequest::getDeviceName()const
  107. {
  108. return deviceName_;
  109. }
  110. void AddDeviceRequest::setDeviceName(const std::string& deviceName)
  111. {
  112. deviceName_ = deviceName;
  113. setBodyParameter("DeviceName", deviceName);
  114. }