AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CustomerManagedEncryption.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/polly/Polly_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Polly {
21namespace Model {
22
31 public:
32 AWS_POLLY_API CustomerManagedEncryption() = default;
35 AWS_POLLY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
46 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
47 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
48 template <typename KmsKeyArnT = Aws::String>
49 void SetKmsKeyArn(KmsKeyArnT&& value) {
50 m_kmsKeyArnHasBeenSet = true;
51 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
52 }
53 template <typename KmsKeyArnT = Aws::String>
55 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
56 return *this;
57 }
59
61
67 inline const Aws::Map<Aws::String, Aws::String>& GetEncryptionContext() const { return m_encryptionContext; }
68 inline bool EncryptionContextHasBeenSet() const { return m_encryptionContextHasBeenSet; }
69 template <typename EncryptionContextT = Aws::Map<Aws::String, Aws::String>>
70 void SetEncryptionContext(EncryptionContextT&& value) {
71 m_encryptionContextHasBeenSet = true;
72 m_encryptionContext = std::forward<EncryptionContextT>(value);
73 }
74 template <typename EncryptionContextT = Aws::Map<Aws::String, Aws::String>>
75 CustomerManagedEncryption& WithEncryptionContext(EncryptionContextT&& value) {
76 SetEncryptionContext(std::forward<EncryptionContextT>(value));
77 return *this;
78 }
79 template <typename EncryptionContextKeyT = Aws::String, typename EncryptionContextValueT = Aws::String>
80 CustomerManagedEncryption& AddEncryptionContext(EncryptionContextKeyT&& key, EncryptionContextValueT&& value) {
81 m_encryptionContextHasBeenSet = true;
82 m_encryptionContext.emplace(std::forward<EncryptionContextKeyT>(key), std::forward<EncryptionContextValueT>(value));
83 return *this;
84 }
86 private:
87 Aws::String m_kmsKeyArn;
88
89 Aws::Map<Aws::String, Aws::String> m_encryptionContext;
90 bool m_kmsKeyArnHasBeenSet = false;
91 bool m_encryptionContextHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace Polly
96} // namespace Aws
CustomerManagedEncryption & WithEncryptionContext(EncryptionContextT &&value)
void SetEncryptionContext(EncryptionContextT &&value)
CustomerManagedEncryption & WithKmsKeyArn(KmsKeyArnT &&value)
AWS_POLLY_API CustomerManagedEncryption(Aws::Utils::Json::JsonView jsonValue)
AWS_POLLY_API CustomerManagedEncryption & operator=(Aws::Utils::Json::JsonView jsonValue)
CustomerManagedEncryption & AddEncryptionContext(EncryptionContextKeyT &&key, EncryptionContextValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetEncryptionContext() const
AWS_POLLY_API CustomerManagedEncryption()=default
AWS_POLLY_API Aws::Utils::Json::JsonValue Jsonize() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue