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));
98 template <
typename PrincipalsT = Aws::Vector<Aws::String>>
100 m_principalsHasBeenSet =
true;
101 m_principals = std::forward<PrincipalsT>(value);
103 template <
typename PrincipalsT = Aws::Vector<Aws::String>>
108 template <
typename PrincipalsT = Aws::String>
110 m_principalsHasBeenSet =
true;
111 m_principals.emplace_back(std::forward<PrincipalsT>(value));
123 template <
typename TagsT = Aws::Vector<Tag>>
125 m_tagsHasBeenSet =
true;
126 m_tags = std::forward<TagsT>(value);
128 template <
typename TagsT = Aws::Vector<Tag>>
130 SetTags(std::forward<TagsT>(value));
133 template <
typename TagsT = Tag>
135 m_tagsHasBeenSet =
true;
136 m_tags.emplace_back(std::forward<TagsT>(value));
153 m_allowExternalPrincipalsHasBeenSet =
true;
154 m_allowExternalPrincipals = value;
177 template <
typename ClientTokenT = Aws::String>
179 m_clientTokenHasBeenSet =
true;
180 m_clientToken = std::forward<ClientTokenT>(value);
182 template <
typename ClientTokenT = Aws::String>
201 template <
typename PermissionArnsT = Aws::Vector<Aws::String>>
203 m_permissionArnsHasBeenSet =
true;
204 m_permissionArns = std::forward<PermissionArnsT>(value);
206 template <
typename PermissionArnsT = Aws::Vector<Aws::String>>
211 template <
typename PermissionArnsT = Aws::String>
213 m_permissionArnsHasBeenSet =
true;
214 m_permissionArns.emplace_back(std::forward<PermissionArnsT>(value));
226 template <
typename SourcesT = Aws::Vector<Aws::String>>
228 m_sourcesHasBeenSet =
true;
229 m_sources = std::forward<SourcesT>(value);
231 template <
typename SourcesT = Aws::Vector<Aws::String>>
236 template <
typename SourcesT = Aws::String>
238 m_sourcesHasBeenSet =
true;
239 m_sources.emplace_back(std::forward<SourcesT>(value));
252 bool m_allowExternalPrincipals{
false};
259 bool m_nameHasBeenSet =
false;
260 bool m_resourceArnsHasBeenSet =
false;
261 bool m_principalsHasBeenSet =
false;
262 bool m_tagsHasBeenSet =
false;
263 bool m_allowExternalPrincipalsHasBeenSet =
false;
264 bool m_clientTokenHasBeenSet =
false;
265 bool m_permissionArnsHasBeenSet =
false;
266 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