ReEncryptRequest.cc 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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/ReEncryptRequest.h>
  17. using AlibabaCloud::Kms::Model::ReEncryptRequest;
  18. ReEncryptRequest::ReEncryptRequest()
  19. : RpcServiceRequest("kms", "2016-01-20", "ReEncrypt") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. ReEncryptRequest::~ReEncryptRequest() {}
  23. std::string ReEncryptRequest::getDestinationEncryptionContext() const {
  24. return destinationEncryptionContext_;
  25. }
  26. void ReEncryptRequest::setDestinationEncryptionContext(const std::string &destinationEncryptionContext) {
  27. destinationEncryptionContext_ = destinationEncryptionContext;
  28. setParameter(std::string("DestinationEncryptionContext"), destinationEncryptionContext);
  29. }
  30. std::string ReEncryptRequest::getDryRun() const {
  31. return dryRun_;
  32. }
  33. void ReEncryptRequest::setDryRun(const std::string &dryRun) {
  34. dryRun_ = dryRun;
  35. setParameter(std::string("DryRun"), dryRun);
  36. }
  37. std::string ReEncryptRequest::getSourceKeyId() const {
  38. return sourceKeyId_;
  39. }
  40. void ReEncryptRequest::setSourceKeyId(const std::string &sourceKeyId) {
  41. sourceKeyId_ = sourceKeyId;
  42. setParameter(std::string("SourceKeyId"), sourceKeyId);
  43. }
  44. std::string ReEncryptRequest::getSourceEncryptionAlgorithm() const {
  45. return sourceEncryptionAlgorithm_;
  46. }
  47. void ReEncryptRequest::setSourceEncryptionAlgorithm(const std::string &sourceEncryptionAlgorithm) {
  48. sourceEncryptionAlgorithm_ = sourceEncryptionAlgorithm;
  49. setParameter(std::string("SourceEncryptionAlgorithm"), sourceEncryptionAlgorithm);
  50. }
  51. std::string ReEncryptRequest::getSourceKeyVersionId() const {
  52. return sourceKeyVersionId_;
  53. }
  54. void ReEncryptRequest::setSourceKeyVersionId(const std::string &sourceKeyVersionId) {
  55. sourceKeyVersionId_ = sourceKeyVersionId;
  56. setParameter(std::string("SourceKeyVersionId"), sourceKeyVersionId);
  57. }
  58. std::string ReEncryptRequest::getDestinationKeyId() const {
  59. return destinationKeyId_;
  60. }
  61. void ReEncryptRequest::setDestinationKeyId(const std::string &destinationKeyId) {
  62. destinationKeyId_ = destinationKeyId;
  63. setParameter(std::string("DestinationKeyId"), destinationKeyId);
  64. }
  65. std::string ReEncryptRequest::getSourceEncryptionContext() const {
  66. return sourceEncryptionContext_;
  67. }
  68. void ReEncryptRequest::setSourceEncryptionContext(const std::string &sourceEncryptionContext) {
  69. sourceEncryptionContext_ = sourceEncryptionContext;
  70. setParameter(std::string("SourceEncryptionContext"), sourceEncryptionContext);
  71. }
  72. std::string ReEncryptRequest::getCiphertextBlob() const {
  73. return ciphertextBlob_;
  74. }
  75. void ReEncryptRequest::setCiphertextBlob(const std::string &ciphertextBlob) {
  76. ciphertextBlob_ = ciphertextBlob;
  77. setParameter(std::string("CiphertextBlob"), ciphertextBlob);
  78. }