AWS SDK for C++

AWS SDK for C++ Version 1.11.905

Loading...
Searching...
No Matches
EncryptionConfiguration.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/transcribe/TranscribeService_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace TranscribeService {
21namespace Model {
22
29 public:
30 AWS_TRANSCRIBESERVICE_API EncryptionConfiguration() = default;
31 AWS_TRANSCRIBESERVICE_API EncryptionConfiguration(Aws::Utils::Json::JsonView jsonValue);
32 AWS_TRANSCRIBESERVICE_API EncryptionConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_TRANSCRIBESERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
43 inline const Aws::Map<Aws::String, Aws::String>& GetKMSEncryptionContext() const { return m_kMSEncryptionContext; }
44 inline bool KMSEncryptionContextHasBeenSet() const { return m_kMSEncryptionContextHasBeenSet; }
45 template <typename KMSEncryptionContextT = Aws::Map<Aws::String, Aws::String>>
46 void SetKMSEncryptionContext(KMSEncryptionContextT&& value) {
47 m_kMSEncryptionContextHasBeenSet = true;
48 m_kMSEncryptionContext = std::forward<KMSEncryptionContextT>(value);
49 }
50 template <typename KMSEncryptionContextT = Aws::Map<Aws::String, Aws::String>>
51 EncryptionConfiguration& WithKMSEncryptionContext(KMSEncryptionContextT&& value) {
52 SetKMSEncryptionContext(std::forward<KMSEncryptionContextT>(value));
53 return *this;
54 }
55 template <typename KMSEncryptionContextKeyT = Aws::String, typename KMSEncryptionContextValueT = Aws::String>
56 EncryptionConfiguration& AddKMSEncryptionContext(KMSEncryptionContextKeyT&& key, KMSEncryptionContextValueT&& value) {
57 m_kMSEncryptionContextHasBeenSet = true;
58 m_kMSEncryptionContext.emplace(std::forward<KMSEncryptionContextKeyT>(key), std::forward<KMSEncryptionContextValueT>(value));
59 return *this;
60 }
62
64
74 inline const Aws::String& GetKMSKey() const { return m_kMSKey; }
75 inline bool KMSKeyHasBeenSet() const { return m_kMSKeyHasBeenSet; }
76 template <typename KMSKeyT = Aws::String>
77 void SetKMSKey(KMSKeyT&& value) {
78 m_kMSKeyHasBeenSet = true;
79 m_kMSKey = std::forward<KMSKeyT>(value);
80 }
81 template <typename KMSKeyT = Aws::String>
83 SetKMSKey(std::forward<KMSKeyT>(value));
84 return *this;
85 }
87 private:
88 Aws::Map<Aws::String, Aws::String> m_kMSEncryptionContext;
89
90 Aws::String m_kMSKey;
91 bool m_kMSEncryptionContextHasBeenSet = false;
92 bool m_kMSKeyHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace TranscribeService
97} // namespace Aws
AWS_TRANSCRIBESERVICE_API EncryptionConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_TRANSCRIBESERVICE_API EncryptionConfiguration()=default
AWS_TRANSCRIBESERVICE_API EncryptionConfiguration(Aws::Utils::Json::JsonView jsonValue)
EncryptionConfiguration & WithKMSKey(KMSKeyT &&value)
AWS_TRANSCRIBESERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
EncryptionConfiguration & AddKMSEncryptionContext(KMSEncryptionContextKeyT &&key, KMSEncryptionContextValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetKMSEncryptionContext() const
EncryptionConfiguration & WithKMSEncryptionContext(KMSEncryptionContextT &&value)
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