AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
CollaborationChangeRequest.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
36 public:
37 AWS_CLEANROOMS_API CollaborationChangeRequest() = default;
40 AWS_CLEANROOMS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Aws::String& GetId() const { return m_id; }
47 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
48 template <typename IdT = Aws::String>
49 void SetId(IdT&& value) {
50 m_idHasBeenSet = true;
51 m_id = std::forward<IdT>(value);
52 }
53 template <typename IdT = Aws::String>
55 SetId(std::forward<IdT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetCollaborationId() const { return m_collaborationId; }
65 inline bool CollaborationIdHasBeenSet() const { return m_collaborationIdHasBeenSet; }
66 template <typename CollaborationIdT = Aws::String>
67 void SetCollaborationId(CollaborationIdT&& value) {
68 m_collaborationIdHasBeenSet = true;
69 m_collaborationId = std::forward<CollaborationIdT>(value);
70 }
71 template <typename CollaborationIdT = Aws::String>
73 SetCollaborationId(std::forward<CollaborationIdT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
83 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
84 template <typename CreateTimeT = Aws::Utils::DateTime>
85 void SetCreateTime(CreateTimeT&& value) {
86 m_createTimeHasBeenSet = true;
87 m_createTime = std::forward<CreateTimeT>(value);
88 }
89 template <typename CreateTimeT = Aws::Utils::DateTime>
91 SetCreateTime(std::forward<CreateTimeT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::Utils::DateTime& GetUpdateTime() const { return m_updateTime; }
101 inline bool UpdateTimeHasBeenSet() const { return m_updateTimeHasBeenSet; }
102 template <typename UpdateTimeT = Aws::Utils::DateTime>
103 void SetUpdateTime(UpdateTimeT&& value) {
104 m_updateTimeHasBeenSet = true;
105 m_updateTime = std::forward<UpdateTimeT>(value);
106 }
107 template <typename UpdateTimeT = Aws::Utils::DateTime>
109 SetUpdateTime(std::forward<UpdateTimeT>(value));
110 return *this;
111 }
113
115
120 inline ChangeRequestStatus GetStatus() const { return m_status; }
121 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
122 inline void SetStatus(ChangeRequestStatus value) {
123 m_statusHasBeenSet = true;
124 m_status = value;
125 }
127 SetStatus(value);
128 return *this;
129 }
131
133
137 inline bool GetIsAutoApproved() const { return m_isAutoApproved; }
138 inline bool IsAutoApprovedHasBeenSet() const { return m_isAutoApprovedHasBeenSet; }
139 inline void SetIsAutoApproved(bool value) {
140 m_isAutoApprovedHasBeenSet = true;
141 m_isAutoApproved = value;
142 }
144 SetIsAutoApproved(value);
145 return *this;
146 }
148
150
153 inline const Aws::Vector<Change>& GetChanges() const { return m_changes; }
154 inline bool ChangesHasBeenSet() const { return m_changesHasBeenSet; }
155 template <typename ChangesT = Aws::Vector<Change>>
156 void SetChanges(ChangesT&& value) {
157 m_changesHasBeenSet = true;
158 m_changes = std::forward<ChangesT>(value);
159 }
160 template <typename ChangesT = Aws::Vector<Change>>
162 SetChanges(std::forward<ChangesT>(value));
163 return *this;
164 }
165 template <typename ChangesT = Change>
167 m_changesHasBeenSet = true;
168 m_changes.emplace_back(std::forward<ChangesT>(value));
169 return *this;
170 }
172
174
178 inline const Aws::Map<Aws::String, ApprovalStatusDetails>& GetApprovals() const { return m_approvals; }
179 inline bool ApprovalsHasBeenSet() const { return m_approvalsHasBeenSet; }
180 template <typename ApprovalsT = Aws::Map<Aws::String, ApprovalStatusDetails>>
181 void SetApprovals(ApprovalsT&& value) {
182 m_approvalsHasBeenSet = true;
183 m_approvals = std::forward<ApprovalsT>(value);
184 }
185 template <typename ApprovalsT = Aws::Map<Aws::String, ApprovalStatusDetails>>
187 SetApprovals(std::forward<ApprovalsT>(value));
188 return *this;
189 }
190 template <typename ApprovalsKeyT = Aws::String, typename ApprovalsValueT = ApprovalStatusDetails>
191 CollaborationChangeRequest& AddApprovals(ApprovalsKeyT&& key, ApprovalsValueT&& value) {
192 m_approvalsHasBeenSet = true;
193 m_approvals.emplace(std::forward<ApprovalsKeyT>(key), std::forward<ApprovalsValueT>(value));
194 return *this;
195 }
197 private:
198 Aws::String m_id;
199
200 Aws::String m_collaborationId;
201
202 Aws::Utils::DateTime m_createTime{};
203
204 Aws::Utils::DateTime m_updateTime{};
205
207
208 bool m_isAutoApproved{false};
209
210 Aws::Vector<Change> m_changes;
211
213 bool m_idHasBeenSet = false;
214 bool m_collaborationIdHasBeenSet = false;
215 bool m_createTimeHasBeenSet = false;
216 bool m_updateTimeHasBeenSet = false;
217 bool m_statusHasBeenSet = false;
218 bool m_isAutoApprovedHasBeenSet = false;
219 bool m_changesHasBeenSet = false;
220 bool m_approvalsHasBeenSet = false;
221};
222
223} // namespace Model
224} // namespace CleanRooms
225} // namespace Aws
CollaborationChangeRequest & WithChanges(ChangesT &&value)
AWS_CLEANROOMS_API Aws::Utils::Json::JsonValue Jsonize() const
CollaborationChangeRequest & AddApprovals(ApprovalsKeyT &&key, ApprovalsValueT &&value)
CollaborationChangeRequest & WithApprovals(ApprovalsT &&value)
AWS_CLEANROOMS_API CollaborationChangeRequest(Aws::Utils::Json::JsonView jsonValue)
AWS_CLEANROOMS_API CollaborationChangeRequest()=default
CollaborationChangeRequest & WithStatus(ChangeRequestStatus value)
CollaborationChangeRequest & WithCreateTime(CreateTimeT &&value)
AWS_CLEANROOMS_API CollaborationChangeRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, ApprovalStatusDetails > & GetApprovals() const
CollaborationChangeRequest & AddChanges(ChangesT &&value)
CollaborationChangeRequest & WithUpdateTime(UpdateTimeT &&value)
CollaborationChangeRequest & WithCollaborationId(CollaborationIdT &&value)
CollaborationChangeRequest & WithIsAutoApproved(bool value)
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