GetAccountProfileRequest.cc 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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/sas-api/model/GetAccountProfileRequest.h>
  17. using AlibabaCloud::Sas_api::Model::GetAccountProfileRequest;
  18. GetAccountProfileRequest::GetAccountProfileRequest() :
  19. RpcServiceRequest("sas-api", "2017-07-05", "GetAccountProfile")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. GetAccountProfileRequest::~GetAccountProfileRequest()
  24. {}
  25. std::string GetAccountProfileRequest::getDeviceIdMd5()const
  26. {
  27. return deviceIdMd5_;
  28. }
  29. void GetAccountProfileRequest::setDeviceIdMd5(const std::string& deviceIdMd5)
  30. {
  31. deviceIdMd5_ = deviceIdMd5;
  32. setParameter("DeviceIdMd5", deviceIdMd5);
  33. }
  34. std::string GetAccountProfileRequest::getOs()const
  35. {
  36. return os_;
  37. }
  38. void GetAccountProfileRequest::setOs(const std::string& os)
  39. {
  40. os_ = os;
  41. setParameter("Os", os);
  42. }
  43. std::string GetAccountProfileRequest::getIp()const
  44. {
  45. return ip_;
  46. }
  47. void GetAccountProfileRequest::setIp(const std::string& ip)
  48. {
  49. ip_ = ip;
  50. setParameter("Ip", ip);
  51. }
  52. std::string GetAccountProfileRequest::getUserAgent()const
  53. {
  54. return userAgent_;
  55. }
  56. void GetAccountProfileRequest::setUserAgent(const std::string& userAgent)
  57. {
  58. userAgent_ = userAgent;
  59. setParameter("UserAgent", userAgent);
  60. }
  61. int GetAccountProfileRequest::getSensType()const
  62. {
  63. return sensType_;
  64. }
  65. void GetAccountProfileRequest::setSensType(int sensType)
  66. {
  67. sensType_ = sensType;
  68. setParameter("SensType", std::to_string(sensType));
  69. }
  70. int GetAccountProfileRequest::getDeviceType()const
  71. {
  72. return deviceType_;
  73. }
  74. void GetAccountProfileRequest::setDeviceType(int deviceType)
  75. {
  76. deviceType_ = deviceType;
  77. setParameter("DeviceType", std::to_string(deviceType));
  78. }
  79. int GetAccountProfileRequest::getBusinessType()const
  80. {
  81. return businessType_;
  82. }
  83. void GetAccountProfileRequest::setBusinessType(int businessType)
  84. {
  85. businessType_ = businessType;
  86. setParameter("BusinessType", std::to_string(businessType));
  87. }
  88. int GetAccountProfileRequest::getCarrier()const
  89. {
  90. return carrier_;
  91. }
  92. void GetAccountProfileRequest::setCarrier(int carrier)
  93. {
  94. carrier_ = carrier;
  95. setParameter("Carrier", std::to_string(carrier));
  96. }
  97. std::string GetAccountProfileRequest::getPhone()const
  98. {
  99. return phone_;
  100. }
  101. void GetAccountProfileRequest::setPhone(const std::string& phone)
  102. {
  103. phone_ = phone;
  104. setParameter("Phone", phone);
  105. }
  106. std::string GetAccountProfileRequest::getRequestUrl()const
  107. {
  108. return requestUrl_;
  109. }
  110. void GetAccountProfileRequest::setRequestUrl(const std::string& requestUrl)
  111. {
  112. requestUrl_ = requestUrl;
  113. setParameter("RequestUrl", requestUrl);
  114. }
  115. int GetAccountProfileRequest::getConnectionType()const
  116. {
  117. return connectionType_;
  118. }
  119. void GetAccountProfileRequest::setConnectionType(int connectionType)
  120. {
  121. connectionType_ = connectionType;
  122. setParameter("ConnectionType", std::to_string(connectionType));
  123. }
  124. long GetAccountProfileRequest::getAccessTimestamp()const
  125. {
  126. return accessTimestamp_;
  127. }
  128. void GetAccountProfileRequest::setAccessTimestamp(long accessTimestamp)
  129. {
  130. accessTimestamp_ = accessTimestamp;
  131. setParameter("AccessTimestamp", std::to_string(accessTimestamp));
  132. }