AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
63 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
64 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
65 inline Handshake& WithId(const Aws::String& value) { SetId(value); return *this;}
66 inline Handshake& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
67 inline Handshake& WithId(const char* value) { SetId(value); return *this;}
69
71
78 inline const Aws::String& GetArn() const{ return m_arn; }
79 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
80 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
81 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
82 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
83 inline Handshake& WithArn(const Aws::String& value) { SetArn(value); return *this;}
84 inline Handshake& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
85 inline Handshake& WithArn(const char* value) { SetArn(value); return *this;}
87
89
93 inline const Aws::Vector<HandshakeParty>& GetParties() const{ return m_parties; }
94 inline bool PartiesHasBeenSet() const { return m_partiesHasBeenSet; }
95 inline void SetParties(const Aws::Vector<HandshakeParty>& value) { m_partiesHasBeenSet = true; m_parties = value; }
96 inline void SetParties(Aws::Vector<HandshakeParty>&& value) { m_partiesHasBeenSet = true; m_parties = std::move(value); }
97 inline Handshake& WithParties(const Aws::Vector<HandshakeParty>& value) { SetParties(value); return *this;}
98 inline Handshake& WithParties(Aws::Vector<HandshakeParty>&& value) { SetParties(std::move(value)); return *this;}
99 inline Handshake& AddParties(const HandshakeParty& value) { m_partiesHasBeenSet = true; m_parties.push_back(value); return *this; }
100 inline Handshake& AddParties(HandshakeParty&& value) { m_partiesHasBeenSet = true; m_parties.push_back(std::move(value)); return *this; }
102
104
122 inline const HandshakeState& GetState() const{ return m_state; }
123 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
124 inline void SetState(const HandshakeState& value) { m_stateHasBeenSet = true; m_state = value; }
125 inline void SetState(HandshakeState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
126 inline Handshake& WithState(const HandshakeState& value) { SetState(value); return *this;}
127 inline Handshake& WithState(HandshakeState&& value) { SetState(std::move(value)); return *this;}
129
131
134 inline const Aws::Utils::DateTime& GetRequestedTimestamp() const{ return m_requestedTimestamp; }
135 inline bool RequestedTimestampHasBeenSet() const { return m_requestedTimestampHasBeenSet; }
136 inline void SetRequestedTimestamp(const Aws::Utils::DateTime& value) { m_requestedTimestampHasBeenSet = true; m_requestedTimestamp = value; }
137 inline void SetRequestedTimestamp(Aws::Utils::DateTime&& value) { m_requestedTimestampHasBeenSet = true; m_requestedTimestamp = std::move(value); }
138 inline Handshake& WithRequestedTimestamp(const Aws::Utils::DateTime& value) { SetRequestedTimestamp(value); return *this;}
139 inline Handshake& WithRequestedTimestamp(Aws::Utils::DateTime&& value) { SetRequestedTimestamp(std::move(value)); return *this;}
141
143
148 inline const Aws::Utils::DateTime& GetExpirationTimestamp() const{ return m_expirationTimestamp; }
149 inline bool ExpirationTimestampHasBeenSet() const { return m_expirationTimestampHasBeenSet; }
150 inline void SetExpirationTimestamp(const Aws::Utils::DateTime& value) { m_expirationTimestampHasBeenSet = true; m_expirationTimestamp = value; }
151 inline void SetExpirationTimestamp(Aws::Utils::DateTime&& value) { m_expirationTimestampHasBeenSet = true; m_expirationTimestamp = std::move(value); }
153 inline Handshake& WithExpirationTimestamp(Aws::Utils::DateTime&& value) { SetExpirationTimestamp(std::move(value)); return *this;}
155
157
173 inline const ActionType& GetAction() const{ return m_action; }
174 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
175 inline void SetAction(const ActionType& value) { m_actionHasBeenSet = true; m_action = value; }
176 inline void SetAction(ActionType&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
177 inline Handshake& WithAction(const ActionType& value) { SetAction(value); return *this;}
178 inline Handshake& WithAction(ActionType&& value) { SetAction(std::move(value)); return *this;}
180
182
185 inline const Aws::Vector<HandshakeResource>& GetResources() const{ return m_resources; }
186 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
187 inline void SetResources(const Aws::Vector<HandshakeResource>& value) { m_resourcesHasBeenSet = true; m_resources = value; }
188 inline void SetResources(Aws::Vector<HandshakeResource>&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); }
189 inline Handshake& WithResources(const Aws::Vector<HandshakeResource>& value) { SetResources(value); return *this;}
190 inline Handshake& WithResources(Aws::Vector<HandshakeResource>&& value) { SetResources(std::move(value)); return *this;}
191 inline Handshake& AddResources(const HandshakeResource& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
192 inline Handshake& AddResources(HandshakeResource&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(value)); return *this; }
194 private:
195
196 Aws::String m_id;
197 bool m_idHasBeenSet = false;
198
199 Aws::String m_arn;
200 bool m_arnHasBeenSet = false;
201
203 bool m_partiesHasBeenSet = false;
204
205 HandshakeState m_state;
206 bool m_stateHasBeenSet = false;
207
208 Aws::Utils::DateTime m_requestedTimestamp;
209 bool m_requestedTimestampHasBeenSet = false;
210
211 Aws::Utils::DateTime m_expirationTimestamp;
212 bool m_expirationTimestampHasBeenSet = false;
213
214 ActionType m_action;
215 bool m_actionHasBeenSet = false;
216
218 bool m_resourcesHasBeenSet = false;
219 };
220
221} // namespace Model
222} // namespace Organizations
223} // namespace Aws
const Aws::Utils::DateTime & GetExpirationTimestamp() const
Definition Handshake.h:148
void SetState(HandshakeState &&value)
Definition Handshake.h:125
const Aws::Vector< HandshakeParty > & GetParties() const
Definition Handshake.h:93
Handshake & AddResources(const HandshakeResource &value)
Definition Handshake.h:191
Handshake & WithState(HandshakeState &&value)
Definition Handshake.h:127
const Aws::Utils::DateTime & GetRequestedTimestamp() const
Definition Handshake.h:134
Handshake & WithId(const Aws::String &value)
Definition Handshake.h:65
Handshake & WithId(const char *value)
Definition Handshake.h:67
Handshake & AddParties(HandshakeParty &&value)
Definition Handshake.h:100
Handshake & WithId(Aws::String &&value)
Definition Handshake.h:66
void SetAction(const ActionType &value)
Definition Handshake.h:175
Handshake & WithRequestedTimestamp(Aws::Utils::DateTime &&value)
Definition Handshake.h:139
void SetRequestedTimestamp(Aws::Utils::DateTime &&value)
Definition Handshake.h:137
Handshake & WithParties(const Aws::Vector< HandshakeParty > &value)
Definition Handshake.h:97
Handshake & WithParties(Aws::Vector< HandshakeParty > &&value)
Definition Handshake.h:98
void SetId(Aws::String &&value)
Definition Handshake.h:63
void SetArn(const char *value)
Definition Handshake.h:82
AWS_ORGANIZATIONS_API Handshake & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAction(ActionType &&value)
Definition Handshake.h:176
void SetRequestedTimestamp(const Aws::Utils::DateTime &value)
Definition Handshake.h:136
const Aws::String & GetArn() const
Definition Handshake.h:78
void SetExpirationTimestamp(const Aws::Utils::DateTime &value)
Definition Handshake.h:150
const HandshakeState & GetState() const
Definition Handshake.h:122
Handshake & AddResources(HandshakeResource &&value)
Definition Handshake.h:192
const Aws::String & GetId() const
Definition Handshake.h:60
void SetId(const Aws::String &value)
Definition Handshake.h:62
Handshake & WithArn(Aws::String &&value)
Definition Handshake.h:84
void SetArn(Aws::String &&value)
Definition Handshake.h:81
void SetExpirationTimestamp(Aws::Utils::DateTime &&value)
Definition Handshake.h:151
Handshake & WithResources(Aws::Vector< HandshakeResource > &&value)
Definition Handshake.h:190
Handshake & WithResources(const Aws::Vector< HandshakeResource > &value)
Definition Handshake.h:189
void SetState(const HandshakeState &value)
Definition Handshake.h:124
Handshake & AddParties(const HandshakeParty &value)
Definition Handshake.h:99
Handshake & WithExpirationTimestamp(const Aws::Utils::DateTime &value)
Definition Handshake.h:152
Handshake & WithAction(ActionType &&value)
Definition Handshake.h:178
Handshake & WithExpirationTimestamp(Aws::Utils::DateTime &&value)
Definition Handshake.h:153
void SetParties(const Aws::Vector< HandshakeParty > &value)
Definition Handshake.h:95
AWS_ORGANIZATIONS_API Handshake(Aws::Utils::Json::JsonView jsonValue)
void SetId(const char *value)
Definition Handshake.h:64
Handshake & WithRequestedTimestamp(const Aws::Utils::DateTime &value)
Definition Handshake.h:138
void SetResources(Aws::Vector< HandshakeResource > &&value)
Definition Handshake.h:188
Handshake & WithAction(const ActionType &value)
Definition Handshake.h:177
Handshake & WithArn(const Aws::String &value)
Definition Handshake.h:83
void SetArn(const Aws::String &value)
Definition Handshake.h:80
AWS_ORGANIZATIONS_API Handshake()
Handshake & WithArn(const char *value)
Definition Handshake.h:85
Handshake & WithState(const HandshakeState &value)
Definition Handshake.h:126
const Aws::Vector< HandshakeResource > & GetResources() const
Definition Handshake.h:185
const ActionType & GetAction() const
Definition Handshake.h:173
AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetParties(Aws::Vector< HandshakeParty > &&value)
Definition Handshake.h:96
void SetResources(const Aws::Vector< HandshakeResource > &value)
Definition Handshake.h:187
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue