AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Proposal.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/ProposalActions.h>
10#include <aws/managedblockchain/model/ProposalStatus.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace ManagedBlockchain
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_MANAGEDBLOCKCHAIN_API Proposal();
40 AWS_MANAGEDBLOCKCHAIN_API Proposal(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MANAGEDBLOCKCHAIN_API Proposal& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_MANAGEDBLOCKCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetProposalId() const{ return m_proposalId; }
50 inline bool ProposalIdHasBeenSet() const { return m_proposalIdHasBeenSet; }
51 inline void SetProposalId(const Aws::String& value) { m_proposalIdHasBeenSet = true; m_proposalId = value; }
52 inline void SetProposalId(Aws::String&& value) { m_proposalIdHasBeenSet = true; m_proposalId = std::move(value); }
53 inline void SetProposalId(const char* value) { m_proposalIdHasBeenSet = true; m_proposalId.assign(value); }
54 inline Proposal& WithProposalId(const Aws::String& value) { SetProposalId(value); return *this;}
55 inline Proposal& WithProposalId(Aws::String&& value) { SetProposalId(std::move(value)); return *this;}
56 inline Proposal& WithProposalId(const char* value) { SetProposalId(value); return *this;}
58
60
63 inline const Aws::String& GetNetworkId() const{ return m_networkId; }
64 inline bool NetworkIdHasBeenSet() const { return m_networkIdHasBeenSet; }
65 inline void SetNetworkId(const Aws::String& value) { m_networkIdHasBeenSet = true; m_networkId = value; }
66 inline void SetNetworkId(Aws::String&& value) { m_networkIdHasBeenSet = true; m_networkId = std::move(value); }
67 inline void SetNetworkId(const char* value) { m_networkIdHasBeenSet = true; m_networkId.assign(value); }
68 inline Proposal& WithNetworkId(const Aws::String& value) { SetNetworkId(value); return *this;}
69 inline Proposal& WithNetworkId(Aws::String&& value) { SetNetworkId(std::move(value)); return *this;}
70 inline Proposal& WithNetworkId(const char* value) { SetNetworkId(value); return *this;}
72
74
77 inline const Aws::String& GetDescription() const{ return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
80 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
81 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
82 inline Proposal& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
83 inline Proposal& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
84 inline Proposal& WithDescription(const char* value) { SetDescription(value); return *this;}
86
88
92 inline const ProposalActions& GetActions() const{ return m_actions; }
93 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
94 inline void SetActions(const ProposalActions& value) { m_actionsHasBeenSet = true; m_actions = value; }
95 inline void SetActions(ProposalActions&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
96 inline Proposal& WithActions(const ProposalActions& value) { SetActions(value); return *this;}
97 inline Proposal& WithActions(ProposalActions&& value) { SetActions(std::move(value)); return *this;}
99
101
104 inline const Aws::String& GetProposedByMemberId() const{ return m_proposedByMemberId; }
105 inline bool ProposedByMemberIdHasBeenSet() const { return m_proposedByMemberIdHasBeenSet; }
106 inline void SetProposedByMemberId(const Aws::String& value) { m_proposedByMemberIdHasBeenSet = true; m_proposedByMemberId = value; }
107 inline void SetProposedByMemberId(Aws::String&& value) { m_proposedByMemberIdHasBeenSet = true; m_proposedByMemberId = std::move(value); }
108 inline void SetProposedByMemberId(const char* value) { m_proposedByMemberIdHasBeenSet = true; m_proposedByMemberId.assign(value); }
109 inline Proposal& WithProposedByMemberId(const Aws::String& value) { SetProposedByMemberId(value); return *this;}
110 inline Proposal& WithProposedByMemberId(Aws::String&& value) { SetProposedByMemberId(std::move(value)); return *this;}
111 inline Proposal& WithProposedByMemberId(const char* value) { SetProposedByMemberId(value); return *this;}
113
115
118 inline const Aws::String& GetProposedByMemberName() const{ return m_proposedByMemberName; }
119 inline bool ProposedByMemberNameHasBeenSet() const { return m_proposedByMemberNameHasBeenSet; }
120 inline void SetProposedByMemberName(const Aws::String& value) { m_proposedByMemberNameHasBeenSet = true; m_proposedByMemberName = value; }
121 inline void SetProposedByMemberName(Aws::String&& value) { m_proposedByMemberNameHasBeenSet = true; m_proposedByMemberName = std::move(value); }
122 inline void SetProposedByMemberName(const char* value) { m_proposedByMemberNameHasBeenSet = true; m_proposedByMemberName.assign(value); }
123 inline Proposal& WithProposedByMemberName(const Aws::String& value) { SetProposedByMemberName(value); return *this;}
124 inline Proposal& WithProposedByMemberName(Aws::String&& value) { SetProposedByMemberName(std::move(value)); return *this;}
125 inline Proposal& WithProposedByMemberName(const char* value) { SetProposedByMemberName(value); return *this;}
127
129
148 inline const ProposalStatus& GetStatus() const{ return m_status; }
149 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
150 inline void SetStatus(const ProposalStatus& value) { m_statusHasBeenSet = true; m_status = value; }
151 inline void SetStatus(ProposalStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
152 inline Proposal& WithStatus(const ProposalStatus& value) { SetStatus(value); return *this;}
153 inline Proposal& WithStatus(ProposalStatus&& value) { SetStatus(std::move(value)); return *this;}
155
157
160 inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
161 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
162 inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
163 inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
164 inline Proposal& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
165 inline Proposal& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
167
169
177 inline const Aws::Utils::DateTime& GetExpirationDate() const{ return m_expirationDate; }
178 inline bool ExpirationDateHasBeenSet() const { return m_expirationDateHasBeenSet; }
179 inline void SetExpirationDate(const Aws::Utils::DateTime& value) { m_expirationDateHasBeenSet = true; m_expirationDate = value; }
180 inline void SetExpirationDate(Aws::Utils::DateTime&& value) { m_expirationDateHasBeenSet = true; m_expirationDate = std::move(value); }
181 inline Proposal& WithExpirationDate(const Aws::Utils::DateTime& value) { SetExpirationDate(value); return *this;}
182 inline Proposal& WithExpirationDate(Aws::Utils::DateTime&& value) { SetExpirationDate(std::move(value)); return *this;}
184
186
190 inline int GetYesVoteCount() const{ return m_yesVoteCount; }
191 inline bool YesVoteCountHasBeenSet() const { return m_yesVoteCountHasBeenSet; }
192 inline void SetYesVoteCount(int value) { m_yesVoteCountHasBeenSet = true; m_yesVoteCount = value; }
193 inline Proposal& WithYesVoteCount(int value) { SetYesVoteCount(value); return *this;}
195
197
201 inline int GetNoVoteCount() const{ return m_noVoteCount; }
202 inline bool NoVoteCountHasBeenSet() const { return m_noVoteCountHasBeenSet; }
203 inline void SetNoVoteCount(int value) { m_noVoteCountHasBeenSet = true; m_noVoteCount = value; }
204 inline Proposal& WithNoVoteCount(int value) { SetNoVoteCount(value); return *this;}
206
208
213 inline int GetOutstandingVoteCount() const{ return m_outstandingVoteCount; }
214 inline bool OutstandingVoteCountHasBeenSet() const { return m_outstandingVoteCountHasBeenSet; }
215 inline void SetOutstandingVoteCount(int value) { m_outstandingVoteCountHasBeenSet = true; m_outstandingVoteCount = value; }
216 inline Proposal& WithOutstandingVoteCount(int value) { SetOutstandingVoteCount(value); return *this;}
218
220
230 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
231 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
232 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
233 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
234 inline Proposal& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
235 inline Proposal& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
236 inline Proposal& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
237 inline Proposal& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
238 inline Proposal& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
239 inline Proposal& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
240 inline Proposal& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
241 inline Proposal& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
242 inline Proposal& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
244
246
253 inline const Aws::String& GetArn() const{ return m_arn; }
254 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
255 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
256 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
257 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
258 inline Proposal& WithArn(const Aws::String& value) { SetArn(value); return *this;}
259 inline Proposal& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
260 inline Proposal& WithArn(const char* value) { SetArn(value); return *this;}
262 private:
263
264 Aws::String m_proposalId;
265 bool m_proposalIdHasBeenSet = false;
266
267 Aws::String m_networkId;
268 bool m_networkIdHasBeenSet = false;
269
270 Aws::String m_description;
271 bool m_descriptionHasBeenSet = false;
272
273 ProposalActions m_actions;
274 bool m_actionsHasBeenSet = false;
275
276 Aws::String m_proposedByMemberId;
277 bool m_proposedByMemberIdHasBeenSet = false;
278
279 Aws::String m_proposedByMemberName;
280 bool m_proposedByMemberNameHasBeenSet = false;
281
282 ProposalStatus m_status;
283 bool m_statusHasBeenSet = false;
284
285 Aws::Utils::DateTime m_creationDate;
286 bool m_creationDateHasBeenSet = false;
287
288 Aws::Utils::DateTime m_expirationDate;
289 bool m_expirationDateHasBeenSet = false;
290
291 int m_yesVoteCount;
292 bool m_yesVoteCountHasBeenSet = false;
293
294 int m_noVoteCount;
295 bool m_noVoteCountHasBeenSet = false;
296
297 int m_outstandingVoteCount;
298 bool m_outstandingVoteCountHasBeenSet = false;
299
301 bool m_tagsHasBeenSet = false;
302
303 Aws::String m_arn;
304 bool m_arnHasBeenSet = false;
305 };
306
307} // namespace Model
308} // namespace ManagedBlockchain
309} // namespace Aws
const Aws::String & GetProposalId() const
Definition Proposal.h:49
Proposal & AddTags(const char *key, Aws::String &&value)
Definition Proposal.h:240
Proposal & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Proposal.h:234
Proposal & AddTags(const Aws::String &key, const Aws::String &value)
Definition Proposal.h:236
void SetProposedByMemberId(Aws::String &&value)
Definition Proposal.h:107
Proposal & WithNetworkId(const Aws::String &value)
Definition Proposal.h:68
Proposal & WithNoVoteCount(int value)
Definition Proposal.h:204
void SetActions(const ProposalActions &value)
Definition Proposal.h:94
Proposal & WithCreationDate(const Aws::Utils::DateTime &value)
Definition Proposal.h:164
const Aws::String & GetDescription() const
Definition Proposal.h:77
Proposal & WithNetworkId(const char *value)
Definition Proposal.h:70
Proposal & WithCreationDate(Aws::Utils::DateTime &&value)
Definition Proposal.h:165
Proposal & WithExpirationDate(const Aws::Utils::DateTime &value)
Definition Proposal.h:181
const Aws::String & GetNetworkId() const
Definition Proposal.h:63
Proposal & WithExpirationDate(Aws::Utils::DateTime &&value)
Definition Proposal.h:182
void SetNetworkId(const Aws::String &value)
Definition Proposal.h:65
Proposal & AddTags(const Aws::String &key, Aws::String &&value)
Definition Proposal.h:238
void SetExpirationDate(const Aws::Utils::DateTime &value)
Definition Proposal.h:179
Proposal & WithProposalId(Aws::String &&value)
Definition Proposal.h:55
void SetProposedByMemberName(const char *value)
Definition Proposal.h:122
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Proposal.h:233
Proposal & WithProposedByMemberName(const Aws::String &value)
Definition Proposal.h:123
Proposal & WithDescription(const char *value)
Definition Proposal.h:84
Proposal & WithProposalId(const Aws::String &value)
Definition Proposal.h:54
void SetExpirationDate(Aws::Utils::DateTime &&value)
Definition Proposal.h:180
const Aws::String & GetProposedByMemberName() const
Definition Proposal.h:118
void SetArn(Aws::String &&value)
Definition Proposal.h:256
void SetCreationDate(const Aws::Utils::DateTime &value)
Definition Proposal.h:162
void SetArn(const Aws::String &value)
Definition Proposal.h:255
void SetProposedByMemberName(const Aws::String &value)
Definition Proposal.h:120
Proposal & AddTags(Aws::String &&key, const Aws::String &value)
Definition Proposal.h:237
Proposal & WithYesVoteCount(int value)
Definition Proposal.h:193
Proposal & WithStatus(const ProposalStatus &value)
Definition Proposal.h:152
const ProposalStatus & GetStatus() const
Definition Proposal.h:148
Proposal & WithArn(Aws::String &&value)
Definition Proposal.h:259
const Aws::String & GetProposedByMemberId() const
Definition Proposal.h:104
Proposal & AddTags(const char *key, const char *value)
Definition Proposal.h:242
Proposal & WithStatus(ProposalStatus &&value)
Definition Proposal.h:153
const Aws::Utils::DateTime & GetCreationDate() const
Definition Proposal.h:160
const Aws::String & GetArn() const
Definition Proposal.h:253
void SetArn(const char *value)
Definition Proposal.h:257
void SetProposalId(Aws::String &&value)
Definition Proposal.h:52
void SetNetworkId(Aws::String &&value)
Definition Proposal.h:66
const ProposalActions & GetActions() const
Definition Proposal.h:92
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Proposal.h:232
Proposal & WithArn(const Aws::String &value)
Definition Proposal.h:258
Proposal & WithActions(const ProposalActions &value)
Definition Proposal.h:96
Proposal & AddTags(Aws::String &&key, const char *value)
Definition Proposal.h:241
void SetProposedByMemberId(const char *value)
Definition Proposal.h:108
AWS_MANAGEDBLOCKCHAIN_API Proposal(Aws::Utils::Json::JsonView jsonValue)
void SetProposalId(const Aws::String &value)
Definition Proposal.h:51
Proposal & WithProposalId(const char *value)
Definition Proposal.h:56
Proposal & WithProposedByMemberName(Aws::String &&value)
Definition Proposal.h:124
void SetProposedByMemberId(const Aws::String &value)
Definition Proposal.h:106
void SetNetworkId(const char *value)
Definition Proposal.h:67
void SetActions(ProposalActions &&value)
Definition Proposal.h:95
Proposal & WithProposedByMemberName(const char *value)
Definition Proposal.h:125
void SetStatus(ProposalStatus &&value)
Definition Proposal.h:151
Proposal & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Proposal.h:235
const Aws::Utils::DateTime & GetExpirationDate() const
Definition Proposal.h:177
Proposal & WithOutstandingVoteCount(int value)
Definition Proposal.h:216
void SetDescription(Aws::String &&value)
Definition Proposal.h:80
Proposal & WithProposedByMemberId(const Aws::String &value)
Definition Proposal.h:109
AWS_MANAGEDBLOCKCHAIN_API Proposal & operator=(Aws::Utils::Json::JsonView jsonValue)
Proposal & WithProposedByMemberId(Aws::String &&value)
Definition Proposal.h:110
AWS_MANAGEDBLOCKCHAIN_API Proposal()
void SetCreationDate(Aws::Utils::DateTime &&value)
Definition Proposal.h:163
void SetDescription(const Aws::String &value)
Definition Proposal.h:79
AWS_MANAGEDBLOCKCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDescription(const char *value)
Definition Proposal.h:81
Proposal & WithActions(ProposalActions &&value)
Definition Proposal.h:97
void SetProposedByMemberName(Aws::String &&value)
Definition Proposal.h:121
Proposal & AddTags(Aws::String &&key, Aws::String &&value)
Definition Proposal.h:239
Proposal & WithNetworkId(Aws::String &&value)
Definition Proposal.h:69
Proposal & WithDescription(Aws::String &&value)
Definition Proposal.h:83
void SetProposalId(const char *value)
Definition Proposal.h:53
Proposal & WithArn(const char *value)
Definition Proposal.h:260
void SetStatus(const ProposalStatus &value)
Definition Proposal.h:150
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Proposal.h:230
Proposal & WithDescription(const Aws::String &value)
Definition Proposal.h:82
Proposal & WithProposedByMemberId(const char *value)
Definition Proposal.h:111
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