7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ram/RAMRequest.h>
10#include <aws/ram/RAM_EXPORTS.h>
11#include <aws/ram/model/Tag.h>
39 template <
typename NameT = Aws::String>
41 m_nameHasBeenSet =
true;
42 m_name = std::forward<NameT>(value);
44 template <
typename NameT = Aws::String>
46 SetName(std::forward<NameT>(value));
58 template <
typename ResourceArnsT = Aws::Vector<Aws::String>>
60 m_resourceArnsHasBeenSet =
true;
61 m_resourceArns = std::forward<ResourceArnsT>(value);
63 template <
typename ResourceArnsT = Aws::Vector<Aws::String>>
68 template <
typename ResourceArnsT = Aws::String>
70 m_resourceArnsHasBeenSet =
true;
71 m_resourceArns.emplace_back(std::forward<ResourceArnsT>(value));
99 template <
typename PrincipalsT = Aws::Vector<Aws::String>>
101 m_principalsHasBeenSet =
true;
102 m_principals = std::forward<PrincipalsT>(value);
104 template <
typename PrincipalsT = Aws::Vector<Aws::String>>
109 template <
typename PrincipalsT = Aws::String>
111 m_principalsHasBeenSet =
true;
112 m_principals.emplace_back(std::forward<PrincipalsT>(value));
124 template <
typename TagsT = Aws::Vector<Tag>>
126 m_tagsHasBeenSet =
true;
127 m_tags = std::forward<TagsT>(value);
129 template <
typename TagsT = Aws::Vector<Tag>>
131 SetTags(std::forward<TagsT>(value));
134 template <
typename TagsT = Tag>
136 m_tagsHasBeenSet =
true;
137 m_tags.emplace_back(std::forward<TagsT>(value));
154 m_allowExternalPrincipalsHasBeenSet =
true;
155 m_allowExternalPrincipals = value;
178 template <
typename ClientTokenT = Aws::String>
180 m_clientTokenHasBeenSet =
true;
181 m_clientToken = std::forward<ClientTokenT>(value);
183 template <
typename ClientTokenT = Aws::String>
202 template <
typename PermissionArnsT = Aws::Vector<Aws::String>>
204 m_permissionArnsHasBeenSet =
true;
205 m_permissionArns = std::forward<PermissionArnsT>(value);
207 template <
typename PermissionArnsT = Aws::Vector<Aws::String>>
212 template <
typename PermissionArnsT = Aws::String>
214 m_permissionArnsHasBeenSet =
true;
215 m_permissionArns.emplace_back(std::forward<PermissionArnsT>(value));
231 template <
typename SourcesT = Aws::Vector<Aws::String>>
233 m_sourcesHasBeenSet =
true;
234 m_sources = std::forward<SourcesT>(value);
236 template <
typename SourcesT = Aws::Vector<Aws::String>>
241 template <
typename SourcesT = Aws::String>
243 m_sourcesHasBeenSet =
true;
244 m_sources.emplace_back(std::forward<SourcesT>(value));
257 bool m_allowExternalPrincipals{
false};
264 bool m_nameHasBeenSet =
false;
265 bool m_resourceArnsHasBeenSet =
false;
266 bool m_principalsHasBeenSet =
false;
267 bool m_tagsHasBeenSet =
false;
268 bool m_allowExternalPrincipalsHasBeenSet =
false;
269 bool m_clientTokenHasBeenSet =
false;
270 bool m_permissionArnsHasBeenSet =
false;
271 bool m_sourcesHasBeenSet =
false;
CreateResourceShareRequest & AddSources(SourcesT &&value)
bool GetAllowExternalPrincipals() const
const Aws::Vector< Tag > & GetTags() const
void SetSources(SourcesT &&value)
const Aws::String & GetName() const
CreateResourceShareRequest & AddResourceArns(ResourceArnsT &&value)
const Aws::Vector< Aws::String > & GetPermissionArns() const
void SetAllowExternalPrincipals(bool value)
AWS_RAM_API Aws::String SerializePayload() const override
bool ClientTokenHasBeenSet() const
bool AllowExternalPrincipalsHasBeenSet() const
bool PrincipalsHasBeenSet() const
CreateResourceShareRequest & WithAllowExternalPrincipals(bool value)
virtual const char * GetServiceRequestName() const override
void SetPrincipals(PrincipalsT &&value)
const Aws::String & GetClientToken() const
void SetResourceArns(ResourceArnsT &&value)
bool SourcesHasBeenSet() const
bool ResourceArnsHasBeenSet() const
CreateResourceShareRequest & WithPrincipals(PrincipalsT &&value)
CreateResourceShareRequest & AddPrincipals(PrincipalsT &&value)
const Aws::Vector< Aws::String > & GetSources() const
CreateResourceShareRequest & WithName(NameT &&value)
AWS_RAM_API CreateResourceShareRequest()=default
const Aws::Vector< Aws::String > & GetPrincipals() const
void SetPermissionArns(PermissionArnsT &&value)
CreateResourceShareRequest & WithSources(SourcesT &&value)
bool TagsHasBeenSet() const
CreateResourceShareRequest & AddPermissionArns(PermissionArnsT &&value)
bool PermissionArnsHasBeenSet() const
CreateResourceShareRequest & WithPermissionArns(PermissionArnsT &&value)
CreateResourceShareRequest & AddTags(TagsT &&value)
const Aws::Vector< Aws::String > & GetResourceArns() const
void SetTags(TagsT &&value)
void SetClientToken(ClientTokenT &&value)
CreateResourceShareRequest & WithTags(TagsT &&value)
CreateResourceShareRequest & WithClientToken(ClientTokenT &&value)
bool NameHasBeenSet() const
void SetName(NameT &&value)
CreateResourceShareRequest & WithResourceArns(ResourceArnsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector