AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
MemberConfiguration.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/managedblockchain/ManagedBlockchain_EXPORTS.h>
10#include <aws/managedblockchain/model/MemberFrameworkConfiguration.h>
11#include <aws/managedblockchain/model/MemberLogPublishingConfiguration.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ManagedBlockchain {
23namespace Model {
24
32 public:
33 AWS_MANAGEDBLOCKCHAIN_API MemberConfiguration() = default;
34 AWS_MANAGEDBLOCKCHAIN_API MemberConfiguration(Aws::Utils::Json::JsonView jsonValue);
35 AWS_MANAGEDBLOCKCHAIN_API MemberConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_MANAGEDBLOCKCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
50 MemberConfiguration& WithName(NameT&& value) {
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetDescription() const { return m_description; }
61 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
62 template <typename DescriptionT = Aws::String>
63 void SetDescription(DescriptionT&& value) {
64 m_descriptionHasBeenSet = true;
65 m_description = std::forward<DescriptionT>(value);
66 }
67 template <typename DescriptionT = Aws::String>
68 MemberConfiguration& WithDescription(DescriptionT&& value) {
69 SetDescription(std::forward<DescriptionT>(value));
70 return *this;
71 }
73
75
79 inline const MemberFrameworkConfiguration& GetFrameworkConfiguration() const { return m_frameworkConfiguration; }
80 inline bool FrameworkConfigurationHasBeenSet() const { return m_frameworkConfigurationHasBeenSet; }
81 template <typename FrameworkConfigurationT = MemberFrameworkConfiguration>
82 void SetFrameworkConfiguration(FrameworkConfigurationT&& value) {
83 m_frameworkConfigurationHasBeenSet = true;
84 m_frameworkConfiguration = std::forward<FrameworkConfigurationT>(value);
85 }
86 template <typename FrameworkConfigurationT = MemberFrameworkConfiguration>
87 MemberConfiguration& WithFrameworkConfiguration(FrameworkConfigurationT&& value) {
88 SetFrameworkConfiguration(std::forward<FrameworkConfigurationT>(value));
89 return *this;
90 }
92
94
98 inline const MemberLogPublishingConfiguration& GetLogPublishingConfiguration() const { return m_logPublishingConfiguration; }
99 inline bool LogPublishingConfigurationHasBeenSet() const { return m_logPublishingConfigurationHasBeenSet; }
100 template <typename LogPublishingConfigurationT = MemberLogPublishingConfiguration>
101 void SetLogPublishingConfiguration(LogPublishingConfigurationT&& value) {
102 m_logPublishingConfigurationHasBeenSet = true;
103 m_logPublishingConfiguration = std::forward<LogPublishingConfigurationT>(value);
104 }
105 template <typename LogPublishingConfigurationT = MemberLogPublishingConfiguration>
106 MemberConfiguration& WithLogPublishingConfiguration(LogPublishingConfigurationT&& value) {
107 SetLogPublishingConfiguration(std::forward<LogPublishingConfigurationT>(value));
108 return *this;
109 }
111
113
125 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
126 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
127 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
128 void SetTags(TagsT&& value) {
129 m_tagsHasBeenSet = true;
130 m_tags = std::forward<TagsT>(value);
131 }
132 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
134 SetTags(std::forward<TagsT>(value));
135 return *this;
136 }
137 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
138 MemberConfiguration& AddTags(TagsKeyT&& key, TagsValueT&& value) {
139 m_tagsHasBeenSet = true;
140 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
141 return *this;
142 }
144
146
165 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
166 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
167 template <typename KmsKeyArnT = Aws::String>
168 void SetKmsKeyArn(KmsKeyArnT&& value) {
169 m_kmsKeyArnHasBeenSet = true;
170 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
171 }
172 template <typename KmsKeyArnT = Aws::String>
173 MemberConfiguration& WithKmsKeyArn(KmsKeyArnT&& value) {
174 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
175 return *this;
176 }
178 private:
179 Aws::String m_name;
180
181 Aws::String m_description;
182
183 MemberFrameworkConfiguration m_frameworkConfiguration;
184
185 MemberLogPublishingConfiguration m_logPublishingConfiguration;
186
188
189 Aws::String m_kmsKeyArn;
190 bool m_nameHasBeenSet = false;
191 bool m_descriptionHasBeenSet = false;
192 bool m_frameworkConfigurationHasBeenSet = false;
193 bool m_logPublishingConfigurationHasBeenSet = false;
194 bool m_tagsHasBeenSet = false;
195 bool m_kmsKeyArnHasBeenSet = false;
196};
197
198} // namespace Model
199} // namespace ManagedBlockchain
200} // namespace Aws
MemberConfiguration & WithName(NameT &&value)
const MemberFrameworkConfiguration & GetFrameworkConfiguration() const
MemberConfiguration & WithDescription(DescriptionT &&value)
const MemberLogPublishingConfiguration & GetLogPublishingConfiguration() const
MemberConfiguration & WithLogPublishingConfiguration(LogPublishingConfigurationT &&value)
AWS_MANAGEDBLOCKCHAIN_API MemberConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_MANAGEDBLOCKCHAIN_API MemberConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MANAGEDBLOCKCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLogPublishingConfiguration(LogPublishingConfigurationT &&value)
MemberConfiguration & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetFrameworkConfiguration(FrameworkConfigurationT &&value)
MemberConfiguration & WithKmsKeyArn(KmsKeyArnT &&value)
AWS_MANAGEDBLOCKCHAIN_API MemberConfiguration()=default
MemberConfiguration & WithFrameworkConfiguration(FrameworkConfigurationT &&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