GetRandomPasswordRequest.cc 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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/kms/model/GetRandomPasswordRequest.h>
  17. using AlibabaCloud::Kms::Model::GetRandomPasswordRequest;
  18. GetRandomPasswordRequest::GetRandomPasswordRequest()
  19. : RpcServiceRequest("kms", "2016-01-20", "GetRandomPassword") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. GetRandomPasswordRequest::~GetRandomPasswordRequest() {}
  23. std::string GetRandomPasswordRequest::getExcludeCharacters() const {
  24. return excludeCharacters_;
  25. }
  26. void GetRandomPasswordRequest::setExcludeCharacters(const std::string &excludeCharacters) {
  27. excludeCharacters_ = excludeCharacters;
  28. setParameter(std::string("ExcludeCharacters"), excludeCharacters);
  29. }
  30. std::string GetRandomPasswordRequest::getPasswordLength() const {
  31. return passwordLength_;
  32. }
  33. void GetRandomPasswordRequest::setPasswordLength(const std::string &passwordLength) {
  34. passwordLength_ = passwordLength;
  35. setParameter(std::string("PasswordLength"), passwordLength);
  36. }
  37. std::string GetRandomPasswordRequest::getExcludePunctuation() const {
  38. return excludePunctuation_;
  39. }
  40. void GetRandomPasswordRequest::setExcludePunctuation(const std::string &excludePunctuation) {
  41. excludePunctuation_ = excludePunctuation;
  42. setParameter(std::string("ExcludePunctuation"), excludePunctuation);
  43. }
  44. std::string GetRandomPasswordRequest::getRequireEachIncludedType() const {
  45. return requireEachIncludedType_;
  46. }
  47. void GetRandomPasswordRequest::setRequireEachIncludedType(const std::string &requireEachIncludedType) {
  48. requireEachIncludedType_ = requireEachIncludedType;
  49. setParameter(std::string("RequireEachIncludedType"), requireEachIncludedType);
  50. }
  51. std::string GetRandomPasswordRequest::getExcludeNumbers() const {
  52. return excludeNumbers_;
  53. }
  54. void GetRandomPasswordRequest::setExcludeNumbers(const std::string &excludeNumbers) {
  55. excludeNumbers_ = excludeNumbers;
  56. setParameter(std::string("ExcludeNumbers"), excludeNumbers);
  57. }
  58. std::string GetRandomPasswordRequest::getExcludeLowercase() const {
  59. return excludeLowercase_;
  60. }
  61. void GetRandomPasswordRequest::setExcludeLowercase(const std::string &excludeLowercase) {
  62. excludeLowercase_ = excludeLowercase;
  63. setParameter(std::string("ExcludeLowercase"), excludeLowercase);
  64. }
  65. std::string GetRandomPasswordRequest::getExcludeUppercase() const {
  66. return excludeUppercase_;
  67. }
  68. void GetRandomPasswordRequest::setExcludeUppercase(const std::string &excludeUppercase) {
  69. excludeUppercase_ = excludeUppercase;
  70. setParameter(std::string("ExcludeUppercase"), excludeUppercase);
  71. }