AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ProposalSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/managedblockchain/ManagedBlockchain_EXPORTS.h>
10#include <aws/managedblockchain/model/ProposalStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ManagedBlockchain {
22namespace Model {
23
31 public:
32 AWS_MANAGEDBLOCKCHAIN_API ProposalSummary() = default;
33 AWS_MANAGEDBLOCKCHAIN_API ProposalSummary(Aws::Utils::Json::JsonView jsonValue);
34 AWS_MANAGEDBLOCKCHAIN_API ProposalSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_MANAGEDBLOCKCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetProposalId() const { return m_proposalId; }
42 inline bool ProposalIdHasBeenSet() const { return m_proposalIdHasBeenSet; }
43 template <typename ProposalIdT = Aws::String>
44 void SetProposalId(ProposalIdT&& value) {
45 m_proposalIdHasBeenSet = true;
46 m_proposalId = std::forward<ProposalIdT>(value);
47 }
48 template <typename ProposalIdT = Aws::String>
49 ProposalSummary& WithProposalId(ProposalIdT&& value) {
50 SetProposalId(std::forward<ProposalIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDescription() const { return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 template <typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) {
63 m_descriptionHasBeenSet = true;
64 m_description = std::forward<DescriptionT>(value);
65 }
66 template <typename DescriptionT = Aws::String>
67 ProposalSummary& WithDescription(DescriptionT&& value) {
68 SetDescription(std::forward<DescriptionT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetProposedByMemberId() const { return m_proposedByMemberId; }
78 inline bool ProposedByMemberIdHasBeenSet() const { return m_proposedByMemberIdHasBeenSet; }
79 template <typename ProposedByMemberIdT = Aws::String>
80 void SetProposedByMemberId(ProposedByMemberIdT&& value) {
81 m_proposedByMemberIdHasBeenSet = true;
82 m_proposedByMemberId = std::forward<ProposedByMemberIdT>(value);
83 }
84 template <typename ProposedByMemberIdT = Aws::String>
85 ProposalSummary& WithProposedByMemberId(ProposedByMemberIdT&& value) {
86 SetProposedByMemberId(std::forward<ProposedByMemberIdT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetProposedByMemberName() const { return m_proposedByMemberName; }
96 inline bool ProposedByMemberNameHasBeenSet() const { return m_proposedByMemberNameHasBeenSet; }
97 template <typename ProposedByMemberNameT = Aws::String>
98 void SetProposedByMemberName(ProposedByMemberNameT&& value) {
99 m_proposedByMemberNameHasBeenSet = true;
100 m_proposedByMemberName = std::forward<ProposedByMemberNameT>(value);
101 }
102 template <typename ProposedByMemberNameT = Aws::String>
103 ProposalSummary& WithProposedByMemberName(ProposedByMemberNameT&& value) {
104 SetProposedByMemberName(std::forward<ProposedByMemberNameT>(value));
105 return *this;
106 }
108
110
127 inline ProposalStatus GetStatus() const { return m_status; }
128 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
129 inline void SetStatus(ProposalStatus value) {
130 m_statusHasBeenSet = true;
131 m_status = value;
132 }
134 SetStatus(value);
135 return *this;
136 }
138
140
143 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
144 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
145 template <typename CreationDateT = Aws::Utils::DateTime>
146 void SetCreationDate(CreationDateT&& value) {
147 m_creationDateHasBeenSet = true;
148 m_creationDate = std::forward<CreationDateT>(value);
149 }
150 template <typename CreationDateT = Aws::Utils::DateTime>
151 ProposalSummary& WithCreationDate(CreationDateT&& value) {
152 SetCreationDate(std::forward<CreationDateT>(value));
153 return *this;
154 }
156
158
166 inline const Aws::Utils::DateTime& GetExpirationDate() const { return m_expirationDate; }
167 inline bool ExpirationDateHasBeenSet() const { return m_expirationDateHasBeenSet; }
168 template <typename ExpirationDateT = Aws::Utils::DateTime>
169 void SetExpirationDate(ExpirationDateT&& value) {
170 m_expirationDateHasBeenSet = true;
171 m_expirationDate = std::forward<ExpirationDateT>(value);
172 }
173 template <typename ExpirationDateT = Aws::Utils::DateTime>
174 ProposalSummary& WithExpirationDate(ExpirationDateT&& value) {
175 SetExpirationDate(std::forward<ExpirationDateT>(value));
176 return *this;
177 }
179
181
188 inline const Aws::String& GetArn() const { return m_arn; }
189 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
190 template <typename ArnT = Aws::String>
191 void SetArn(ArnT&& value) {
192 m_arnHasBeenSet = true;
193 m_arn = std::forward<ArnT>(value);
194 }
195 template <typename ArnT = Aws::String>
196 ProposalSummary& WithArn(ArnT&& value) {
197 SetArn(std::forward<ArnT>(value));
198 return *this;
199 }
201 private:
202 Aws::String m_proposalId;
203
204 Aws::String m_description;
205
206 Aws::String m_proposedByMemberId;
207
208 Aws::String m_proposedByMemberName;
209
211
212 Aws::Utils::DateTime m_creationDate{};
213
214 Aws::Utils::DateTime m_expirationDate{};
215
216 Aws::String m_arn;
217 bool m_proposalIdHasBeenSet = false;
218 bool m_descriptionHasBeenSet = false;
219 bool m_proposedByMemberIdHasBeenSet = false;
220 bool m_proposedByMemberNameHasBeenSet = false;
221 bool m_statusHasBeenSet = false;
222 bool m_creationDateHasBeenSet = false;
223 bool m_expirationDateHasBeenSet = false;
224 bool m_arnHasBeenSet = false;
225};
226
227} // namespace Model
228} // namespace ManagedBlockchain
229} // namespace Aws
const Aws::String & GetProposedByMemberId() const
ProposalSummary & WithProposedByMemberName(ProposedByMemberNameT &&value)
ProposalSummary & WithProposedByMemberId(ProposedByMemberIdT &&value)
const Aws::Utils::DateTime & GetExpirationDate() const
ProposalSummary & WithDescription(DescriptionT &&value)
ProposalSummary & WithStatus(ProposalStatus value)
void SetProposedByMemberName(ProposedByMemberNameT &&value)
ProposalSummary & WithExpirationDate(ExpirationDateT &&value)
void SetProposedByMemberId(ProposedByMemberIdT &&value)
const Aws::String & GetProposedByMemberName() const
AWS_MANAGEDBLOCKCHAIN_API ProposalSummary()=default
const Aws::Utils::DateTime & GetCreationDate() const
ProposalSummary & WithProposalId(ProposalIdT &&value)
AWS_MANAGEDBLOCKCHAIN_API ProposalSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_MANAGEDBLOCKCHAIN_API ProposalSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ProposalSummary & WithCreationDate(CreationDateT &&value)
void SetExpirationDate(ExpirationDateT &&value)
AWS_MANAGEDBLOCKCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue