AWS SDK for C++  1.9.102
AWS SDK for C++
Handshake.h
Go to the documentation of this file.
1 
6 #pragma once
15 #include <utility>
16 
17 namespace Aws
18 {
19 namespace Utils
20 {
21 namespace Json
22 {
23  class JsonValue;
24  class JsonView;
25 } // namespace Json
26 } // namespace Utils
27 namespace Organizations
28 {
29 namespace Model
30 {
31 
45  {
46  public:
51 
52 
59  inline const Aws::String& GetId() const{ return m_id; }
60 
67  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
68 
75  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
76 
83  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
84 
91  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
92 
99  inline Handshake& WithId(const Aws::String& value) { SetId(value); return *this;}
100 
107  inline Handshake& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
108 
115  inline Handshake& WithId(const char* value) { SetId(value); return *this;}
116 
117 
125  inline const Aws::String& GetArn() const{ return m_arn; }
126 
134  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
135 
143  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
144 
152  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
153 
161  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
162 
170  inline Handshake& WithArn(const Aws::String& value) { SetArn(value); return *this;}
171 
179  inline Handshake& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
180 
188  inline Handshake& WithArn(const char* value) { SetArn(value); return *this;}
189 
190 
195  inline const Aws::Vector<HandshakeParty>& GetParties() const{ return m_parties; }
196 
201  inline bool PartiesHasBeenSet() const { return m_partiesHasBeenSet; }
202 
207  inline void SetParties(const Aws::Vector<HandshakeParty>& value) { m_partiesHasBeenSet = true; m_parties = value; }
208 
213  inline void SetParties(Aws::Vector<HandshakeParty>&& value) { m_partiesHasBeenSet = true; m_parties = std::move(value); }
214 
219  inline Handshake& WithParties(const Aws::Vector<HandshakeParty>& value) { SetParties(value); return *this;}
220 
225  inline Handshake& WithParties(Aws::Vector<HandshakeParty>&& value) { SetParties(std::move(value)); return *this;}
226 
231  inline Handshake& AddParties(const HandshakeParty& value) { m_partiesHasBeenSet = true; m_parties.push_back(value); return *this; }
232 
237  inline Handshake& AddParties(HandshakeParty&& value) { m_partiesHasBeenSet = true; m_parties.push_back(std::move(value)); return *this; }
238 
239 
258  inline const HandshakeState& GetState() const{ return m_state; }
259 
278  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
279 
298  inline void SetState(const HandshakeState& value) { m_stateHasBeenSet = true; m_state = value; }
299 
318  inline void SetState(HandshakeState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
319 
338  inline Handshake& WithState(const HandshakeState& value) { SetState(value); return *this;}
339 
358  inline Handshake& WithState(HandshakeState&& value) { SetState(std::move(value)); return *this;}
359 
360 
364  inline const Aws::Utils::DateTime& GetRequestedTimestamp() const{ return m_requestedTimestamp; }
365 
369  inline bool RequestedTimestampHasBeenSet() const { return m_requestedTimestampHasBeenSet; }
370 
374  inline void SetRequestedTimestamp(const Aws::Utils::DateTime& value) { m_requestedTimestampHasBeenSet = true; m_requestedTimestamp = value; }
375 
379  inline void SetRequestedTimestamp(Aws::Utils::DateTime&& value) { m_requestedTimestampHasBeenSet = true; m_requestedTimestamp = std::move(value); }
380 
384  inline Handshake& WithRequestedTimestamp(const Aws::Utils::DateTime& value) { SetRequestedTimestamp(value); return *this;}
385 
389  inline Handshake& WithRequestedTimestamp(Aws::Utils::DateTime&& value) { SetRequestedTimestamp(std::move(value)); return *this;}
390 
391 
397  inline const Aws::Utils::DateTime& GetExpirationTimestamp() const{ return m_expirationTimestamp; }
398 
404  inline bool ExpirationTimestampHasBeenSet() const { return m_expirationTimestampHasBeenSet; }
405 
411  inline void SetExpirationTimestamp(const Aws::Utils::DateTime& value) { m_expirationTimestampHasBeenSet = true; m_expirationTimestamp = value; }
412 
418  inline void SetExpirationTimestamp(Aws::Utils::DateTime&& value) { m_expirationTimestampHasBeenSet = true; m_expirationTimestamp = std::move(value); }
419 
425  inline Handshake& WithExpirationTimestamp(const Aws::Utils::DateTime& value) { SetExpirationTimestamp(value); return *this;}
426 
432  inline Handshake& WithExpirationTimestamp(Aws::Utils::DateTime&& value) { SetExpirationTimestamp(std::move(value)); return *this;}
433 
434 
451  inline const ActionType& GetAction() const{ return m_action; }
452 
469  inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
470 
487  inline void SetAction(const ActionType& value) { m_actionHasBeenSet = true; m_action = value; }
488 
505  inline void SetAction(ActionType&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
506 
523  inline Handshake& WithAction(const ActionType& value) { SetAction(value); return *this;}
524 
541  inline Handshake& WithAction(ActionType&& value) { SetAction(std::move(value)); return *this;}
542 
543 
547  inline const Aws::Vector<HandshakeResource>& GetResources() const{ return m_resources; }
548 
552  inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
553 
557  inline void SetResources(const Aws::Vector<HandshakeResource>& value) { m_resourcesHasBeenSet = true; m_resources = value; }
558 
562  inline void SetResources(Aws::Vector<HandshakeResource>&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); }
563 
567  inline Handshake& WithResources(const Aws::Vector<HandshakeResource>& value) { SetResources(value); return *this;}
568 
572  inline Handshake& WithResources(Aws::Vector<HandshakeResource>&& value) { SetResources(std::move(value)); return *this;}
573 
577  inline Handshake& AddResources(const HandshakeResource& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
578 
582  inline Handshake& AddResources(HandshakeResource&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(value)); return *this; }
583 
584  private:
585 
586  Aws::String m_id;
587  bool m_idHasBeenSet;
588 
589  Aws::String m_arn;
590  bool m_arnHasBeenSet;
591 
592  Aws::Vector<HandshakeParty> m_parties;
593  bool m_partiesHasBeenSet;
594 
595  HandshakeState m_state;
596  bool m_stateHasBeenSet;
597 
598  Aws::Utils::DateTime m_requestedTimestamp;
599  bool m_requestedTimestampHasBeenSet;
600 
601  Aws::Utils::DateTime m_expirationTimestamp;
602  bool m_expirationTimestampHasBeenSet;
603 
604  ActionType m_action;
605  bool m_actionHasBeenSet;
606 
607  Aws::Vector<HandshakeResource> m_resources;
608  bool m_resourcesHasBeenSet;
609  };
610 
611 } // namespace Model
612 } // namespace Organizations
613 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Organizations::Model::HandshakeParty
Definition: HandshakeParty.h:33
Aws::Organizations::Model::Handshake::SetState
void SetState(HandshakeState &&value)
Definition: Handshake.h:318
Aws::Organizations::Model::Handshake::WithExpirationTimestamp
Handshake & WithExpirationTimestamp(const Aws::Utils::DateTime &value)
Definition: Handshake.h:425
Aws::Organizations::Model::Handshake::Handshake
Handshake(Aws::Utils::Json::JsonView jsonValue)
Aws::Organizations::Model::HandshakeResource
Definition: HandshakeResource.h:36
Aws::Organizations::Model::Handshake::ActionHasBeenSet
bool ActionHasBeenSet() const
Definition: Handshake.h:469
Aws::Organizations::Model::Handshake::GetAction
const ActionType & GetAction() const
Definition: Handshake.h:451
Aws::Organizations::Model::ActionType
ActionType
Definition: ActionType.h:17
Aws::Organizations::Model::Handshake::AddResources
Handshake & AddResources(HandshakeResource &&value)
Definition: Handshake.h:582
Aws::Organizations::Model::Handshake::GetState
const HandshakeState & GetState() const
Definition: Handshake.h:258
Aws::Organizations::Model::Handshake::AddResources
Handshake & AddResources(const HandshakeResource &value)
Definition: Handshake.h:577
Aws::Organizations::Model::Handshake::SetRequestedTimestamp
void SetRequestedTimestamp(Aws::Utils::DateTime &&value)
Definition: Handshake.h:379
DateTime.h
Aws::Organizations::Model::Handshake::SetRequestedTimestamp
void SetRequestedTimestamp(const Aws::Utils::DateTime &value)
Definition: Handshake.h:374
Aws::Organizations::Model::Handshake::IdHasBeenSet
bool IdHasBeenSet() const
Definition: Handshake.h:67
Aws::Organizations::Model::Handshake::GetExpirationTimestamp
const Aws::Utils::DateTime & GetExpirationTimestamp() const
Definition: Handshake.h:397
Aws::Organizations::Model::Handshake::PartiesHasBeenSet
bool PartiesHasBeenSet() const
Definition: Handshake.h:201
Aws::Organizations::Model::Handshake::WithParties
Handshake & WithParties(const Aws::Vector< HandshakeParty > &value)
Definition: Handshake.h:219
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Organizations::Model::Handshake::WithRequestedTimestamp
Handshake & WithRequestedTimestamp(const Aws::Utils::DateTime &value)
Definition: Handshake.h:384
Aws::Organizations::Model::Handshake
Definition: Handshake.h:45
Aws::Organizations::Model::Handshake::GetParties
const Aws::Vector< HandshakeParty > & GetParties() const
Definition: Handshake.h:195
Aws::Organizations::Model::Handshake::SetId
void SetId(const char *value)
Definition: Handshake.h:91
Aws::Organizations::Model::Handshake::SetResources
void SetResources(const Aws::Vector< HandshakeResource > &value)
Definition: Handshake.h:557
AWSVector.h
Aws::Organizations::Model::Handshake::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: Handshake.h:134
Aws::Organizations::Model::Handshake::SetArn
void SetArn(const Aws::String &value)
Definition: Handshake.h:143
Aws::Organizations::Model::Handshake::operator=
Handshake & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Organizations::Model::Handshake::SetArn
void SetArn(Aws::String &&value)
Definition: Handshake.h:152
Aws::Organizations::Model::Handshake::WithRequestedTimestamp
Handshake & WithRequestedTimestamp(Aws::Utils::DateTime &&value)
Definition: Handshake.h:389
Aws::Organizations::Model::Handshake::ExpirationTimestampHasBeenSet
bool ExpirationTimestampHasBeenSet() const
Definition: Handshake.h:404
Aws::Organizations::Model::Handshake::SetParties
void SetParties(Aws::Vector< HandshakeParty > &&value)
Definition: Handshake.h:213
Aws::Organizations::Model::Handshake::GetId
const Aws::String & GetId() const
Definition: Handshake.h:59
Aws::Organizations::Model::Handshake::SetAction
void SetAction(const ActionType &value)
Definition: Handshake.h:487
Aws::Organizations::Model::Handshake::WithParties
Handshake & WithParties(Aws::Vector< HandshakeParty > &&value)
Definition: Handshake.h:225
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::Handshake::SetExpirationTimestamp
void SetExpirationTimestamp(const Aws::Utils::DateTime &value)
Definition: Handshake.h:411
Aws::Organizations::Model::HandshakeState
HandshakeState
Definition: HandshakeState.h:17
Aws::Organizations::Model::Handshake::WithExpirationTimestamp
Handshake & WithExpirationTimestamp(Aws::Utils::DateTime &&value)
Definition: Handshake.h:432
ActionType.h
Aws::Organizations::Model::Handshake::WithState
Handshake & WithState(const HandshakeState &value)
Definition: Handshake.h:338
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Organizations::Model::Handshake::StateHasBeenSet
bool StateHasBeenSet() const
Definition: Handshake.h:278
Aws::Organizations::Model::Handshake::SetState
void SetState(const HandshakeState &value)
Definition: Handshake.h:298
Aws::Organizations::Model::Handshake::WithAction
Handshake & WithAction(const ActionType &value)
Definition: Handshake.h:523
Aws::Organizations::Model::Handshake::WithId
Handshake & WithId(const Aws::String &value)
Definition: Handshake.h:99
Aws::Organizations::Model::Handshake::SetResources
void SetResources(Aws::Vector< HandshakeResource > &&value)
Definition: Handshake.h:562
Aws::Organizations::Model::Handshake::ResourcesHasBeenSet
bool ResourcesHasBeenSet() const
Definition: Handshake.h:552
Aws::Organizations::Model::Handshake::AddParties
Handshake & AddParties(HandshakeParty &&value)
Definition: Handshake.h:237
Aws::Organizations::Model::Handshake::Handshake
Handshake()
Aws::Organizations::Model::Handshake::WithArn
Handshake & WithArn(const Aws::String &value)
Definition: Handshake.h:170
Aws::Organizations::Model::Handshake::SetParties
void SetParties(const Aws::Vector< HandshakeParty > &value)
Definition: Handshake.h:207
Aws::Organizations::Model::Handshake::GetResources
const Aws::Vector< HandshakeResource > & GetResources() const
Definition: Handshake.h:547
HandshakeResource.h
Aws::Organizations::Model::Handshake::SetExpirationTimestamp
void SetExpirationTimestamp(Aws::Utils::DateTime &&value)
Definition: Handshake.h:418
Aws::Organizations::Model::Handshake::SetAction
void SetAction(ActionType &&value)
Definition: Handshake.h:505
Aws::Organizations::Model::Handshake::GetRequestedTimestamp
const Aws::Utils::DateTime & GetRequestedTimestamp() const
Definition: Handshake.h:364
Aws
Definition: AccessManagementClient.h:15
Aws::Organizations::Model::Handshake::SetArn
void SetArn(const char *value)
Definition: Handshake.h:161
HandshakeState.h
Aws::Organizations::Model::Handshake::WithId
Handshake & WithId(Aws::String &&value)
Definition: Handshake.h:107
Aws::Organizations::Model::Handshake::GetArn
const Aws::String & GetArn() const
Definition: Handshake.h:125
Aws::Organizations::Model::Handshake::SetId
void SetId(Aws::String &&value)
Definition: Handshake.h:83
Aws::Organizations::Model::Handshake::WithResources
Handshake & WithResources(const Aws::Vector< HandshakeResource > &value)
Definition: Handshake.h:567
Aws::Organizations::Model::Handshake::WithArn
Handshake & WithArn(const char *value)
Definition: Handshake.h:188
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Organizations_EXPORTS.h
Aws::Organizations::Model::Handshake::SetId
void SetId(const Aws::String &value)
Definition: Handshake.h:75
Aws::Organizations::Model::Handshake::WithId
Handshake & WithId(const char *value)
Definition: Handshake.h:115
Aws::Organizations::Model::Handshake::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Organizations::Model::Handshake::WithState
Handshake & WithState(HandshakeState &&value)
Definition: Handshake.h:358
Aws::Organizations::Model::Handshake::RequestedTimestampHasBeenSet
bool RequestedTimestampHasBeenSet() const
Definition: Handshake.h:369
HandshakeParty.h
Aws::Organizations::Model::Handshake::AddParties
Handshake & AddParties(const HandshakeParty &value)
Definition: Handshake.h:231
Aws::Organizations::Model::Handshake::WithAction
Handshake & WithAction(ActionType &&value)
Definition: Handshake.h:541
Aws::Organizations::Model::Handshake::WithResources
Handshake & WithResources(Aws::Vector< HandshakeResource > &&value)
Definition: Handshake.h:572
Aws::Organizations::Model::Handshake::WithArn
Handshake & WithArn(Aws::String &&value)
Definition: Handshake.h:179