AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Accessor.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/AccessorType.h>
10#include <aws/managedblockchain/model/AccessorStatus.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/managedblockchain/model/AccessorNetworkType.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace ManagedBlockchain
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_MANAGEDBLOCKCHAIN_API Accessor() = default;
40 AWS_MANAGEDBLOCKCHAIN_API Accessor(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MANAGEDBLOCKCHAIN_API Accessor& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_MANAGEDBLOCKCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetId() const { return m_id; }
50 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
51 template<typename IdT = Aws::String>
52 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
53 template<typename IdT = Aws::String>
54 Accessor& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
56
58
62 inline AccessorType GetType() const { return m_type; }
63 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
64 inline void SetType(AccessorType value) { m_typeHasBeenSet = true; m_type = value; }
65 inline Accessor& WithType(AccessorType value) { SetType(value); return *this;}
67
69
74 inline const Aws::String& GetBillingToken() const { return m_billingToken; }
75 inline bool BillingTokenHasBeenSet() const { return m_billingTokenHasBeenSet; }
76 template<typename BillingTokenT = Aws::String>
77 void SetBillingToken(BillingTokenT&& value) { m_billingTokenHasBeenSet = true; m_billingToken = std::forward<BillingTokenT>(value); }
78 template<typename BillingTokenT = Aws::String>
79 Accessor& WithBillingToken(BillingTokenT&& value) { SetBillingToken(std::forward<BillingTokenT>(value)); return *this;}
81
83
86 inline AccessorStatus GetStatus() const { return m_status; }
87 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
88 inline void SetStatus(AccessorStatus value) { m_statusHasBeenSet = true; m_status = value; }
89 inline Accessor& WithStatus(AccessorStatus value) { SetStatus(value); return *this;}
91
93
96 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
97 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
98 template<typename CreationDateT = Aws::Utils::DateTime>
99 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
100 template<typename CreationDateT = Aws::Utils::DateTime>
101 Accessor& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
103
105
112 inline const Aws::String& GetArn() const { return m_arn; }
113 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
114 template<typename ArnT = Aws::String>
115 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
116 template<typename ArnT = Aws::String>
117 Accessor& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
119
121
131 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
132 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
133 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
134 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
135 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
136 Accessor& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
137 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
138 Accessor& AddTags(TagsKeyT&& key, TagsValueT&& value) {
139 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
140 }
142
144
147 inline AccessorNetworkType GetNetworkType() const { return m_networkType; }
148 inline bool NetworkTypeHasBeenSet() const { return m_networkTypeHasBeenSet; }
149 inline void SetNetworkType(AccessorNetworkType value) { m_networkTypeHasBeenSet = true; m_networkType = value; }
150 inline Accessor& WithNetworkType(AccessorNetworkType value) { SetNetworkType(value); return *this;}
152 private:
153
154 Aws::String m_id;
155 bool m_idHasBeenSet = false;
156
158 bool m_typeHasBeenSet = false;
159
160 Aws::String m_billingToken;
161 bool m_billingTokenHasBeenSet = false;
162
164 bool m_statusHasBeenSet = false;
165
166 Aws::Utils::DateTime m_creationDate{};
167 bool m_creationDateHasBeenSet = false;
168
169 Aws::String m_arn;
170 bool m_arnHasBeenSet = false;
171
173 bool m_tagsHasBeenSet = false;
174
176 bool m_networkTypeHasBeenSet = false;
177 };
178
179} // namespace Model
180} // namespace ManagedBlockchain
181} // namespace Aws
Accessor & WithStatus(AccessorStatus value)
Definition Accessor.h:89
Accessor & WithCreationDate(CreationDateT &&value)
Definition Accessor.h:101
void SetStatus(AccessorStatus value)
Definition Accessor.h:88
Accessor & WithNetworkType(AccessorNetworkType value)
Definition Accessor.h:150
AWS_MANAGEDBLOCKCHAIN_API Accessor & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetBillingToken() const
Definition Accessor.h:74
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Accessor.h:131
Accessor & WithBillingToken(BillingTokenT &&value)
Definition Accessor.h:79
AWS_MANAGEDBLOCKCHAIN_API Accessor(Aws::Utils::Json::JsonView jsonValue)
Accessor & WithType(AccessorType value)
Definition Accessor.h:65
Accessor & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Accessor.h:138
const Aws::Utils::DateTime & GetCreationDate() const
Definition Accessor.h:96
Accessor & WithArn(ArnT &&value)
Definition Accessor.h:117
void SetType(AccessorType value)
Definition Accessor.h:64
void SetCreationDate(CreationDateT &&value)
Definition Accessor.h:99
AWS_MANAGEDBLOCKCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const
void SetBillingToken(BillingTokenT &&value)
Definition Accessor.h:77
AWS_MANAGEDBLOCKCHAIN_API Accessor()=default
const Aws::String & GetArn() const
Definition Accessor.h:112
Accessor & WithId(IdT &&value)
Definition Accessor.h:54
Accessor & WithTags(TagsT &&value)
Definition Accessor.h:136
AccessorNetworkType GetNetworkType() const
Definition Accessor.h:147
void SetNetworkType(AccessorNetworkType value)
Definition Accessor.h:149
const Aws::String & GetId() const
Definition Accessor.h:49
AccessorStatus GetStatus() const
Definition Accessor.h:86
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