UpdateLoginProfileRequest.cc 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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/ram/model/UpdateLoginProfileRequest.h>
  17. using AlibabaCloud::Ram::Model::UpdateLoginProfileRequest;
  18. UpdateLoginProfileRequest::UpdateLoginProfileRequest() :
  19. RpcServiceRequest("ram", "2015-05-01", "UpdateLoginProfile")
  20. {}
  21. UpdateLoginProfileRequest::~UpdateLoginProfileRequest()
  22. {}
  23. bool UpdateLoginProfileRequest::getPasswordResetRequired()const
  24. {
  25. return passwordResetRequired_;
  26. }
  27. void UpdateLoginProfileRequest::setPasswordResetRequired(bool passwordResetRequired)
  28. {
  29. passwordResetRequired_ = passwordResetRequired;
  30. setCoreParameter("PasswordResetRequired", passwordResetRequired ? "true" : "false");
  31. }
  32. std::string UpdateLoginProfileRequest::getPassword()const
  33. {
  34. return password_;
  35. }
  36. void UpdateLoginProfileRequest::setPassword(const std::string& password)
  37. {
  38. password_ = password;
  39. setCoreParameter("Password", password);
  40. }
  41. bool UpdateLoginProfileRequest::getMFABindRequired()const
  42. {
  43. return mFABindRequired_;
  44. }
  45. void UpdateLoginProfileRequest::setMFABindRequired(bool mFABindRequired)
  46. {
  47. mFABindRequired_ = mFABindRequired;
  48. setCoreParameter("MFABindRequired", mFABindRequired ? "true" : "false");
  49. }
  50. std::string UpdateLoginProfileRequest::getUserName()const
  51. {
  52. return userName_;
  53. }
  54. void UpdateLoginProfileRequest::setUserName(const std::string& userName)
  55. {
  56. userName_ = userName;
  57. setCoreParameter("UserName", userName);
  58. }