CreateAuthKeyRequest.cc 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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/cloudauth/model/CreateAuthKeyRequest.h>
  17. using AlibabaCloud::Cloudauth::Model::CreateAuthKeyRequest;
  18. CreateAuthKeyRequest::CreateAuthKeyRequest() :
  19. RpcServiceRequest("cloudauth", "2018-09-16", "CreateAuthKey")
  20. {}
  21. CreateAuthKeyRequest::~CreateAuthKeyRequest()
  22. {}
  23. std::string CreateAuthKeyRequest::getUserDeviceId()const
  24. {
  25. return userDeviceId_;
  26. }
  27. void CreateAuthKeyRequest::setUserDeviceId(const std::string& userDeviceId)
  28. {
  29. userDeviceId_ = userDeviceId;
  30. setCoreParameter("UserDeviceId", userDeviceId);
  31. }
  32. bool CreateAuthKeyRequest::getTest()const
  33. {
  34. return test_;
  35. }
  36. void CreateAuthKeyRequest::setTest(bool test)
  37. {
  38. test_ = test;
  39. setCoreParameter("Test", test ? "true" : "false");
  40. }
  41. std::string CreateAuthKeyRequest::getBizType()const
  42. {
  43. return bizType_;
  44. }
  45. void CreateAuthKeyRequest::setBizType(const std::string& bizType)
  46. {
  47. bizType_ = bizType;
  48. setCoreParameter("BizType", bizType);
  49. }
  50. std::string CreateAuthKeyRequest::getSourceIp()const
  51. {
  52. return sourceIp_;
  53. }
  54. void CreateAuthKeyRequest::setSourceIp(const std::string& sourceIp)
  55. {
  56. sourceIp_ = sourceIp;
  57. setCoreParameter("SourceIp", sourceIp);
  58. }
  59. int CreateAuthKeyRequest::getAuthYears()const
  60. {
  61. return authYears_;
  62. }
  63. void CreateAuthKeyRequest::setAuthYears(int authYears)
  64. {
  65. authYears_ = authYears;
  66. setCoreParameter("AuthYears", std::to_string(authYears));
  67. }
  68. std::string CreateAuthKeyRequest::getLang()const
  69. {
  70. return lang_;
  71. }
  72. void CreateAuthKeyRequest::setLang(const std::string& lang)
  73. {
  74. lang_ = lang;
  75. setCoreParameter("Lang", lang);
  76. }