AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
52 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
53 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
54 inline Accessor& WithId(const Aws::String& value) { SetId(value); return *this;}
55 inline Accessor& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
56 inline Accessor& WithId(const char* value) { SetId(value); return *this;}
58
60
64 inline const AccessorType& GetType() const{ return m_type; }
65 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
66 inline void SetType(const AccessorType& value) { m_typeHasBeenSet = true; m_type = value; }
67 inline void SetType(AccessorType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
68 inline Accessor& WithType(const AccessorType& value) { SetType(value); return *this;}
69 inline Accessor& WithType(AccessorType&& value) { SetType(std::move(value)); return *this;}
71
73
78 inline const Aws::String& GetBillingToken() const{ return m_billingToken; }
79 inline bool BillingTokenHasBeenSet() const { return m_billingTokenHasBeenSet; }
80 inline void SetBillingToken(const Aws::String& value) { m_billingTokenHasBeenSet = true; m_billingToken = value; }
81 inline void SetBillingToken(Aws::String&& value) { m_billingTokenHasBeenSet = true; m_billingToken = std::move(value); }
82 inline void SetBillingToken(const char* value) { m_billingTokenHasBeenSet = true; m_billingToken.assign(value); }
83 inline Accessor& WithBillingToken(const Aws::String& value) { SetBillingToken(value); return *this;}
84 inline Accessor& WithBillingToken(Aws::String&& value) { SetBillingToken(std::move(value)); return *this;}
85 inline Accessor& WithBillingToken(const char* value) { SetBillingToken(value); return *this;}
87
89
92 inline const AccessorStatus& GetStatus() const{ return m_status; }
93 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
94 inline void SetStatus(const AccessorStatus& value) { m_statusHasBeenSet = true; m_status = value; }
95 inline void SetStatus(AccessorStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
96 inline Accessor& WithStatus(const AccessorStatus& value) { SetStatus(value); return *this;}
97 inline Accessor& WithStatus(AccessorStatus&& value) { SetStatus(std::move(value)); return *this;}
99
101
104 inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
105 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
106 inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
107 inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
108 inline Accessor& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
109 inline Accessor& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
111
113
120 inline const Aws::String& GetArn() const{ return m_arn; }
121 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
122 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
123 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
124 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
125 inline Accessor& WithArn(const Aws::String& value) { SetArn(value); return *this;}
126 inline Accessor& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
127 inline Accessor& WithArn(const char* value) { SetArn(value); return *this;}
129
131
141 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
142 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
143 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
144 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
145 inline Accessor& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
146 inline Accessor& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
147 inline Accessor& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
148 inline Accessor& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
149 inline Accessor& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
150 inline Accessor& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
151 inline Accessor& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
152 inline Accessor& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
153 inline Accessor& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
155
157
160 inline const AccessorNetworkType& GetNetworkType() const{ return m_networkType; }
161 inline bool NetworkTypeHasBeenSet() const { return m_networkTypeHasBeenSet; }
162 inline void SetNetworkType(const AccessorNetworkType& value) { m_networkTypeHasBeenSet = true; m_networkType = value; }
163 inline void SetNetworkType(AccessorNetworkType&& value) { m_networkTypeHasBeenSet = true; m_networkType = std::move(value); }
164 inline Accessor& WithNetworkType(const AccessorNetworkType& value) { SetNetworkType(value); return *this;}
165 inline Accessor& WithNetworkType(AccessorNetworkType&& value) { SetNetworkType(std::move(value)); return *this;}
167 private:
168
169 Aws::String m_id;
170 bool m_idHasBeenSet = false;
171
172 AccessorType m_type;
173 bool m_typeHasBeenSet = false;
174
175 Aws::String m_billingToken;
176 bool m_billingTokenHasBeenSet = false;
177
178 AccessorStatus m_status;
179 bool m_statusHasBeenSet = false;
180
181 Aws::Utils::DateTime m_creationDate;
182 bool m_creationDateHasBeenSet = false;
183
184 Aws::String m_arn;
185 bool m_arnHasBeenSet = false;
186
188 bool m_tagsHasBeenSet = false;
189
190 AccessorNetworkType m_networkType;
191 bool m_networkTypeHasBeenSet = false;
192 };
193
194} // namespace Model
195} // namespace ManagedBlockchain
196} // namespace Aws
void SetId(const Aws::String &value)
Definition Accessor.h:51
Accessor & WithNetworkType(const AccessorNetworkType &value)
Definition Accessor.h:164
Accessor & WithId(Aws::String &&value)
Definition Accessor.h:55
void SetCreationDate(Aws::Utils::DateTime &&value)
Definition Accessor.h:107
void SetType(const AccessorType &value)
Definition Accessor.h:66
AWS_MANAGEDBLOCKCHAIN_API Accessor()
AWS_MANAGEDBLOCKCHAIN_API Accessor & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(const AccessorStatus &value)
Definition Accessor.h:94
const Aws::String & GetBillingToken() const
Definition Accessor.h:78
Accessor & WithCreationDate(Aws::Utils::DateTime &&value)
Definition Accessor.h:109
const AccessorNetworkType & GetNetworkType() const
Definition Accessor.h:160
Accessor & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Accessor.h:145
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Accessor.h:144
Accessor & WithType(const AccessorType &value)
Definition Accessor.h:68
Accessor & WithBillingToken(const Aws::String &value)
Definition Accessor.h:83
Accessor & WithStatus(const AccessorStatus &value)
Definition Accessor.h:96
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Accessor.h:141
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Accessor.h:143
AWS_MANAGEDBLOCKCHAIN_API Accessor(Aws::Utils::Json::JsonView jsonValue)
Accessor & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Accessor.h:146
Accessor & WithCreationDate(const Aws::Utils::DateTime &value)
Definition Accessor.h:108
Accessor & AddTags(const char *key, const char *value)
Definition Accessor.h:153
void SetId(Aws::String &&value)
Definition Accessor.h:52
Accessor & AddTags(Aws::String &&key, const Aws::String &value)
Definition Accessor.h:148
const AccessorStatus & GetStatus() const
Definition Accessor.h:92
const Aws::Utils::DateTime & GetCreationDate() const
Definition Accessor.h:104
Accessor & WithId(const Aws::String &value)
Definition Accessor.h:54
Accessor & WithArn(Aws::String &&value)
Definition Accessor.h:126
Accessor & AddTags(const char *key, Aws::String &&value)
Definition Accessor.h:151
void SetBillingToken(const char *value)
Definition Accessor.h:82
void SetNetworkType(AccessorNetworkType &&value)
Definition Accessor.h:163
Accessor & AddTags(const Aws::String &key, const Aws::String &value)
Definition Accessor.h:147
void SetBillingToken(Aws::String &&value)
Definition Accessor.h:81
Accessor & AddTags(Aws::String &&key, Aws::String &&value)
Definition Accessor.h:150
AWS_MANAGEDBLOCKCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const
Accessor & WithId(const char *value)
Definition Accessor.h:56
void SetArn(const char *value)
Definition Accessor.h:124
void SetType(AccessorType &&value)
Definition Accessor.h:67
Accessor & AddTags(const Aws::String &key, Aws::String &&value)
Definition Accessor.h:149
const AccessorType & GetType() const
Definition Accessor.h:64
void SetId(const char *value)
Definition Accessor.h:53
Accessor & WithNetworkType(AccessorNetworkType &&value)
Definition Accessor.h:165
void SetArn(Aws::String &&value)
Definition Accessor.h:123
const Aws::String & GetArn() const
Definition Accessor.h:120
void SetStatus(AccessorStatus &&value)
Definition Accessor.h:95
void SetBillingToken(const Aws::String &value)
Definition Accessor.h:80
Accessor & WithArn(const char *value)
Definition Accessor.h:127
void SetArn(const Aws::String &value)
Definition Accessor.h:122
Accessor & WithArn(const Aws::String &value)
Definition Accessor.h:125
Accessor & WithStatus(AccessorStatus &&value)
Definition Accessor.h:97
Accessor & WithType(AccessorType &&value)
Definition Accessor.h:69
void SetCreationDate(const Aws::Utils::DateTime &value)
Definition Accessor.h:106
void SetNetworkType(const AccessorNetworkType &value)
Definition Accessor.h:162
Accessor & AddTags(Aws::String &&key, const char *value)
Definition Accessor.h:152
const Aws::String & GetId() const
Definition Accessor.h:49
Accessor & WithBillingToken(Aws::String &&value)
Definition Accessor.h:84
Accessor & WithBillingToken(const char *value)
Definition Accessor.h:85
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