ExportDataKeyRequest.cc 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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/ExportDataKeyRequest.h>
  17. using AlibabaCloud::Kms::Model::ExportDataKeyRequest;
  18. ExportDataKeyRequest::ExportDataKeyRequest()
  19. : RpcServiceRequest("kms", "2016-01-20", "ExportDataKey") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. ExportDataKeyRequest::~ExportDataKeyRequest() {}
  23. std::string ExportDataKeyRequest::getDryRun() const {
  24. return dryRun_;
  25. }
  26. void ExportDataKeyRequest::setDryRun(const std::string &dryRun) {
  27. dryRun_ = dryRun;
  28. setParameter(std::string("DryRun"), dryRun);
  29. }
  30. std::string ExportDataKeyRequest::getPublicKeyBlob() const {
  31. return publicKeyBlob_;
  32. }
  33. void ExportDataKeyRequest::setPublicKeyBlob(const std::string &publicKeyBlob) {
  34. publicKeyBlob_ = publicKeyBlob;
  35. setParameter(std::string("PublicKeyBlob"), publicKeyBlob);
  36. }
  37. std::string ExportDataKeyRequest::getEncryptionContext() const {
  38. return encryptionContext_;
  39. }
  40. void ExportDataKeyRequest::setEncryptionContext(const std::string &encryptionContext) {
  41. encryptionContext_ = encryptionContext;
  42. setParameter(std::string("EncryptionContext"), encryptionContext);
  43. }
  44. std::string ExportDataKeyRequest::getWrappingAlgorithm() const {
  45. return wrappingAlgorithm_;
  46. }
  47. void ExportDataKeyRequest::setWrappingAlgorithm(const std::string &wrappingAlgorithm) {
  48. wrappingAlgorithm_ = wrappingAlgorithm;
  49. setParameter(std::string("WrappingAlgorithm"), wrappingAlgorithm);
  50. }
  51. std::string ExportDataKeyRequest::getCiphertextBlob() const {
  52. return ciphertextBlob_;
  53. }
  54. void ExportDataKeyRequest::setCiphertextBlob(const std::string &ciphertextBlob) {
  55. ciphertextBlob_ = ciphertextBlob;
  56. setParameter(std::string("CiphertextBlob"), ciphertextBlob);
  57. }
  58. std::string ExportDataKeyRequest::getWrappingKeySpec() const {
  59. return wrappingKeySpec_;
  60. }
  61. void ExportDataKeyRequest::setWrappingKeySpec(const std::string &wrappingKeySpec) {
  62. wrappingKeySpec_ = wrappingKeySpec;
  63. setParameter(std::string("WrappingKeySpec"), wrappingKeySpec);
  64. }