AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
EncryptionConfiguration.h
1
6#pragma once
7#include <aws/bedrock-data-automation/BedrockDataAutomation_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BedrockDataAutomation {
21namespace Model {
22
29 public:
30 AWS_BEDROCKDATAAUTOMATION_API EncryptionConfiguration() = default;
31 AWS_BEDROCKDATAAUTOMATION_API EncryptionConfiguration(Aws::Utils::Json::JsonView jsonValue);
32 AWS_BEDROCKDATAAUTOMATION_API EncryptionConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_BEDROCKDATAAUTOMATION_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
37 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
38 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
39 template <typename KmsKeyIdT = Aws::String>
40 void SetKmsKeyId(KmsKeyIdT&& value) {
41 m_kmsKeyIdHasBeenSet = true;
42 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
43 }
44 template <typename KmsKeyIdT = Aws::String>
46 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
47 return *this;
48 }
50
52
53 inline const Aws::Map<Aws::String, Aws::String>& GetKmsEncryptionContext() const { return m_kmsEncryptionContext; }
54 inline bool KmsEncryptionContextHasBeenSet() const { return m_kmsEncryptionContextHasBeenSet; }
55 template <typename KmsEncryptionContextT = Aws::Map<Aws::String, Aws::String>>
56 void SetKmsEncryptionContext(KmsEncryptionContextT&& value) {
57 m_kmsEncryptionContextHasBeenSet = true;
58 m_kmsEncryptionContext = std::forward<KmsEncryptionContextT>(value);
59 }
60 template <typename KmsEncryptionContextT = Aws::Map<Aws::String, Aws::String>>
61 EncryptionConfiguration& WithKmsEncryptionContext(KmsEncryptionContextT&& value) {
62 SetKmsEncryptionContext(std::forward<KmsEncryptionContextT>(value));
63 return *this;
64 }
65 template <typename KmsEncryptionContextKeyT = Aws::String, typename KmsEncryptionContextValueT = Aws::String>
66 EncryptionConfiguration& AddKmsEncryptionContext(KmsEncryptionContextKeyT&& key, KmsEncryptionContextValueT&& value) {
67 m_kmsEncryptionContextHasBeenSet = true;
68 m_kmsEncryptionContext.emplace(std::forward<KmsEncryptionContextKeyT>(key), std::forward<KmsEncryptionContextValueT>(value));
69 return *this;
70 }
72 private:
73 Aws::String m_kmsKeyId;
74
75 Aws::Map<Aws::String, Aws::String> m_kmsEncryptionContext;
76 bool m_kmsKeyIdHasBeenSet = false;
77 bool m_kmsEncryptionContextHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace BedrockDataAutomation
82} // namespace Aws
AWS_BEDROCKDATAAUTOMATION_API Aws::Utils::Json::JsonValue Jsonize() const
EncryptionConfiguration & WithKmsEncryptionContext(KmsEncryptionContextT &&value)
EncryptionConfiguration & WithKmsKeyId(KmsKeyIdT &&value)
AWS_BEDROCKDATAAUTOMATION_API EncryptionConfiguration()=default
const Aws::Map< Aws::String, Aws::String > & GetKmsEncryptionContext() const
EncryptionConfiguration & AddKmsEncryptionContext(KmsEncryptionContextKeyT &&key, KmsEncryptionContextValueT &&value)
AWS_BEDROCKDATAAUTOMATION_API EncryptionConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKDATAAUTOMATION_API EncryptionConfiguration(Aws::Utils::Json::JsonView jsonValue)
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