7#include <aws/globalaccelerator/GlobalAccelerator_EXPORTS.h>
8#include <aws/globalaccelerator/GlobalAcceleratorRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/globalaccelerator/model/Resource.h>
12#include <aws/globalaccelerator/model/Tag.h>
14#include <aws/core/utils/UUID.h>
18namespace GlobalAccelerator
47 template<
typename NameT = Aws::String>
48 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
49 template<
typename NameT = Aws::String>
61 template<
typename PrincipalsT = Aws::Vector<Aws::String>>
62 void SetPrincipals(PrincipalsT&& value) { m_principalsHasBeenSet =
true; m_principals = std::forward<PrincipalsT>(value); }
63 template<
typename PrincipalsT = Aws::Vector<Aws::String>>
65 template<
typename PrincipalsT = Aws::String>
78 template<
typename ResourcesT = Aws::Vector<Resource>>
79 void SetResources(ResourcesT&& value) { m_resourcesHasBeenSet =
true; m_resources = std::forward<ResourcesT>(value); }
80 template<
typename ResourcesT = Aws::Vector<Resource>>
82 template<
typename ResourcesT = Resource>
93 template<
typename IdempotencyTokenT = Aws::String>
94 void SetIdempotencyToken(IdempotencyTokenT&& value) { m_idempotencyTokenHasBeenSet =
true; m_idempotencyToken = std::forward<IdempotencyTokenT>(value); }
95 template<
typename IdempotencyTokenT = Aws::String>
107 template<
typename TagsT = Aws::Vector<Tag>>
108 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
109 template<
typename TagsT = Aws::Vector<Tag>>
111 template<
typename TagsT = Tag>
117 bool m_nameHasBeenSet =
false;
120 bool m_principalsHasBeenSet =
false;
123 bool m_resourcesHasBeenSet =
false;
126 bool m_idempotencyTokenHasBeenSet =
true;
129 bool m_tagsHasBeenSet =
false;
AWS_GLOBALACCELERATOR_API CreateCrossAccountAttachmentRequest()=default
CreateCrossAccountAttachmentRequest & WithTags(TagsT &&value)
CreateCrossAccountAttachmentRequest & AddTags(TagsT &&value)
void SetTags(TagsT &&value)
const Aws::Vector< Aws::String > & GetPrincipals() const
bool TagsHasBeenSet() const
CreateCrossAccountAttachmentRequest & WithPrincipals(PrincipalsT &&value)
virtual const char * GetServiceRequestName() const override
void SetResources(ResourcesT &&value)
void SetPrincipals(PrincipalsT &&value)
CreateCrossAccountAttachmentRequest & WithIdempotencyToken(IdempotencyTokenT &&value)
bool ResourcesHasBeenSet() const
AWS_GLOBALACCELERATOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
bool PrincipalsHasBeenSet() const
CreateCrossAccountAttachmentRequest & AddResources(ResourcesT &&value)
bool NameHasBeenSet() const
void SetIdempotencyToken(IdempotencyTokenT &&value)
void SetName(NameT &&value)
const Aws::Vector< Resource > & GetResources() const
const Aws::String & GetIdempotencyToken() const
CreateCrossAccountAttachmentRequest & AddPrincipals(PrincipalsT &&value)
CreateCrossAccountAttachmentRequest & WithName(NameT &&value)
AWS_GLOBALACCELERATOR_API Aws::String SerializePayload() const override
bool IdempotencyTokenHasBeenSet() const
const Aws::String & GetName() const
const Aws::Vector< Tag > & GetTags() const
CreateCrossAccountAttachmentRequest & WithResources(ResourcesT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector