UploadUserCertificateRequest.cc 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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/cas/model/UploadUserCertificateRequest.h>
  17. using AlibabaCloud::Cas::Model::UploadUserCertificateRequest;
  18. UploadUserCertificateRequest::UploadUserCertificateRequest()
  19. : RpcServiceRequest("cas", "2020-04-07", "UploadUserCertificate") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. UploadUserCertificateRequest::~UploadUserCertificateRequest() {}
  23. std::string UploadUserCertificateRequest::getEncryptCert() const {
  24. return encryptCert_;
  25. }
  26. void UploadUserCertificateRequest::setEncryptCert(const std::string &encryptCert) {
  27. encryptCert_ = encryptCert;
  28. setParameter(std::string("EncryptCert"), encryptCert);
  29. }
  30. std::string UploadUserCertificateRequest::getCert() const {
  31. return cert_;
  32. }
  33. void UploadUserCertificateRequest::setCert(const std::string &cert) {
  34. cert_ = cert;
  35. setParameter(std::string("Cert"), cert);
  36. }
  37. std::string UploadUserCertificateRequest::getResourceGroupId() const {
  38. return resourceGroupId_;
  39. }
  40. void UploadUserCertificateRequest::setResourceGroupId(const std::string &resourceGroupId) {
  41. resourceGroupId_ = resourceGroupId;
  42. setParameter(std::string("ResourceGroupId"), resourceGroupId);
  43. }
  44. std::string UploadUserCertificateRequest::getSourceIp() const {
  45. return sourceIp_;
  46. }
  47. void UploadUserCertificateRequest::setSourceIp(const std::string &sourceIp) {
  48. sourceIp_ = sourceIp;
  49. setParameter(std::string("SourceIp"), sourceIp);
  50. }
  51. std::string UploadUserCertificateRequest::getKey() const {
  52. return key_;
  53. }
  54. void UploadUserCertificateRequest::setKey(const std::string &key) {
  55. key_ = key;
  56. setParameter(std::string("Key"), key);
  57. }
  58. std::string UploadUserCertificateRequest::getEncryptPrivateKey() const {
  59. return encryptPrivateKey_;
  60. }
  61. void UploadUserCertificateRequest::setEncryptPrivateKey(const std::string &encryptPrivateKey) {
  62. encryptPrivateKey_ = encryptPrivateKey;
  63. setParameter(std::string("EncryptPrivateKey"), encryptPrivateKey);
  64. }
  65. std::string UploadUserCertificateRequest::getSignPrivateKey() const {
  66. return signPrivateKey_;
  67. }
  68. void UploadUserCertificateRequest::setSignPrivateKey(const std::string &signPrivateKey) {
  69. signPrivateKey_ = signPrivateKey;
  70. setParameter(std::string("SignPrivateKey"), signPrivateKey);
  71. }
  72. std::string UploadUserCertificateRequest::getSignCert() const {
  73. return signCert_;
  74. }
  75. void UploadUserCertificateRequest::setSignCert(const std::string &signCert) {
  76. signCert_ = signCert;
  77. setParameter(std::string("SignCert"), signCert);
  78. }
  79. std::string UploadUserCertificateRequest::getName() const {
  80. return name_;
  81. }
  82. void UploadUserCertificateRequest::setName(const std::string &name) {
  83. name_ = name;
  84. setParameter(std::string("Name"), name);
  85. }