AWS SDK for C++

AWS SDK for C++ Version 1.11.709

Loading...
Searching...
No Matches
AssociateResourceShareRequest.h
1
6#pragma once
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
12#include <utility>
13
14namespace Aws {
15namespace RAM {
16namespace Model {
17
21 public:
22 AWS_RAM_API AssociateResourceShareRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "AssociateResourceShare"; }
29
30 AWS_RAM_API Aws::String SerializePayload() const override;
31
33
39 inline const Aws::String& GetResourceShareArn() const { return m_resourceShareArn; }
40 inline bool ResourceShareArnHasBeenSet() const { return m_resourceShareArnHasBeenSet; }
41 template <typename ResourceShareArnT = Aws::String>
42 void SetResourceShareArn(ResourceShareArnT&& value) {
43 m_resourceShareArnHasBeenSet = true;
44 m_resourceShareArn = std::forward<ResourceShareArnT>(value);
45 }
46 template <typename ResourceShareArnT = Aws::String>
48 SetResourceShareArn(std::forward<ResourceShareArnT>(value));
49 return *this;
50 }
52
54
60 inline const Aws::Vector<Aws::String>& GetResourceArns() const { return m_resourceArns; }
61 inline bool ResourceArnsHasBeenSet() const { return m_resourceArnsHasBeenSet; }
62 template <typename ResourceArnsT = Aws::Vector<Aws::String>>
63 void SetResourceArns(ResourceArnsT&& value) {
64 m_resourceArnsHasBeenSet = true;
65 m_resourceArns = std::forward<ResourceArnsT>(value);
66 }
67 template <typename ResourceArnsT = Aws::Vector<Aws::String>>
69 SetResourceArns(std::forward<ResourceArnsT>(value));
70 return *this;
71 }
72 template <typename ResourceArnsT = Aws::String>
74 m_resourceArnsHasBeenSet = true;
75 m_resourceArns.emplace_back(std::forward<ResourceArnsT>(value));
76 return *this;
77 }
79
81
103 inline const Aws::Vector<Aws::String>& GetPrincipals() const { return m_principals; }
104 inline bool PrincipalsHasBeenSet() const { return m_principalsHasBeenSet; }
105 template <typename PrincipalsT = Aws::Vector<Aws::String>>
106 void SetPrincipals(PrincipalsT&& value) {
107 m_principalsHasBeenSet = true;
108 m_principals = std::forward<PrincipalsT>(value);
109 }
110 template <typename PrincipalsT = Aws::Vector<Aws::String>>
112 SetPrincipals(std::forward<PrincipalsT>(value));
113 return *this;
114 }
115 template <typename PrincipalsT = Aws::String>
117 m_principalsHasBeenSet = true;
118 m_principals.emplace_back(std::forward<PrincipalsT>(value));
119 return *this;
120 }
122
124
136 inline const Aws::String& GetClientToken() const { return m_clientToken; }
137 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
138 template <typename ClientTokenT = Aws::String>
139 void SetClientToken(ClientTokenT&& value) {
140 m_clientTokenHasBeenSet = true;
141 m_clientToken = std::forward<ClientTokenT>(value);
142 }
143 template <typename ClientTokenT = Aws::String>
145 SetClientToken(std::forward<ClientTokenT>(value));
146 return *this;
147 }
149
151
155 inline const Aws::Vector<Aws::String>& GetSources() const { return m_sources; }
156 inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
157 template <typename SourcesT = Aws::Vector<Aws::String>>
158 void SetSources(SourcesT&& value) {
159 m_sourcesHasBeenSet = true;
160 m_sources = std::forward<SourcesT>(value);
161 }
162 template <typename SourcesT = Aws::Vector<Aws::String>>
164 SetSources(std::forward<SourcesT>(value));
165 return *this;
166 }
167 template <typename SourcesT = Aws::String>
169 m_sourcesHasBeenSet = true;
170 m_sources.emplace_back(std::forward<SourcesT>(value));
171 return *this;
172 }
174 private:
175 Aws::String m_resourceShareArn;
176
177 Aws::Vector<Aws::String> m_resourceArns;
178
179 Aws::Vector<Aws::String> m_principals;
180
181 Aws::String m_clientToken;
182
183 Aws::Vector<Aws::String> m_sources;
184 bool m_resourceShareArnHasBeenSet = false;
185 bool m_resourceArnsHasBeenSet = false;
186 bool m_principalsHasBeenSet = false;
187 bool m_clientTokenHasBeenSet = false;
188 bool m_sourcesHasBeenSet = false;
189};
190
191} // namespace Model
192} // namespace RAM
193} // namespace Aws
AssociateResourceShareRequest & WithResourceShareArn(ResourceShareArnT &&value)
AssociateResourceShareRequest & WithSources(SourcesT &&value)
const Aws::Vector< Aws::String > & GetResourceArns() const
AssociateResourceShareRequest & WithResourceArns(ResourceArnsT &&value)
AssociateResourceShareRequest & AddSources(SourcesT &&value)
const Aws::Vector< Aws::String > & GetSources() const
AssociateResourceShareRequest & AddResourceArns(ResourceArnsT &&value)
const Aws::Vector< Aws::String > & GetPrincipals() const
AssociateResourceShareRequest & AddPrincipals(PrincipalsT &&value)
AssociateResourceShareRequest & WithClientToken(ClientTokenT &&value)
virtual const char * GetServiceRequestName() const override
AssociateResourceShareRequest & WithPrincipals(PrincipalsT &&value)
AWS_RAM_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector