ClientAuthRequest.cc 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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/avatar/model/ClientAuthRequest.h>
  17. using AlibabaCloud::Avatar::Model::ClientAuthRequest;
  18. ClientAuthRequest::ClientAuthRequest()
  19. : RpcServiceRequest("avatar", "2022-01-30", "ClientAuth") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. ClientAuthRequest::~ClientAuthRequest() {}
  23. std::string ClientAuthRequest::getDeviceId() const {
  24. return deviceId_;
  25. }
  26. void ClientAuthRequest::setDeviceId(const std::string &deviceId) {
  27. deviceId_ = deviceId;
  28. setParameter(std::string("DeviceId"), deviceId);
  29. }
  30. std::string ClientAuthRequest::getDeviceType() const {
  31. return deviceType_;
  32. }
  33. void ClientAuthRequest::setDeviceType(const std::string &deviceType) {
  34. deviceType_ = deviceType;
  35. setParameter(std::string("DeviceType"), deviceType);
  36. }
  37. std::string ClientAuthRequest::getLicense() const {
  38. return license_;
  39. }
  40. void ClientAuthRequest::setLicense(const std::string &license) {
  41. license_ = license;
  42. setParameter(std::string("License"), license);
  43. }
  44. std::string ClientAuthRequest::getAppId() const {
  45. return appId_;
  46. }
  47. void ClientAuthRequest::setAppId(const std::string &appId) {
  48. appId_ = appId;
  49. setParameter(std::string("AppId"), appId);
  50. }
  51. long ClientAuthRequest::getTenantId() const {
  52. return tenantId_;
  53. }
  54. void ClientAuthRequest::setTenantId(long tenantId) {
  55. tenantId_ = tenantId;
  56. setParameter(std::string("TenantId"), std::to_string(tenantId));
  57. }
  58. std::string ClientAuthRequest::getDeviceInfo() const {
  59. return deviceInfo_;
  60. }
  61. void ClientAuthRequest::setDeviceInfo(const std::string &deviceInfo) {
  62. deviceInfo_ = deviceInfo;
  63. setParameter(std::string("DeviceInfo"), deviceInfo);
  64. }