AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Accessor.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/managedblockchain/ManagedBlockchain_EXPORTS.h>
11#include <aws/managedblockchain/model/AccessorNetworkType.h>
12#include <aws/managedblockchain/model/AccessorStatus.h>
13#include <aws/managedblockchain/model/AccessorType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ManagedBlockchain {
25namespace Model {
26
32class Accessor {
33 public:
34 AWS_MANAGEDBLOCKCHAIN_API Accessor() = default;
35 AWS_MANAGEDBLOCKCHAIN_API Accessor(Aws::Utils::Json::JsonView jsonValue);
36 AWS_MANAGEDBLOCKCHAIN_API Accessor& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_MANAGEDBLOCKCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetId() const { return m_id; }
44 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
45 template <typename IdT = Aws::String>
46 void SetId(IdT&& value) {
47 m_idHasBeenSet = true;
48 m_id = std::forward<IdT>(value);
49 }
50 template <typename IdT = Aws::String>
51 Accessor& WithId(IdT&& value) {
52 SetId(std::forward<IdT>(value));
53 return *this;
54 }
56
58
62 inline AccessorType GetType() const { return m_type; }
63 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
64 inline void SetType(AccessorType value) {
65 m_typeHasBeenSet = true;
66 m_type = value;
67 }
69 SetType(value);
70 return *this;
71 }
73
75
80 inline const Aws::String& GetBillingToken() const { return m_billingToken; }
81 inline bool BillingTokenHasBeenSet() const { return m_billingTokenHasBeenSet; }
82 template <typename BillingTokenT = Aws::String>
83 void SetBillingToken(BillingTokenT&& value) {
84 m_billingTokenHasBeenSet = true;
85 m_billingToken = std::forward<BillingTokenT>(value);
86 }
87 template <typename BillingTokenT = Aws::String>
88 Accessor& WithBillingToken(BillingTokenT&& value) {
89 SetBillingToken(std::forward<BillingTokenT>(value));
90 return *this;
91 }
93
95
98 inline AccessorStatus GetStatus() const { return m_status; }
99 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
100 inline void SetStatus(AccessorStatus value) {
101 m_statusHasBeenSet = true;
102 m_status = value;
103 }
105 SetStatus(value);
106 return *this;
107 }
109
111
114 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
115 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
116 template <typename CreationDateT = Aws::Utils::DateTime>
117 void SetCreationDate(CreationDateT&& value) {
118 m_creationDateHasBeenSet = true;
119 m_creationDate = std::forward<CreationDateT>(value);
120 }
121 template <typename CreationDateT = Aws::Utils::DateTime>
122 Accessor& WithCreationDate(CreationDateT&& value) {
123 SetCreationDate(std::forward<CreationDateT>(value));
124 return *this;
125 }
127
129
136 inline const Aws::String& GetArn() const { return m_arn; }
137 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
138 template <typename ArnT = Aws::String>
139 void SetArn(ArnT&& value) {
140 m_arnHasBeenSet = true;
141 m_arn = std::forward<ArnT>(value);
142 }
143 template <typename ArnT = Aws::String>
144 Accessor& WithArn(ArnT&& value) {
145 SetArn(std::forward<ArnT>(value));
146 return *this;
147 }
149
151
161 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
162 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
163 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
164 void SetTags(TagsT&& value) {
165 m_tagsHasBeenSet = true;
166 m_tags = std::forward<TagsT>(value);
167 }
168 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
169 Accessor& WithTags(TagsT&& value) {
170 SetTags(std::forward<TagsT>(value));
171 return *this;
172 }
173 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
174 Accessor& AddTags(TagsKeyT&& key, TagsValueT&& value) {
175 m_tagsHasBeenSet = true;
176 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
177 return *this;
178 }
180
182
185 inline AccessorNetworkType GetNetworkType() const { return m_networkType; }
186 inline bool NetworkTypeHasBeenSet() const { return m_networkTypeHasBeenSet; }
188 m_networkTypeHasBeenSet = true;
189 m_networkType = value;
190 }
192 SetNetworkType(value);
193 return *this;
194 }
196 private:
197 Aws::String m_id;
198
200
201 Aws::String m_billingToken;
202
204
205 Aws::Utils::DateTime m_creationDate{};
206
207 Aws::String m_arn;
208
210
212 bool m_idHasBeenSet = false;
213 bool m_typeHasBeenSet = false;
214 bool m_billingTokenHasBeenSet = false;
215 bool m_statusHasBeenSet = false;
216 bool m_creationDateHasBeenSet = false;
217 bool m_arnHasBeenSet = false;
218 bool m_tagsHasBeenSet = false;
219 bool m_networkTypeHasBeenSet = false;
220};
221
222} // namespace Model
223} // namespace ManagedBlockchain
224} // namespace Aws
Accessor & WithStatus(AccessorStatus value)
Definition Accessor.h:104
Accessor & WithCreationDate(CreationDateT &&value)
Definition Accessor.h:122
void SetStatus(AccessorStatus value)
Definition Accessor.h:100
Accessor & WithNetworkType(AccessorNetworkType value)
Definition Accessor.h:191
AWS_MANAGEDBLOCKCHAIN_API Accessor & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetBillingToken() const
Definition Accessor.h:80
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Accessor.h:161
Accessor & WithBillingToken(BillingTokenT &&value)
Definition Accessor.h:88
AWS_MANAGEDBLOCKCHAIN_API Accessor(Aws::Utils::Json::JsonView jsonValue)
Accessor & WithType(AccessorType value)
Definition Accessor.h:68
Accessor & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Accessor.h:174
const Aws::Utils::DateTime & GetCreationDate() const
Definition Accessor.h:114
Accessor & WithArn(ArnT &&value)
Definition Accessor.h:144
void SetType(AccessorType value)
Definition Accessor.h:64
void SetCreationDate(CreationDateT &&value)
Definition Accessor.h:117
AWS_MANAGEDBLOCKCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const
void SetBillingToken(BillingTokenT &&value)
Definition Accessor.h:83
AWS_MANAGEDBLOCKCHAIN_API Accessor()=default
const Aws::String & GetArn() const
Definition Accessor.h:136
Accessor & WithId(IdT &&value)
Definition Accessor.h:51
Accessor & WithTags(TagsT &&value)
Definition Accessor.h:169
AccessorNetworkType GetNetworkType() const
Definition Accessor.h:185
void SetNetworkType(AccessorNetworkType value)
Definition Accessor.h:187
const Aws::String & GetId() const
Definition Accessor.h:43
AccessorStatus GetStatus() const
Definition Accessor.h:98
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