AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
Handshake.h
1
6#pragma once
7#include <aws/organizations/Organizations_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/organizations/model/HandshakeState.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/organizations/model/ActionType.h>
13#include <aws/organizations/model/HandshakeParty.h>
14#include <aws/organizations/model/HandshakeResource.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace Organizations
28{
29namespace Model
30{
31
45 {
46 public:
47 AWS_ORGANIZATIONS_API Handshake() = default;
48 AWS_ORGANIZATIONS_API Handshake(Aws::Utils::Json::JsonView jsonValue);
49 AWS_ORGANIZATIONS_API Handshake& operator=(Aws::Utils::Json::JsonView jsonValue);
50 AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
51
52
54
60 inline const Aws::String& GetId() const { return m_id; }
61 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
62 template<typename IdT = Aws::String>
63 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
64 template<typename IdT = Aws::String>
65 Handshake& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
67
69
76 inline const Aws::String& GetArn() const { return m_arn; }
77 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
78 template<typename ArnT = Aws::String>
79 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
80 template<typename ArnT = Aws::String>
81 Handshake& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
83
85
89 inline const Aws::Vector<HandshakeParty>& GetParties() const { return m_parties; }
90 inline bool PartiesHasBeenSet() const { return m_partiesHasBeenSet; }
91 template<typename PartiesT = Aws::Vector<HandshakeParty>>
92 void SetParties(PartiesT&& value) { m_partiesHasBeenSet = true; m_parties = std::forward<PartiesT>(value); }
93 template<typename PartiesT = Aws::Vector<HandshakeParty>>
94 Handshake& WithParties(PartiesT&& value) { SetParties(std::forward<PartiesT>(value)); return *this;}
95 template<typename PartiesT = HandshakeParty>
96 Handshake& AddParties(PartiesT&& value) { m_partiesHasBeenSet = true; m_parties.emplace_back(std::forward<PartiesT>(value)); return *this; }
98
100
118 inline HandshakeState GetState() const { return m_state; }
119 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
120 inline void SetState(HandshakeState value) { m_stateHasBeenSet = true; m_state = value; }
121 inline Handshake& WithState(HandshakeState value) { SetState(value); return *this;}
123
125
128 inline const Aws::Utils::DateTime& GetRequestedTimestamp() const { return m_requestedTimestamp; }
129 inline bool RequestedTimestampHasBeenSet() const { return m_requestedTimestampHasBeenSet; }
130 template<typename RequestedTimestampT = Aws::Utils::DateTime>
131 void SetRequestedTimestamp(RequestedTimestampT&& value) { m_requestedTimestampHasBeenSet = true; m_requestedTimestamp = std::forward<RequestedTimestampT>(value); }
132 template<typename RequestedTimestampT = Aws::Utils::DateTime>
133 Handshake& WithRequestedTimestamp(RequestedTimestampT&& value) { SetRequestedTimestamp(std::forward<RequestedTimestampT>(value)); return *this;}
135
137
142 inline const Aws::Utils::DateTime& GetExpirationTimestamp() const { return m_expirationTimestamp; }
143 inline bool ExpirationTimestampHasBeenSet() const { return m_expirationTimestampHasBeenSet; }
144 template<typename ExpirationTimestampT = Aws::Utils::DateTime>
145 void SetExpirationTimestamp(ExpirationTimestampT&& value) { m_expirationTimestampHasBeenSet = true; m_expirationTimestamp = std::forward<ExpirationTimestampT>(value); }
146 template<typename ExpirationTimestampT = Aws::Utils::DateTime>
147 Handshake& WithExpirationTimestamp(ExpirationTimestampT&& value) { SetExpirationTimestamp(std::forward<ExpirationTimestampT>(value)); return *this;}
149
151
167 inline ActionType GetAction() const { return m_action; }
168 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
169 inline void SetAction(ActionType value) { m_actionHasBeenSet = true; m_action = value; }
170 inline Handshake& WithAction(ActionType value) { SetAction(value); return *this;}
172
174
177 inline const Aws::Vector<HandshakeResource>& GetResources() const { return m_resources; }
178 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
179 template<typename ResourcesT = Aws::Vector<HandshakeResource>>
180 void SetResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources = std::forward<ResourcesT>(value); }
181 template<typename ResourcesT = Aws::Vector<HandshakeResource>>
182 Handshake& WithResources(ResourcesT&& value) { SetResources(std::forward<ResourcesT>(value)); return *this;}
183 template<typename ResourcesT = HandshakeResource>
184 Handshake& AddResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources.emplace_back(std::forward<ResourcesT>(value)); return *this; }
186 private:
187
188 Aws::String m_id;
189 bool m_idHasBeenSet = false;
190
191 Aws::String m_arn;
192 bool m_arnHasBeenSet = false;
193
195 bool m_partiesHasBeenSet = false;
196
198 bool m_stateHasBeenSet = false;
199
200 Aws::Utils::DateTime m_requestedTimestamp{};
201 bool m_requestedTimestampHasBeenSet = false;
202
203 Aws::Utils::DateTime m_expirationTimestamp{};
204 bool m_expirationTimestampHasBeenSet = false;
205
207 bool m_actionHasBeenSet = false;
208
210 bool m_resourcesHasBeenSet = false;
211 };
212
213} // namespace Model
214} // namespace Organizations
215} // namespace Aws
const Aws::Utils::DateTime & GetExpirationTimestamp() const
Definition Handshake.h:142
const Aws::Vector< HandshakeParty > & GetParties() const
Definition Handshake.h:89
void SetExpirationTimestamp(ExpirationTimestampT &&value)
Definition Handshake.h:145
Handshake & WithResources(ResourcesT &&value)
Definition Handshake.h:182
void SetAction(ActionType value)
Definition Handshake.h:169
void SetRequestedTimestamp(RequestedTimestampT &&value)
Definition Handshake.h:131
const Aws::Utils::DateTime & GetRequestedTimestamp() const
Definition Handshake.h:128
HandshakeState GetState() const
Definition Handshake.h:118
Handshake & WithAction(ActionType value)
Definition Handshake.h:170
Handshake & WithState(HandshakeState value)
Definition Handshake.h:121
Handshake & WithParties(PartiesT &&value)
Definition Handshake.h:94
Handshake & WithRequestedTimestamp(RequestedTimestampT &&value)
Definition Handshake.h:133
AWS_ORGANIZATIONS_API Handshake & operator=(Aws::Utils::Json::JsonView jsonValue)
Handshake & WithId(IdT &&value)
Definition Handshake.h:65
void SetResources(ResourcesT &&value)
Definition Handshake.h:180
Handshake & AddParties(PartiesT &&value)
Definition Handshake.h:96
const Aws::String & GetArn() const
Definition Handshake.h:76
AWS_ORGANIZATIONS_API Handshake()=default
const Aws::String & GetId() const
Definition Handshake.h:60
Handshake & AddResources(ResourcesT &&value)
Definition Handshake.h:184
void SetParties(PartiesT &&value)
Definition Handshake.h:92
AWS_ORGANIZATIONS_API Handshake(Aws::Utils::Json::JsonView jsonValue)
void SetState(HandshakeState value)
Definition Handshake.h:120
Handshake & WithExpirationTimestamp(ExpirationTimestampT &&value)
Definition Handshake.h:147
const Aws::Vector< HandshakeResource > & GetResources() const
Definition Handshake.h:177
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