GetIpProfileRequest.cc 3.1 KB

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