AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
RecipientInfo.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/kms/KMS_EXPORTS.h>
9#include <aws/kms/model/KeyEncryptionMechanism.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace KMS {
21namespace Model {
22
37 public:
38 AWS_KMS_API RecipientInfo() = default;
42
44
49 inline KeyEncryptionMechanism GetKeyEncryptionAlgorithm() const { return m_keyEncryptionAlgorithm; }
50 inline bool KeyEncryptionAlgorithmHasBeenSet() const { return m_keyEncryptionAlgorithmHasBeenSet; }
52 m_keyEncryptionAlgorithmHasBeenSet = true;
53 m_keyEncryptionAlgorithm = value;
54 }
57 return *this;
58 }
60
62
66 inline const Aws::Utils::ByteBuffer& GetAttestationDocument() const { return m_attestationDocument; }
67 inline bool AttestationDocumentHasBeenSet() const { return m_attestationDocumentHasBeenSet; }
68 template <typename AttestationDocumentT = Aws::Utils::ByteBuffer>
69 void SetAttestationDocument(AttestationDocumentT&& value) {
70 m_attestationDocumentHasBeenSet = true;
71 m_attestationDocument = std::forward<AttestationDocumentT>(value);
72 }
73 template <typename AttestationDocumentT = Aws::Utils::ByteBuffer>
74 RecipientInfo& WithAttestationDocument(AttestationDocumentT&& value) {
75 SetAttestationDocument(std::forward<AttestationDocumentT>(value));
76 return *this;
77 }
79 private:
81
82 Aws::Utils::ByteBuffer m_attestationDocument{};
83 bool m_keyEncryptionAlgorithmHasBeenSet = false;
84 bool m_attestationDocumentHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace KMS
89} // namespace Aws
RecipientInfo & WithAttestationDocument(AttestationDocumentT &&value)
KeyEncryptionMechanism GetKeyEncryptionAlgorithm() const
void SetKeyEncryptionAlgorithm(KeyEncryptionMechanism value)
const Aws::Utils::ByteBuffer & GetAttestationDocument() const
RecipientInfo & WithKeyEncryptionAlgorithm(KeyEncryptionMechanism value)
bool AttestationDocumentHasBeenSet() const
bool KeyEncryptionAlgorithmHasBeenSet() const
AWS_KMS_API RecipientInfo()=default
AWS_KMS_API RecipientInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_KMS_API RecipientInfo(Aws::Utils::Json::JsonView jsonValue)
AWS_KMS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAttestationDocument(AttestationDocumentT &&value)
Aws::Utils::Json::JsonValue JsonValue