AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateResourceShareRequest.h
1
6#pragma once
7#include <aws/ram/RAM_EXPORTS.h>
8#include <aws/ram/RAMRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ram/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace RAM
17{
18namespace Model
19{
20
24 {
25 public:
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateResourceShare"; }
33
34 AWS_RAM_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetName() const{ return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
44 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
45 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
46 inline CreateResourceShareRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
47 inline CreateResourceShareRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
48 inline CreateResourceShareRequest& WithName(const char* value) { SetName(value); return *this;}
50
52
56 inline const Aws::Vector<Aws::String>& GetResourceArns() const{ return m_resourceArns; }
57 inline bool ResourceArnsHasBeenSet() const { return m_resourceArnsHasBeenSet; }
58 inline void SetResourceArns(const Aws::Vector<Aws::String>& value) { m_resourceArnsHasBeenSet = true; m_resourceArns = value; }
59 inline void SetResourceArns(Aws::Vector<Aws::String>&& value) { m_resourceArnsHasBeenSet = true; m_resourceArns = std::move(value); }
61 inline CreateResourceShareRequest& WithResourceArns(Aws::Vector<Aws::String>&& value) { SetResourceArns(std::move(value)); return *this;}
62 inline CreateResourceShareRequest& AddResourceArns(const Aws::String& value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(value); return *this; }
63 inline CreateResourceShareRequest& AddResourceArns(Aws::String&& value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(std::move(value)); return *this; }
64 inline CreateResourceShareRequest& AddResourceArns(const char* value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(value); return *this; }
66
68
87 inline const Aws::Vector<Aws::String>& GetPrincipals() const{ return m_principals; }
88 inline bool PrincipalsHasBeenSet() const { return m_principalsHasBeenSet; }
89 inline void SetPrincipals(const Aws::Vector<Aws::String>& value) { m_principalsHasBeenSet = true; m_principals = value; }
90 inline void SetPrincipals(Aws::Vector<Aws::String>&& value) { m_principalsHasBeenSet = true; m_principals = std::move(value); }
92 inline CreateResourceShareRequest& WithPrincipals(Aws::Vector<Aws::String>&& value) { SetPrincipals(std::move(value)); return *this;}
93 inline CreateResourceShareRequest& AddPrincipals(const Aws::String& value) { m_principalsHasBeenSet = true; m_principals.push_back(value); return *this; }
94 inline CreateResourceShareRequest& AddPrincipals(Aws::String&& value) { m_principalsHasBeenSet = true; m_principals.push_back(std::move(value)); return *this; }
95 inline CreateResourceShareRequest& AddPrincipals(const char* value) { m_principalsHasBeenSet = true; m_principals.push_back(value); return *this; }
97
99
103 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
104 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
105 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
106 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
107 inline CreateResourceShareRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
108 inline CreateResourceShareRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
109 inline CreateResourceShareRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
110 inline CreateResourceShareRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
112
114
122 inline bool GetAllowExternalPrincipals() const{ return m_allowExternalPrincipals; }
123 inline bool AllowExternalPrincipalsHasBeenSet() const { return m_allowExternalPrincipalsHasBeenSet; }
124 inline void SetAllowExternalPrincipals(bool value) { m_allowExternalPrincipalsHasBeenSet = true; m_allowExternalPrincipals = value; }
127
129
141 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
142 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
143 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
144 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
145 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
146 inline CreateResourceShareRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
147 inline CreateResourceShareRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
148 inline CreateResourceShareRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
150
152
161 inline const Aws::Vector<Aws::String>& GetPermissionArns() const{ return m_permissionArns; }
162 inline bool PermissionArnsHasBeenSet() const { return m_permissionArnsHasBeenSet; }
163 inline void SetPermissionArns(const Aws::Vector<Aws::String>& value) { m_permissionArnsHasBeenSet = true; m_permissionArns = value; }
164 inline void SetPermissionArns(Aws::Vector<Aws::String>&& value) { m_permissionArnsHasBeenSet = true; m_permissionArns = std::move(value); }
167 inline CreateResourceShareRequest& AddPermissionArns(const Aws::String& value) { m_permissionArnsHasBeenSet = true; m_permissionArns.push_back(value); return *this; }
168 inline CreateResourceShareRequest& AddPermissionArns(Aws::String&& value) { m_permissionArnsHasBeenSet = true; m_permissionArns.push_back(std::move(value)); return *this; }
169 inline CreateResourceShareRequest& AddPermissionArns(const char* value) { m_permissionArnsHasBeenSet = true; m_permissionArns.push_back(value); return *this; }
171
173
177 inline const Aws::Vector<Aws::String>& GetSources() const{ return m_sources; }
178 inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
179 inline void SetSources(const Aws::Vector<Aws::String>& value) { m_sourcesHasBeenSet = true; m_sources = value; }
180 inline void SetSources(Aws::Vector<Aws::String>&& value) { m_sourcesHasBeenSet = true; m_sources = std::move(value); }
181 inline CreateResourceShareRequest& WithSources(const Aws::Vector<Aws::String>& value) { SetSources(value); return *this;}
182 inline CreateResourceShareRequest& WithSources(Aws::Vector<Aws::String>&& value) { SetSources(std::move(value)); return *this;}
183 inline CreateResourceShareRequest& AddSources(const Aws::String& value) { m_sourcesHasBeenSet = true; m_sources.push_back(value); return *this; }
184 inline CreateResourceShareRequest& AddSources(Aws::String&& value) { m_sourcesHasBeenSet = true; m_sources.push_back(std::move(value)); return *this; }
185 inline CreateResourceShareRequest& AddSources(const char* value) { m_sourcesHasBeenSet = true; m_sources.push_back(value); return *this; }
187 private:
188
189 Aws::String m_name;
190 bool m_nameHasBeenSet = false;
191
192 Aws::Vector<Aws::String> m_resourceArns;
193 bool m_resourceArnsHasBeenSet = false;
194
195 Aws::Vector<Aws::String> m_principals;
196 bool m_principalsHasBeenSet = false;
197
198 Aws::Vector<Tag> m_tags;
199 bool m_tagsHasBeenSet = false;
200
201 bool m_allowExternalPrincipals;
202 bool m_allowExternalPrincipalsHasBeenSet = false;
203
204 Aws::String m_clientToken;
205 bool m_clientTokenHasBeenSet = false;
206
207 Aws::Vector<Aws::String> m_permissionArns;
208 bool m_permissionArnsHasBeenSet = false;
209
210 Aws::Vector<Aws::String> m_sources;
211 bool m_sourcesHasBeenSet = false;
212 };
213
214} // namespace Model
215} // namespace RAM
216} // namespace Aws
CreateResourceShareRequest & AddTags(const Tag &value)
CreateResourceShareRequest & WithTags(const Aws::Vector< Tag > &value)
void SetResourceArns(Aws::Vector< Aws::String > &&value)
CreateResourceShareRequest & AddPrincipals(const Aws::String &value)
CreateResourceShareRequest & WithResourceArns(const Aws::Vector< Aws::String > &value)
CreateResourceShareRequest & WithClientToken(const Aws::String &value)
void SetPrincipals(Aws::Vector< Aws::String > &&value)
CreateResourceShareRequest & AddPrincipals(Aws::String &&value)
void SetPrincipals(const Aws::Vector< Aws::String > &value)
CreateResourceShareRequest & AddResourceArns(const Aws::String &value)
CreateResourceShareRequest & AddTags(Tag &&value)
const Aws::Vector< Aws::String > & GetPermissionArns() const
void SetPermissionArns(Aws::Vector< Aws::String > &&value)
CreateResourceShareRequest & WithName(const char *value)
CreateResourceShareRequest & WithResourceArns(Aws::Vector< Aws::String > &&value)
AWS_RAM_API Aws::String SerializePayload() const override
CreateResourceShareRequest & AddPermissionArns(const char *value)
void SetSources(const Aws::Vector< Aws::String > &value)
CreateResourceShareRequest & WithAllowExternalPrincipals(bool value)
virtual const char * GetServiceRequestName() const override
CreateResourceShareRequest & AddSources(Aws::String &&value)
CreateResourceShareRequest & WithName(Aws::String &&value)
CreateResourceShareRequest & WithClientToken(const char *value)
CreateResourceShareRequest & WithPrincipals(Aws::Vector< Aws::String > &&value)
CreateResourceShareRequest & WithName(const Aws::String &value)
void SetResourceArns(const Aws::Vector< Aws::String > &value)
CreateResourceShareRequest & WithPermissionArns(Aws::Vector< Aws::String > &&value)
CreateResourceShareRequest & AddSources(const Aws::String &value)
CreateResourceShareRequest & AddResourceArns(Aws::String &&value)
CreateResourceShareRequest & WithPermissionArns(const Aws::Vector< Aws::String > &value)
CreateResourceShareRequest & WithTags(Aws::Vector< Tag > &&value)
CreateResourceShareRequest & AddResourceArns(const char *value)
void SetSources(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetSources() const
CreateResourceShareRequest & WithPrincipals(const Aws::Vector< Aws::String > &value)
CreateResourceShareRequest & WithSources(const Aws::Vector< Aws::String > &value)
CreateResourceShareRequest & AddSources(const char *value)
const Aws::Vector< Aws::String > & GetPrincipals() const
CreateResourceShareRequest & AddPermissionArns(Aws::String &&value)
CreateResourceShareRequest & WithClientToken(Aws::String &&value)
void SetPermissionArns(const Aws::Vector< Aws::String > &value)
void SetTags(const Aws::Vector< Tag > &value)
const Aws::Vector< Aws::String > & GetResourceArns() const
CreateResourceShareRequest & AddPermissionArns(const Aws::String &value)
CreateResourceShareRequest & WithSources(Aws::Vector< Aws::String > &&value)
CreateResourceShareRequest & AddPrincipals(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector