AWS SDK for C++

AWS SDK for C++ Version 1.11.771

Loading...
Searching...
No Matches
ResponsibilityTransfer.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/organizations/Organizations_EXPORTS.h>
10#include <aws/organizations/model/ResponsibilityTransferStatus.h>
11#include <aws/organizations/model/ResponsibilityTransferType.h>
12#include <aws/organizations/model/TransferParticipant.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Organizations {
24namespace Model {
25
34 public:
35 AWS_ORGANIZATIONS_API ResponsibilityTransfer() = default;
36 AWS_ORGANIZATIONS_API ResponsibilityTransfer(Aws::Utils::Json::JsonView jsonValue);
38 AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetArn() const { return m_arn; }
45 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
46 template <typename ArnT = Aws::String>
47 void SetArn(ArnT&& value) {
48 m_arnHasBeenSet = true;
49 m_arn = std::forward<ArnT>(value);
50 }
51 template <typename ArnT = Aws::String>
53 SetArn(std::forward<ArnT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetName() const { return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 template <typename NameT = Aws::String>
65 void SetName(NameT&& value) {
66 m_nameHasBeenSet = true;
67 m_name = std::forward<NameT>(value);
68 }
69 template <typename NameT = Aws::String>
71 SetName(std::forward<NameT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetId() const { return m_id; }
81 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
82 template <typename IdT = Aws::String>
83 void SetId(IdT&& value) {
84 m_idHasBeenSet = true;
85 m_id = std::forward<IdT>(value);
86 }
87 template <typename IdT = Aws::String>
89 SetId(std::forward<IdT>(value));
90 return *this;
91 }
93
95
98 inline ResponsibilityTransferType GetType() const { return m_type; }
99 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
101 m_typeHasBeenSet = true;
102 m_type = value;
103 }
105 SetType(value);
106 return *this;
107 }
109
111
114 inline ResponsibilityTransferStatus GetStatus() const { return m_status; }
115 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
117 m_statusHasBeenSet = true;
118 m_status = value;
119 }
121 SetStatus(value);
122 return *this;
123 }
125
127
131 inline const TransferParticipant& GetSource() const { return m_source; }
132 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
133 template <typename SourceT = TransferParticipant>
134 void SetSource(SourceT&& value) {
135 m_sourceHasBeenSet = true;
136 m_source = std::forward<SourceT>(value);
137 }
138 template <typename SourceT = TransferParticipant>
140 SetSource(std::forward<SourceT>(value));
141 return *this;
142 }
144
146
150 inline const TransferParticipant& GetTarget() const { return m_target; }
151 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
152 template <typename TargetT = TransferParticipant>
153 void SetTarget(TargetT&& value) {
154 m_targetHasBeenSet = true;
155 m_target = std::forward<TargetT>(value);
156 }
157 template <typename TargetT = TransferParticipant>
159 SetTarget(std::forward<TargetT>(value));
160 return *this;
161 }
163
165
168 inline const Aws::Utils::DateTime& GetStartTimestamp() const { return m_startTimestamp; }
169 inline bool StartTimestampHasBeenSet() const { return m_startTimestampHasBeenSet; }
170 template <typename StartTimestampT = Aws::Utils::DateTime>
171 void SetStartTimestamp(StartTimestampT&& value) {
172 m_startTimestampHasBeenSet = true;
173 m_startTimestamp = std::forward<StartTimestampT>(value);
174 }
175 template <typename StartTimestampT = Aws::Utils::DateTime>
176 ResponsibilityTransfer& WithStartTimestamp(StartTimestampT&& value) {
177 SetStartTimestamp(std::forward<StartTimestampT>(value));
178 return *this;
179 }
181
183
186 inline const Aws::Utils::DateTime& GetEndTimestamp() const { return m_endTimestamp; }
187 inline bool EndTimestampHasBeenSet() const { return m_endTimestampHasBeenSet; }
188 template <typename EndTimestampT = Aws::Utils::DateTime>
189 void SetEndTimestamp(EndTimestampT&& value) {
190 m_endTimestampHasBeenSet = true;
191 m_endTimestamp = std::forward<EndTimestampT>(value);
192 }
193 template <typename EndTimestampT = Aws::Utils::DateTime>
194 ResponsibilityTransfer& WithEndTimestamp(EndTimestampT&& value) {
195 SetEndTimestamp(std::forward<EndTimestampT>(value));
196 return *this;
197 }
199
201
204 inline const Aws::String& GetActiveHandshakeId() const { return m_activeHandshakeId; }
205 inline bool ActiveHandshakeIdHasBeenSet() const { return m_activeHandshakeIdHasBeenSet; }
206 template <typename ActiveHandshakeIdT = Aws::String>
207 void SetActiveHandshakeId(ActiveHandshakeIdT&& value) {
208 m_activeHandshakeIdHasBeenSet = true;
209 m_activeHandshakeId = std::forward<ActiveHandshakeIdT>(value);
210 }
211 template <typename ActiveHandshakeIdT = Aws::String>
212 ResponsibilityTransfer& WithActiveHandshakeId(ActiveHandshakeIdT&& value) {
213 SetActiveHandshakeId(std::forward<ActiveHandshakeIdT>(value));
214 return *this;
215 }
217 private:
218 Aws::String m_arn;
219
220 Aws::String m_name;
221
222 Aws::String m_id;
223
225
227
228 TransferParticipant m_source;
229
230 TransferParticipant m_target;
231
232 Aws::Utils::DateTime m_startTimestamp{};
233
234 Aws::Utils::DateTime m_endTimestamp{};
235
236 Aws::String m_activeHandshakeId;
237 bool m_arnHasBeenSet = false;
238 bool m_nameHasBeenSet = false;
239 bool m_idHasBeenSet = false;
240 bool m_typeHasBeenSet = false;
241 bool m_statusHasBeenSet = false;
242 bool m_sourceHasBeenSet = false;
243 bool m_targetHasBeenSet = false;
244 bool m_startTimestampHasBeenSet = false;
245 bool m_endTimestampHasBeenSet = false;
246 bool m_activeHandshakeIdHasBeenSet = false;
247};
248
249} // namespace Model
250} // namespace Organizations
251} // namespace Aws
AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
ResponsibilityTransfer & WithArn(ArnT &&value)
AWS_ORGANIZATIONS_API ResponsibilityTransfer()=default
ResponsibilityTransfer & WithStatus(ResponsibilityTransferStatus value)
ResponsibilityTransfer & WithEndTimestamp(EndTimestampT &&value)
ResponsibilityTransfer & WithStartTimestamp(StartTimestampT &&value)
void SetStatus(ResponsibilityTransferStatus value)
AWS_ORGANIZATIONS_API ResponsibilityTransfer & operator=(Aws::Utils::Json::JsonView jsonValue)
ResponsibilityTransfer & WithActiveHandshakeId(ActiveHandshakeIdT &&value)
ResponsibilityTransfer & WithName(NameT &&value)
ResponsibilityTransfer & WithSource(SourceT &&value)
ResponsibilityTransfer & WithTarget(TargetT &&value)
const Aws::Utils::DateTime & GetEndTimestamp() const
AWS_ORGANIZATIONS_API ResponsibilityTransfer(Aws::Utils::Json::JsonView jsonValue)
ResponsibilityTransfer & WithType(ResponsibilityTransferType value)
const Aws::Utils::DateTime & GetStartTimestamp() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue