AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
NetworkSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/managedblockchain/ManagedBlockchain_EXPORTS.h>
10#include <aws/managedblockchain/model/Framework.h>
11#include <aws/managedblockchain/model/NetworkStatus.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
31 public:
32 AWS_MANAGEDBLOCKCHAIN_API NetworkSummary() = default;
33 AWS_MANAGEDBLOCKCHAIN_API NetworkSummary(Aws::Utils::Json::JsonView jsonValue);
34 AWS_MANAGEDBLOCKCHAIN_API NetworkSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_MANAGEDBLOCKCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetId() const { return m_id; }
42 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
43 template <typename IdT = Aws::String>
44 void SetId(IdT&& value) {
45 m_idHasBeenSet = true;
46 m_id = std::forward<IdT>(value);
47 }
48 template <typename IdT = Aws::String>
49 NetworkSummary& WithId(IdT&& value) {
50 SetId(std::forward<IdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
67 NetworkSummary& WithName(NameT&& value) {
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetDescription() const { return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 template <typename DescriptionT = Aws::String>
80 void SetDescription(DescriptionT&& value) {
81 m_descriptionHasBeenSet = true;
82 m_description = std::forward<DescriptionT>(value);
83 }
84 template <typename DescriptionT = Aws::String>
85 NetworkSummary& WithDescription(DescriptionT&& value) {
86 SetDescription(std::forward<DescriptionT>(value));
87 return *this;
88 }
90
92
95 inline Framework GetFramework() const { return m_framework; }
96 inline bool FrameworkHasBeenSet() const { return m_frameworkHasBeenSet; }
97 inline void SetFramework(Framework value) {
98 m_frameworkHasBeenSet = true;
99 m_framework = value;
100 }
102 SetFramework(value);
103 return *this;
104 }
106
108
111 inline const Aws::String& GetFrameworkVersion() const { return m_frameworkVersion; }
112 inline bool FrameworkVersionHasBeenSet() const { return m_frameworkVersionHasBeenSet; }
113 template <typename FrameworkVersionT = Aws::String>
114 void SetFrameworkVersion(FrameworkVersionT&& value) {
115 m_frameworkVersionHasBeenSet = true;
116 m_frameworkVersion = std::forward<FrameworkVersionT>(value);
117 }
118 template <typename FrameworkVersionT = Aws::String>
119 NetworkSummary& WithFrameworkVersion(FrameworkVersionT&& value) {
120 SetFrameworkVersion(std::forward<FrameworkVersionT>(value));
121 return *this;
122 }
124
126
129 inline NetworkStatus GetStatus() const { return m_status; }
130 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
131 inline void SetStatus(NetworkStatus value) {
132 m_statusHasBeenSet = true;
133 m_status = value;
134 }
136 SetStatus(value);
137 return *this;
138 }
140
142
145 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
146 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
147 template <typename CreationDateT = Aws::Utils::DateTime>
148 void SetCreationDate(CreationDateT&& value) {
149 m_creationDateHasBeenSet = true;
150 m_creationDate = std::forward<CreationDateT>(value);
151 }
152 template <typename CreationDateT = Aws::Utils::DateTime>
153 NetworkSummary& WithCreationDate(CreationDateT&& value) {
154 SetCreationDate(std::forward<CreationDateT>(value));
155 return *this;
156 }
158
160
167 inline const Aws::String& GetArn() const { return m_arn; }
168 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
169 template <typename ArnT = Aws::String>
170 void SetArn(ArnT&& value) {
171 m_arnHasBeenSet = true;
172 m_arn = std::forward<ArnT>(value);
173 }
174 template <typename ArnT = Aws::String>
175 NetworkSummary& WithArn(ArnT&& value) {
176 SetArn(std::forward<ArnT>(value));
177 return *this;
178 }
180 private:
181 Aws::String m_id;
182
183 Aws::String m_name;
184
185 Aws::String m_description;
186
187 Framework m_framework{Framework::NOT_SET};
188
189 Aws::String m_frameworkVersion;
190
192
193 Aws::Utils::DateTime m_creationDate{};
194
195 Aws::String m_arn;
196 bool m_idHasBeenSet = false;
197 bool m_nameHasBeenSet = false;
198 bool m_descriptionHasBeenSet = false;
199 bool m_frameworkHasBeenSet = false;
200 bool m_frameworkVersionHasBeenSet = false;
201 bool m_statusHasBeenSet = false;
202 bool m_creationDateHasBeenSet = false;
203 bool m_arnHasBeenSet = false;
204};
205
206} // namespace Model
207} // namespace ManagedBlockchain
208} // namespace Aws
NetworkSummary & WithDescription(DescriptionT &&value)
AWS_MANAGEDBLOCKCHAIN_API NetworkSummary()=default
const Aws::Utils::DateTime & GetCreationDate() const
AWS_MANAGEDBLOCKCHAIN_API NetworkSummary(Aws::Utils::Json::JsonView jsonValue)
NetworkSummary & WithFramework(Framework value)
NetworkSummary & WithName(NameT &&value)
NetworkSummary & WithFrameworkVersion(FrameworkVersionT &&value)
NetworkSummary & WithStatus(NetworkStatus value)
AWS_MANAGEDBLOCKCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const
void SetFrameworkVersion(FrameworkVersionT &&value)
NetworkSummary & WithCreationDate(CreationDateT &&value)
AWS_MANAGEDBLOCKCHAIN_API NetworkSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetFrameworkVersion() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue