AWS SDK for C++

AWS SDK for C++ Version 1.11.644

Loading...
Searching...
No Matches
CollaborationChangeRequest.h
1
6#pragma once
7#include <aws/cleanrooms/CleanRooms_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/cleanrooms/model/ChangeRequestStatus.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/cleanrooms/model/Change.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace CleanRooms
26{
27namespace Model
28{
29
38 {
39 public:
40 AWS_CLEANROOMS_API CollaborationChangeRequest() = default;
43 AWS_CLEANROOMS_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetId() const { return m_id; }
51 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
52 template<typename IdT = Aws::String>
53 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
54 template<typename IdT = Aws::String>
55 CollaborationChangeRequest& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
57
59
62 inline const Aws::String& GetCollaborationId() const { return m_collaborationId; }
63 inline bool CollaborationIdHasBeenSet() const { return m_collaborationIdHasBeenSet; }
64 template<typename CollaborationIdT = Aws::String>
65 void SetCollaborationId(CollaborationIdT&& value) { m_collaborationIdHasBeenSet = true; m_collaborationId = std::forward<CollaborationIdT>(value); }
66 template<typename CollaborationIdT = Aws::String>
67 CollaborationChangeRequest& WithCollaborationId(CollaborationIdT&& value) { SetCollaborationId(std::forward<CollaborationIdT>(value)); return *this;}
69
71
74 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
75 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
76 template<typename CreateTimeT = Aws::Utils::DateTime>
77 void SetCreateTime(CreateTimeT&& value) { m_createTimeHasBeenSet = true; m_createTime = std::forward<CreateTimeT>(value); }
78 template<typename CreateTimeT = Aws::Utils::DateTime>
79 CollaborationChangeRequest& WithCreateTime(CreateTimeT&& value) { SetCreateTime(std::forward<CreateTimeT>(value)); return *this;}
81
83
86 inline const Aws::Utils::DateTime& GetUpdateTime() const { return m_updateTime; }
87 inline bool UpdateTimeHasBeenSet() const { return m_updateTimeHasBeenSet; }
88 template<typename UpdateTimeT = Aws::Utils::DateTime>
89 void SetUpdateTime(UpdateTimeT&& value) { m_updateTimeHasBeenSet = true; m_updateTime = std::forward<UpdateTimeT>(value); }
90 template<typename UpdateTimeT = Aws::Utils::DateTime>
91 CollaborationChangeRequest& WithUpdateTime(UpdateTimeT&& value) { SetUpdateTime(std::forward<UpdateTimeT>(value)); return *this;}
93
95
100 inline ChangeRequestStatus GetStatus() const { return m_status; }
101 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
102 inline void SetStatus(ChangeRequestStatus value) { m_statusHasBeenSet = true; m_status = value; }
105
107
111 inline bool GetIsAutoApproved() const { return m_isAutoApproved; }
112 inline bool IsAutoApprovedHasBeenSet() const { return m_isAutoApprovedHasBeenSet; }
113 inline void SetIsAutoApproved(bool value) { m_isAutoApprovedHasBeenSet = true; m_isAutoApproved = value; }
114 inline CollaborationChangeRequest& WithIsAutoApproved(bool value) { SetIsAutoApproved(value); return *this;}
116
118
121 inline const Aws::Vector<Change>& GetChanges() const { return m_changes; }
122 inline bool ChangesHasBeenSet() const { return m_changesHasBeenSet; }
123 template<typename ChangesT = Aws::Vector<Change>>
124 void SetChanges(ChangesT&& value) { m_changesHasBeenSet = true; m_changes = std::forward<ChangesT>(value); }
125 template<typename ChangesT = Aws::Vector<Change>>
126 CollaborationChangeRequest& WithChanges(ChangesT&& value) { SetChanges(std::forward<ChangesT>(value)); return *this;}
127 template<typename ChangesT = Change>
128 CollaborationChangeRequest& AddChanges(ChangesT&& value) { m_changesHasBeenSet = true; m_changes.emplace_back(std::forward<ChangesT>(value)); return *this; }
130 private:
131
132 Aws::String m_id;
133 bool m_idHasBeenSet = false;
134
135 Aws::String m_collaborationId;
136 bool m_collaborationIdHasBeenSet = false;
137
138 Aws::Utils::DateTime m_createTime{};
139 bool m_createTimeHasBeenSet = false;
140
141 Aws::Utils::DateTime m_updateTime{};
142 bool m_updateTimeHasBeenSet = false;
143
145 bool m_statusHasBeenSet = false;
146
147 bool m_isAutoApproved{false};
148 bool m_isAutoApprovedHasBeenSet = false;
149
150 Aws::Vector<Change> m_changes;
151 bool m_changesHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace CleanRooms
156} // namespace Aws
CollaborationChangeRequest & WithChanges(ChangesT &&value)
AWS_CLEANROOMS_API Aws::Utils::Json::JsonValue Jsonize() const
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)
CollaborationChangeRequest & AddChanges(ChangesT &&value)
CollaborationChangeRequest & WithUpdateTime(UpdateTimeT &&value)
CollaborationChangeRequest & WithCollaborationId(CollaborationIdT &&value)
CollaborationChangeRequest & WithIsAutoApproved(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue