AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename ProposalIdT = Aws::String>
50 void SetProposalId(ProposalIdT&& value) { m_proposalIdHasBeenSet = true; m_proposalId = std::forward<ProposalIdT>(value); }
51 template<typename ProposalIdT = Aws::String>
52 ProposalSummary& WithProposalId(ProposalIdT&& value) { SetProposalId(std::forward<ProposalIdT>(value)); return *this;}
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) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
63 template<typename DescriptionT = Aws::String>
64 ProposalSummary& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
66
68
71 inline const Aws::String& GetProposedByMemberId() const { return m_proposedByMemberId; }
72 inline bool ProposedByMemberIdHasBeenSet() const { return m_proposedByMemberIdHasBeenSet; }
73 template<typename ProposedByMemberIdT = Aws::String>
74 void SetProposedByMemberId(ProposedByMemberIdT&& value) { m_proposedByMemberIdHasBeenSet = true; m_proposedByMemberId = std::forward<ProposedByMemberIdT>(value); }
75 template<typename ProposedByMemberIdT = Aws::String>
76 ProposalSummary& WithProposedByMemberId(ProposedByMemberIdT&& value) { SetProposedByMemberId(std::forward<ProposedByMemberIdT>(value)); return *this;}
78
80
83 inline const Aws::String& GetProposedByMemberName() const { return m_proposedByMemberName; }
84 inline bool ProposedByMemberNameHasBeenSet() const { return m_proposedByMemberNameHasBeenSet; }
85 template<typename ProposedByMemberNameT = Aws::String>
86 void SetProposedByMemberName(ProposedByMemberNameT&& value) { m_proposedByMemberNameHasBeenSet = true; m_proposedByMemberName = std::forward<ProposedByMemberNameT>(value); }
87 template<typename ProposedByMemberNameT = Aws::String>
88 ProposalSummary& WithProposedByMemberName(ProposedByMemberNameT&& value) { SetProposedByMemberName(std::forward<ProposedByMemberNameT>(value)); return *this;}
90
92
109 inline ProposalStatus GetStatus() const { return m_status; }
110 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
111 inline void SetStatus(ProposalStatus value) { m_statusHasBeenSet = true; m_status = value; }
112 inline ProposalSummary& WithStatus(ProposalStatus value) { SetStatus(value); return *this;}
114
116
119 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
120 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
121 template<typename CreationDateT = Aws::Utils::DateTime>
122 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
123 template<typename CreationDateT = Aws::Utils::DateTime>
124 ProposalSummary& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
126
128
136 inline const Aws::Utils::DateTime& GetExpirationDate() const { return m_expirationDate; }
137 inline bool ExpirationDateHasBeenSet() const { return m_expirationDateHasBeenSet; }
138 template<typename ExpirationDateT = Aws::Utils::DateTime>
139 void SetExpirationDate(ExpirationDateT&& value) { m_expirationDateHasBeenSet = true; m_expirationDate = std::forward<ExpirationDateT>(value); }
140 template<typename ExpirationDateT = Aws::Utils::DateTime>
141 ProposalSummary& WithExpirationDate(ExpirationDateT&& value) { SetExpirationDate(std::forward<ExpirationDateT>(value)); return *this;}
143
145
152 inline const Aws::String& GetArn() const { return m_arn; }
153 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
154 template<typename ArnT = Aws::String>
155 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
156 template<typename ArnT = Aws::String>
157 ProposalSummary& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
159 private:
160
161 Aws::String m_proposalId;
162 bool m_proposalIdHasBeenSet = false;
163
164 Aws::String m_description;
165 bool m_descriptionHasBeenSet = false;
166
167 Aws::String m_proposedByMemberId;
168 bool m_proposedByMemberIdHasBeenSet = false;
169
170 Aws::String m_proposedByMemberName;
171 bool m_proposedByMemberNameHasBeenSet = false;
172
174 bool m_statusHasBeenSet = false;
175
176 Aws::Utils::DateTime m_creationDate{};
177 bool m_creationDateHasBeenSet = false;
178
179 Aws::Utils::DateTime m_expirationDate{};
180 bool m_expirationDateHasBeenSet = false;
181
182 Aws::String m_arn;
183 bool m_arnHasBeenSet = false;
184 };
185
186} // namespace Model
187} // namespace ManagedBlockchain
188} // 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