AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
MemberConfiguration.h
1
6#pragma once
7#include <aws/managedblockchain/ManagedBlockchain_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/managedblockchain/model/MemberFrameworkConfiguration.h>
10#include <aws/managedblockchain/model/MemberLogPublishingConfiguration.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ManagedBlockchain
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_MANAGEDBLOCKCHAIN_API MemberConfiguration() = default;
39 AWS_MANAGEDBLOCKCHAIN_API MemberConfiguration(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MANAGEDBLOCKCHAIN_API MemberConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MANAGEDBLOCKCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetName() const { return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 template<typename NameT = Aws::String>
51 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
52 template<typename NameT = Aws::String>
53 MemberConfiguration& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
64 template<typename DescriptionT = Aws::String>
65 MemberConfiguration& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
67
69
73 inline const MemberFrameworkConfiguration& GetFrameworkConfiguration() const { return m_frameworkConfiguration; }
74 inline bool FrameworkConfigurationHasBeenSet() const { return m_frameworkConfigurationHasBeenSet; }
75 template<typename FrameworkConfigurationT = MemberFrameworkConfiguration>
76 void SetFrameworkConfiguration(FrameworkConfigurationT&& value) { m_frameworkConfigurationHasBeenSet = true; m_frameworkConfiguration = std::forward<FrameworkConfigurationT>(value); }
77 template<typename FrameworkConfigurationT = MemberFrameworkConfiguration>
78 MemberConfiguration& WithFrameworkConfiguration(FrameworkConfigurationT&& value) { SetFrameworkConfiguration(std::forward<FrameworkConfigurationT>(value)); return *this;}
80
82
86 inline const MemberLogPublishingConfiguration& GetLogPublishingConfiguration() const { return m_logPublishingConfiguration; }
87 inline bool LogPublishingConfigurationHasBeenSet() const { return m_logPublishingConfigurationHasBeenSet; }
88 template<typename LogPublishingConfigurationT = MemberLogPublishingConfiguration>
89 void SetLogPublishingConfiguration(LogPublishingConfigurationT&& value) { m_logPublishingConfigurationHasBeenSet = true; m_logPublishingConfiguration = std::forward<LogPublishingConfigurationT>(value); }
90 template<typename LogPublishingConfigurationT = MemberLogPublishingConfiguration>
91 MemberConfiguration& WithLogPublishingConfiguration(LogPublishingConfigurationT&& value) { SetLogPublishingConfiguration(std::forward<LogPublishingConfigurationT>(value)); return *this;}
93
95
107 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
108 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
109 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
110 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
111 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
112 MemberConfiguration& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
113 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
114 MemberConfiguration& AddTags(TagsKeyT&& key, TagsValueT&& value) {
115 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
116 }
118
120
139 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
140 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
141 template<typename KmsKeyArnT = Aws::String>
142 void SetKmsKeyArn(KmsKeyArnT&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::forward<KmsKeyArnT>(value); }
143 template<typename KmsKeyArnT = Aws::String>
144 MemberConfiguration& WithKmsKeyArn(KmsKeyArnT&& value) { SetKmsKeyArn(std::forward<KmsKeyArnT>(value)); return *this;}
146 private:
147
148 Aws::String m_name;
149 bool m_nameHasBeenSet = false;
150
151 Aws::String m_description;
152 bool m_descriptionHasBeenSet = false;
153
154 MemberFrameworkConfiguration m_frameworkConfiguration;
155 bool m_frameworkConfigurationHasBeenSet = false;
156
157 MemberLogPublishingConfiguration m_logPublishingConfiguration;
158 bool m_logPublishingConfigurationHasBeenSet = false;
159
161 bool m_tagsHasBeenSet = false;
162
163 Aws::String m_kmsKeyArn;
164 bool m_kmsKeyArnHasBeenSet = false;
165 };
166
167} // namespace Model
168} // namespace ManagedBlockchain
169} // 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