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>
27namespace Organizations
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>
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>
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>>
95 template<
typename PartiesT = HandshakeParty>
96 Handshake&
AddParties(PartiesT&& value) { m_partiesHasBeenSet =
true; m_parties.emplace_back(std::forward<PartiesT>(value));
return *
this; }
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>
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>
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>>
183 template<
typename ResourcesT = HandshakeResource>
184 Handshake&
AddResources(ResourcesT&& value) { m_resourcesHasBeenSet =
true; m_resources.emplace_back(std::forward<ResourcesT>(value));
return *
this; }
189 bool m_idHasBeenSet =
false;
192 bool m_arnHasBeenSet =
false;
195 bool m_partiesHasBeenSet =
false;
198 bool m_stateHasBeenSet =
false;
201 bool m_requestedTimestampHasBeenSet =
false;
204 bool m_expirationTimestampHasBeenSet =
false;
207 bool m_actionHasBeenSet =
false;
210 bool m_resourcesHasBeenSet =
false;
const Aws::Utils::DateTime & GetExpirationTimestamp() const
const Aws::Vector< HandshakeParty > & GetParties() const
void SetExpirationTimestamp(ExpirationTimestampT &&value)
Handshake & WithResources(ResourcesT &&value)
void SetAction(ActionType value)
void SetRequestedTimestamp(RequestedTimestampT &&value)
const Aws::Utils::DateTime & GetRequestedTimestamp() const
bool RequestedTimestampHasBeenSet() const
HandshakeState GetState() const
bool ExpirationTimestampHasBeenSet() const
Handshake & WithAction(ActionType value)
Handshake & WithState(HandshakeState value)
Handshake & WithParties(PartiesT &&value)
Handshake & WithRequestedTimestamp(RequestedTimestampT &&value)
AWS_ORGANIZATIONS_API Handshake & operator=(Aws::Utils::Json::JsonView jsonValue)
Handshake & WithId(IdT &&value)
bool StateHasBeenSet() const
void SetResources(ResourcesT &&value)
Handshake & AddParties(PartiesT &&value)
const Aws::String & GetArn() const
AWS_ORGANIZATIONS_API Handshake()=default
void SetArn(ArnT &&value)
const Aws::String & GetId() const
bool ActionHasBeenSet() const
bool IdHasBeenSet() const
ActionType GetAction() const
bool ArnHasBeenSet() const
Handshake & AddResources(ResourcesT &&value)
void SetParties(PartiesT &&value)
AWS_ORGANIZATIONS_API Handshake(Aws::Utils::Json::JsonView jsonValue)
void SetState(HandshakeState value)
bool PartiesHasBeenSet() const
Handshake & WithExpirationTimestamp(ExpirationTimestampT &&value)
const Aws::Vector< HandshakeResource > & GetResources() const
AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
Handshake & WithArn(ArnT &&value)
bool ResourcesHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue