AWS SDK for C++

AWS SDK for C++ Version 1.11.770

Loading...
Searching...
No Matches
Handshake.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/organizations/Organizations_EXPORTS.h>
11#include <aws/organizations/model/ActionType.h>
12#include <aws/organizations/model/HandshakeParty.h>
13#include <aws/organizations/model/HandshakeResource.h>
14#include <aws/organizations/model/HandshakeState.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Organizations {
26namespace Model {
27
38class Handshake {
39 public:
40 AWS_ORGANIZATIONS_API Handshake() = default;
41 AWS_ORGANIZATIONS_API Handshake(Aws::Utils::Json::JsonView jsonValue);
42 AWS_ORGANIZATIONS_API Handshake& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
44
46
51 inline const Aws::String& GetId() const { return m_id; }
52 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
53 template <typename IdT = Aws::String>
54 void SetId(IdT&& value) {
55 m_idHasBeenSet = true;
56 m_id = std::forward<IdT>(value);
57 }
58 template <typename IdT = Aws::String>
59 Handshake& WithId(IdT&& value) {
60 SetId(std::forward<IdT>(value));
61 return *this;
62 }
64
66
73 inline const Aws::String& GetArn() const { return m_arn; }
74 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
75 template <typename ArnT = Aws::String>
76 void SetArn(ArnT&& value) {
77 m_arnHasBeenSet = true;
78 m_arn = std::forward<ArnT>(value);
79 }
80 template <typename ArnT = Aws::String>
81 Handshake& WithArn(ArnT&& value) {
82 SetArn(std::forward<ArnT>(value));
83 return *this;
84 }
86
88
92 inline const Aws::Vector<HandshakeParty>& GetParties() const { return m_parties; }
93 inline bool PartiesHasBeenSet() const { return m_partiesHasBeenSet; }
94 template <typename PartiesT = Aws::Vector<HandshakeParty>>
95 void SetParties(PartiesT&& value) {
96 m_partiesHasBeenSet = true;
97 m_parties = std::forward<PartiesT>(value);
98 }
99 template <typename PartiesT = Aws::Vector<HandshakeParty>>
100 Handshake& WithParties(PartiesT&& value) {
101 SetParties(std::forward<PartiesT>(value));
102 return *this;
103 }
104 template <typename PartiesT = HandshakeParty>
105 Handshake& AddParties(PartiesT&& value) {
106 m_partiesHasBeenSet = true;
107 m_parties.emplace_back(std::forward<PartiesT>(value));
108 return *this;
109 }
111
113
123 inline HandshakeState GetState() const { return m_state; }
124 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
125 inline void SetState(HandshakeState value) {
126 m_stateHasBeenSet = true;
127 m_state = value;
128 }
130 SetState(value);
131 return *this;
132 }
134
136
139 inline const Aws::Utils::DateTime& GetRequestedTimestamp() const { return m_requestedTimestamp; }
140 inline bool RequestedTimestampHasBeenSet() const { return m_requestedTimestampHasBeenSet; }
141 template <typename RequestedTimestampT = Aws::Utils::DateTime>
142 void SetRequestedTimestamp(RequestedTimestampT&& value) {
143 m_requestedTimestampHasBeenSet = true;
144 m_requestedTimestamp = std::forward<RequestedTimestampT>(value);
145 }
146 template <typename RequestedTimestampT = Aws::Utils::DateTime>
147 Handshake& WithRequestedTimestamp(RequestedTimestampT&& value) {
148 SetRequestedTimestamp(std::forward<RequestedTimestampT>(value));
149 return *this;
150 }
152
154
157 inline const Aws::Utils::DateTime& GetExpirationTimestamp() const { return m_expirationTimestamp; }
158 inline bool ExpirationTimestampHasBeenSet() const { return m_expirationTimestampHasBeenSet; }
159 template <typename ExpirationTimestampT = Aws::Utils::DateTime>
160 void SetExpirationTimestamp(ExpirationTimestampT&& value) {
161 m_expirationTimestampHasBeenSet = true;
162 m_expirationTimestamp = std::forward<ExpirationTimestampT>(value);
163 }
164 template <typename ExpirationTimestampT = Aws::Utils::DateTime>
165 Handshake& WithExpirationTimestamp(ExpirationTimestampT&& value) {
166 SetExpirationTimestamp(std::forward<ExpirationTimestampT>(value));
167 return *this;
168 }
170
172
183 inline ActionType GetAction() const { return m_action; }
184 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
185 inline void SetAction(ActionType value) {
186 m_actionHasBeenSet = true;
187 m_action = value;
188 }
190 SetAction(value);
191 return *this;
192 }
194
196
201 inline const Aws::Vector<HandshakeResource>& GetResources() const { return m_resources; }
202 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
203 template <typename ResourcesT = Aws::Vector<HandshakeResource>>
204 void SetResources(ResourcesT&& value) {
205 m_resourcesHasBeenSet = true;
206 m_resources = std::forward<ResourcesT>(value);
207 }
208 template <typename ResourcesT = Aws::Vector<HandshakeResource>>
209 Handshake& WithResources(ResourcesT&& value) {
210 SetResources(std::forward<ResourcesT>(value));
211 return *this;
212 }
213 template <typename ResourcesT = HandshakeResource>
214 Handshake& AddResources(ResourcesT&& value) {
215 m_resourcesHasBeenSet = true;
216 m_resources.emplace_back(std::forward<ResourcesT>(value));
217 return *this;
218 }
220 private:
221 Aws::String m_id;
222
223 Aws::String m_arn;
224
226
228
229 Aws::Utils::DateTime m_requestedTimestamp{};
230
231 Aws::Utils::DateTime m_expirationTimestamp{};
232
234
236 bool m_idHasBeenSet = false;
237 bool m_arnHasBeenSet = false;
238 bool m_partiesHasBeenSet = false;
239 bool m_stateHasBeenSet = false;
240 bool m_requestedTimestampHasBeenSet = false;
241 bool m_expirationTimestampHasBeenSet = false;
242 bool m_actionHasBeenSet = false;
243 bool m_resourcesHasBeenSet = false;
244};
245
246} // namespace Model
247} // namespace Organizations
248} // namespace Aws
const Aws::Utils::DateTime & GetExpirationTimestamp() const
Definition Handshake.h:157
const Aws::Vector< HandshakeParty > & GetParties() const
Definition Handshake.h:92
void SetExpirationTimestamp(ExpirationTimestampT &&value)
Definition Handshake.h:160
Handshake & WithResources(ResourcesT &&value)
Definition Handshake.h:209
void SetAction(ActionType value)
Definition Handshake.h:185
void SetRequestedTimestamp(RequestedTimestampT &&value)
Definition Handshake.h:142
const Aws::Utils::DateTime & GetRequestedTimestamp() const
Definition Handshake.h:139
HandshakeState GetState() const
Definition Handshake.h:123
Handshake & WithAction(ActionType value)
Definition Handshake.h:189
Handshake & WithState(HandshakeState value)
Definition Handshake.h:129
Handshake & WithParties(PartiesT &&value)
Definition Handshake.h:100
Handshake & WithRequestedTimestamp(RequestedTimestampT &&value)
Definition Handshake.h:147
AWS_ORGANIZATIONS_API Handshake & operator=(Aws::Utils::Json::JsonView jsonValue)
Handshake & WithId(IdT &&value)
Definition Handshake.h:59
void SetResources(ResourcesT &&value)
Definition Handshake.h:204
Handshake & AddParties(PartiesT &&value)
Definition Handshake.h:105
const Aws::String & GetArn() const
Definition Handshake.h:73
AWS_ORGANIZATIONS_API Handshake()=default
const Aws::String & GetId() const
Definition Handshake.h:51
Handshake & AddResources(ResourcesT &&value)
Definition Handshake.h:214
void SetParties(PartiesT &&value)
Definition Handshake.h:95
AWS_ORGANIZATIONS_API Handshake(Aws::Utils::Json::JsonView jsonValue)
void SetState(HandshakeState value)
Definition Handshake.h:125
Handshake & WithExpirationTimestamp(ExpirationTimestampT &&value)
Definition Handshake.h:165
const Aws::Vector< HandshakeResource > & GetResources() const
Definition Handshake.h:201
AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
Handshake & WithArn(ArnT &&value)
Definition Handshake.h:81
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue