AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CollaborationChangeRequestSummary.h
1
6#pragma once
7#include <aws/cleanrooms/CleanRooms_EXPORTS.h>
8#include <aws/cleanrooms/model/ApprovalStatusDetails.h>
9#include <aws/cleanrooms/model/Change.h>
10#include <aws/cleanrooms/model/ChangeRequestStatus.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace CleanRooms {
26namespace Model {
27
35 public:
36 AWS_CLEANROOMS_API CollaborationChangeRequestSummary() = default;
39 AWS_CLEANROOMS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetId() const { return m_id; }
46 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
47 template <typename IdT = Aws::String>
48 void SetId(IdT&& value) {
49 m_idHasBeenSet = true;
50 m_id = std::forward<IdT>(value);
51 }
52 template <typename IdT = Aws::String>
54 SetId(std::forward<IdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetCollaborationId() const { return m_collaborationId; }
64 inline bool CollaborationIdHasBeenSet() const { return m_collaborationIdHasBeenSet; }
65 template <typename CollaborationIdT = Aws::String>
66 void SetCollaborationId(CollaborationIdT&& value) {
67 m_collaborationIdHasBeenSet = true;
68 m_collaborationId = std::forward<CollaborationIdT>(value);
69 }
70 template <typename CollaborationIdT = Aws::String>
72 SetCollaborationId(std::forward<CollaborationIdT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
82 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
83 template <typename CreateTimeT = Aws::Utils::DateTime>
84 void SetCreateTime(CreateTimeT&& value) {
85 m_createTimeHasBeenSet = true;
86 m_createTime = std::forward<CreateTimeT>(value);
87 }
88 template <typename CreateTimeT = Aws::Utils::DateTime>
90 SetCreateTime(std::forward<CreateTimeT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::Utils::DateTime& GetUpdateTime() const { return m_updateTime; }
100 inline bool UpdateTimeHasBeenSet() const { return m_updateTimeHasBeenSet; }
101 template <typename UpdateTimeT = Aws::Utils::DateTime>
102 void SetUpdateTime(UpdateTimeT&& value) {
103 m_updateTimeHasBeenSet = true;
104 m_updateTime = std::forward<UpdateTimeT>(value);
105 }
106 template <typename UpdateTimeT = Aws::Utils::DateTime>
108 SetUpdateTime(std::forward<UpdateTimeT>(value));
109 return *this;
110 }
112
114
117 inline ChangeRequestStatus GetStatus() const { return m_status; }
118 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
119 inline void SetStatus(ChangeRequestStatus value) {
120 m_statusHasBeenSet = true;
121 m_status = value;
122 }
124 SetStatus(value);
125 return *this;
126 }
128
130
133 inline bool GetIsAutoApproved() const { return m_isAutoApproved; }
134 inline bool IsAutoApprovedHasBeenSet() const { return m_isAutoApprovedHasBeenSet; }
135 inline void SetIsAutoApproved(bool value) {
136 m_isAutoApprovedHasBeenSet = true;
137 m_isAutoApproved = value;
138 }
140 SetIsAutoApproved(value);
141 return *this;
142 }
144
146
149 inline const Aws::Vector<Change>& GetChanges() const { return m_changes; }
150 inline bool ChangesHasBeenSet() const { return m_changesHasBeenSet; }
151 template <typename ChangesT = Aws::Vector<Change>>
152 void SetChanges(ChangesT&& value) {
153 m_changesHasBeenSet = true;
154 m_changes = std::forward<ChangesT>(value);
155 }
156 template <typename ChangesT = Aws::Vector<Change>>
158 SetChanges(std::forward<ChangesT>(value));
159 return *this;
160 }
161 template <typename ChangesT = Change>
163 m_changesHasBeenSet = true;
164 m_changes.emplace_back(std::forward<ChangesT>(value));
165 return *this;
166 }
168
170
174 inline const Aws::Map<Aws::String, ApprovalStatusDetails>& GetApprovals() const { return m_approvals; }
175 inline bool ApprovalsHasBeenSet() const { return m_approvalsHasBeenSet; }
176 template <typename ApprovalsT = Aws::Map<Aws::String, ApprovalStatusDetails>>
177 void SetApprovals(ApprovalsT&& value) {
178 m_approvalsHasBeenSet = true;
179 m_approvals = std::forward<ApprovalsT>(value);
180 }
181 template <typename ApprovalsT = Aws::Map<Aws::String, ApprovalStatusDetails>>
183 SetApprovals(std::forward<ApprovalsT>(value));
184 return *this;
185 }
186 template <typename ApprovalsKeyT = Aws::String, typename ApprovalsValueT = ApprovalStatusDetails>
187 CollaborationChangeRequestSummary& AddApprovals(ApprovalsKeyT&& key, ApprovalsValueT&& value) {
188 m_approvalsHasBeenSet = true;
189 m_approvals.emplace(std::forward<ApprovalsKeyT>(key), std::forward<ApprovalsValueT>(value));
190 return *this;
191 }
193 private:
194 Aws::String m_id;
195
196 Aws::String m_collaborationId;
197
198 Aws::Utils::DateTime m_createTime{};
199
200 Aws::Utils::DateTime m_updateTime{};
201
203
204 bool m_isAutoApproved{false};
205
206 Aws::Vector<Change> m_changes;
207
209 bool m_idHasBeenSet = false;
210 bool m_collaborationIdHasBeenSet = false;
211 bool m_createTimeHasBeenSet = false;
212 bool m_updateTimeHasBeenSet = false;
213 bool m_statusHasBeenSet = false;
214 bool m_isAutoApprovedHasBeenSet = false;
215 bool m_changesHasBeenSet = false;
216 bool m_approvalsHasBeenSet = false;
217};
218
219} // namespace Model
220} // namespace CleanRooms
221} // namespace Aws
AWS_CLEANROOMS_API Aws::Utils::Json::JsonValue Jsonize() const
CollaborationChangeRequestSummary & AddChanges(ChangesT &&value)
AWS_CLEANROOMS_API CollaborationChangeRequestSummary(Aws::Utils::Json::JsonView jsonValue)
CollaborationChangeRequestSummary & WithUpdateTime(UpdateTimeT &&value)
const Aws::Map< Aws::String, ApprovalStatusDetails > & GetApprovals() const
CollaborationChangeRequestSummary & WithCreateTime(CreateTimeT &&value)
CollaborationChangeRequestSummary & AddApprovals(ApprovalsKeyT &&key, ApprovalsValueT &&value)
CollaborationChangeRequestSummary & WithStatus(ChangeRequestStatus value)
AWS_CLEANROOMS_API CollaborationChangeRequestSummary()=default
CollaborationChangeRequestSummary & WithApprovals(ApprovalsT &&value)
CollaborationChangeRequestSummary & WithCollaborationId(CollaborationIdT &&value)
CollaborationChangeRequestSummary & WithChanges(ChangesT &&value)
AWS_CLEANROOMS_API CollaborationChangeRequestSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue