AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ProposalSummary.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/ProposalStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ManagedBlockchain
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_MANAGEDBLOCKCHAIN_API ProposalSummary();
38 AWS_MANAGEDBLOCKCHAIN_API ProposalSummary(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MANAGEDBLOCKCHAIN_API ProposalSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MANAGEDBLOCKCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetProposalId() const{ return m_proposalId; }
48 inline bool ProposalIdHasBeenSet() const { return m_proposalIdHasBeenSet; }
49 inline void SetProposalId(const Aws::String& value) { m_proposalIdHasBeenSet = true; m_proposalId = value; }
50 inline void SetProposalId(Aws::String&& value) { m_proposalIdHasBeenSet = true; m_proposalId = std::move(value); }
51 inline void SetProposalId(const char* value) { m_proposalIdHasBeenSet = true; m_proposalId.assign(value); }
52 inline ProposalSummary& WithProposalId(const Aws::String& value) { SetProposalId(value); return *this;}
53 inline ProposalSummary& WithProposalId(Aws::String&& value) { SetProposalId(std::move(value)); return *this;}
54 inline ProposalSummary& WithProposalId(const char* value) { SetProposalId(value); return *this;}
56
58
61 inline const Aws::String& GetDescription() const{ return m_description; }
62 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
63 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
64 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
65 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
66 inline ProposalSummary& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
67 inline ProposalSummary& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
68 inline ProposalSummary& WithDescription(const char* value) { SetDescription(value); return *this;}
70
72
75 inline const Aws::String& GetProposedByMemberId() const{ return m_proposedByMemberId; }
76 inline bool ProposedByMemberIdHasBeenSet() const { return m_proposedByMemberIdHasBeenSet; }
77 inline void SetProposedByMemberId(const Aws::String& value) { m_proposedByMemberIdHasBeenSet = true; m_proposedByMemberId = value; }
78 inline void SetProposedByMemberId(Aws::String&& value) { m_proposedByMemberIdHasBeenSet = true; m_proposedByMemberId = std::move(value); }
79 inline void SetProposedByMemberId(const char* value) { m_proposedByMemberIdHasBeenSet = true; m_proposedByMemberId.assign(value); }
80 inline ProposalSummary& WithProposedByMemberId(const Aws::String& value) { SetProposedByMemberId(value); return *this;}
81 inline ProposalSummary& WithProposedByMemberId(Aws::String&& value) { SetProposedByMemberId(std::move(value)); return *this;}
82 inline ProposalSummary& WithProposedByMemberId(const char* value) { SetProposedByMemberId(value); return *this;}
84
86
89 inline const Aws::String& GetProposedByMemberName() const{ return m_proposedByMemberName; }
90 inline bool ProposedByMemberNameHasBeenSet() const { return m_proposedByMemberNameHasBeenSet; }
91 inline void SetProposedByMemberName(const Aws::String& value) { m_proposedByMemberNameHasBeenSet = true; m_proposedByMemberName = value; }
92 inline void SetProposedByMemberName(Aws::String&& value) { m_proposedByMemberNameHasBeenSet = true; m_proposedByMemberName = std::move(value); }
93 inline void SetProposedByMemberName(const char* value) { m_proposedByMemberNameHasBeenSet = true; m_proposedByMemberName.assign(value); }
94 inline ProposalSummary& WithProposedByMemberName(const Aws::String& value) { SetProposedByMemberName(value); return *this;}
95 inline ProposalSummary& WithProposedByMemberName(Aws::String&& value) { SetProposedByMemberName(std::move(value)); return *this;}
96 inline ProposalSummary& WithProposedByMemberName(const char* value) { SetProposedByMemberName(value); return *this;}
98
100
117 inline const ProposalStatus& GetStatus() const{ return m_status; }
118 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
119 inline void SetStatus(const ProposalStatus& value) { m_statusHasBeenSet = true; m_status = value; }
120 inline void SetStatus(ProposalStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
121 inline ProposalSummary& WithStatus(const ProposalStatus& value) { SetStatus(value); return *this;}
122 inline ProposalSummary& WithStatus(ProposalStatus&& value) { SetStatus(std::move(value)); return *this;}
124
126
129 inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
130 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
131 inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
132 inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
133 inline ProposalSummary& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
134 inline ProposalSummary& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
136
138
146 inline const Aws::Utils::DateTime& GetExpirationDate() const{ return m_expirationDate; }
147 inline bool ExpirationDateHasBeenSet() const { return m_expirationDateHasBeenSet; }
148 inline void SetExpirationDate(const Aws::Utils::DateTime& value) { m_expirationDateHasBeenSet = true; m_expirationDate = value; }
149 inline void SetExpirationDate(Aws::Utils::DateTime&& value) { m_expirationDateHasBeenSet = true; m_expirationDate = std::move(value); }
150 inline ProposalSummary& WithExpirationDate(const Aws::Utils::DateTime& value) { SetExpirationDate(value); return *this;}
151 inline ProposalSummary& WithExpirationDate(Aws::Utils::DateTime&& value) { SetExpirationDate(std::move(value)); return *this;}
153
155
162 inline const Aws::String& GetArn() const{ return m_arn; }
163 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
164 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
165 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
166 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
167 inline ProposalSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;}
168 inline ProposalSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
169 inline ProposalSummary& WithArn(const char* value) { SetArn(value); return *this;}
171 private:
172
173 Aws::String m_proposalId;
174 bool m_proposalIdHasBeenSet = false;
175
176 Aws::String m_description;
177 bool m_descriptionHasBeenSet = false;
178
179 Aws::String m_proposedByMemberId;
180 bool m_proposedByMemberIdHasBeenSet = false;
181
182 Aws::String m_proposedByMemberName;
183 bool m_proposedByMemberNameHasBeenSet = false;
184
185 ProposalStatus m_status;
186 bool m_statusHasBeenSet = false;
187
188 Aws::Utils::DateTime m_creationDate;
189 bool m_creationDateHasBeenSet = false;
190
191 Aws::Utils::DateTime m_expirationDate;
192 bool m_expirationDateHasBeenSet = false;
193
194 Aws::String m_arn;
195 bool m_arnHasBeenSet = false;
196 };
197
198} // namespace Model
199} // namespace ManagedBlockchain
200} // namespace Aws
void SetExpirationDate(const Aws::Utils::DateTime &value)
ProposalSummary & WithDescription(const char *value)
ProposalSummary & WithProposalId(const char *value)
void SetCreationDate(const Aws::Utils::DateTime &value)
ProposalSummary & WithProposedByMemberId(const Aws::String &value)
ProposalSummary & WithExpirationDate(Aws::Utils::DateTime &&value)
void SetProposedByMemberId(const Aws::String &value)
const Aws::String & GetProposedByMemberId() const
ProposalSummary & WithProposedByMemberName(const char *value)
void SetExpirationDate(Aws::Utils::DateTime &&value)
ProposalSummary & WithDescription(const Aws::String &value)
ProposalSummary & WithProposedByMemberName(Aws::String &&value)
const Aws::Utils::DateTime & GetExpirationDate() const
AWS_MANAGEDBLOCKCHAIN_API ProposalSummary()
void SetProposalId(const Aws::String &value)
ProposalSummary & WithExpirationDate(const Aws::Utils::DateTime &value)
ProposalSummary & WithProposedByMemberName(const Aws::String &value)
const Aws::String & GetProposedByMemberName() const
ProposalSummary & WithArn(const char *value)
const Aws::Utils::DateTime & GetCreationDate() const
ProposalSummary & WithProposalId(Aws::String &&value)
void SetCreationDate(Aws::Utils::DateTime &&value)
ProposalSummary & WithStatus(const ProposalStatus &value)
ProposalSummary & WithCreationDate(Aws::Utils::DateTime &&value)
ProposalSummary & WithArn(Aws::String &&value)
void SetDescription(const Aws::String &value)
ProposalSummary & WithProposedByMemberId(const char *value)
AWS_MANAGEDBLOCKCHAIN_API ProposalSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_MANAGEDBLOCKCHAIN_API ProposalSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ProposalSummary & WithDescription(Aws::String &&value)
ProposalSummary & WithStatus(ProposalStatus &&value)
void SetStatus(const ProposalStatus &value)
ProposalSummary & WithCreationDate(const Aws::Utils::DateTime &value)
ProposalSummary & WithProposalId(const Aws::String &value)
AWS_MANAGEDBLOCKCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const
void SetProposedByMemberName(const Aws::String &value)
ProposalSummary & WithArn(const Aws::String &value)
ProposalSummary & WithProposedByMemberId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue