AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
DiskEncryptionConfiguration.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/emr-serverless/EMRServerless_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace EMRServerless {
21namespace Model {
22
30 public:
31 AWS_EMRSERVERLESS_API DiskEncryptionConfiguration() = default;
34 AWS_EMRSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
42 inline const Aws::Map<Aws::String, Aws::String>& GetEncryptionContext() const { return m_encryptionContext; }
43 inline bool EncryptionContextHasBeenSet() const { return m_encryptionContextHasBeenSet; }
44 template <typename EncryptionContextT = Aws::Map<Aws::String, Aws::String>>
45 void SetEncryptionContext(EncryptionContextT&& value) {
46 m_encryptionContextHasBeenSet = true;
47 m_encryptionContext = std::forward<EncryptionContextT>(value);
48 }
49 template <typename EncryptionContextT = Aws::Map<Aws::String, Aws::String>>
51 SetEncryptionContext(std::forward<EncryptionContextT>(value));
52 return *this;
53 }
54 template <typename EncryptionContextKeyT = Aws::String, typename EncryptionContextValueT = Aws::String>
55 DiskEncryptionConfiguration& AddEncryptionContext(EncryptionContextKeyT&& key, EncryptionContextValueT&& value) {
56 m_encryptionContextHasBeenSet = true;
57 m_encryptionContext.emplace(std::forward<EncryptionContextKeyT>(key), std::forward<EncryptionContextValueT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::String& GetEncryptionKeyArn() const { return m_encryptionKeyArn; }
67 inline bool EncryptionKeyArnHasBeenSet() const { return m_encryptionKeyArnHasBeenSet; }
68 template <typename EncryptionKeyArnT = Aws::String>
69 void SetEncryptionKeyArn(EncryptionKeyArnT&& value) {
70 m_encryptionKeyArnHasBeenSet = true;
71 m_encryptionKeyArn = std::forward<EncryptionKeyArnT>(value);
72 }
73 template <typename EncryptionKeyArnT = Aws::String>
75 SetEncryptionKeyArn(std::forward<EncryptionKeyArnT>(value));
76 return *this;
77 }
79 private:
80 Aws::Map<Aws::String, Aws::String> m_encryptionContext;
81
82 Aws::String m_encryptionKeyArn;
83 bool m_encryptionContextHasBeenSet = false;
84 bool m_encryptionKeyArnHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace EMRServerless
89} // namespace Aws
AWS_EMRSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, Aws::String > & GetEncryptionContext() const
AWS_EMRSERVERLESS_API DiskEncryptionConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_EMRSERVERLESS_API DiskEncryptionConfiguration()=default
DiskEncryptionConfiguration & WithEncryptionKeyArn(EncryptionKeyArnT &&value)
DiskEncryptionConfiguration & AddEncryptionContext(EncryptionContextKeyT &&key, EncryptionContextValueT &&value)
DiskEncryptionConfiguration & WithEncryptionContext(EncryptionContextT &&value)
AWS_EMRSERVERLESS_API DiskEncryptionConfiguration(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