AWS SDK for C++

AWS SDK for C++ Version 1.11.744

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
104 inline const Aws::Vector<Aws::String>& GetPrincipals() const { return m_principals; }
105 inline bool PrincipalsHasBeenSet() const { return m_principalsHasBeenSet; }
106 template <typename PrincipalsT = Aws::Vector<Aws::String>>
107 void SetPrincipals(PrincipalsT&& value) {
108 m_principalsHasBeenSet = true;
109 m_principals = std::forward<PrincipalsT>(value);
110 }
111 template <typename PrincipalsT = Aws::Vector<Aws::String>>
113 SetPrincipals(std::forward<PrincipalsT>(value));
114 return *this;
115 }
116 template <typename PrincipalsT = Aws::String>
118 m_principalsHasBeenSet = true;
119 m_principals.emplace_back(std::forward<PrincipalsT>(value));
120 return *this;
121 }
123
125
137 inline const Aws::String& GetClientToken() const { return m_clientToken; }
138 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
139 template <typename ClientTokenT = Aws::String>
140 void SetClientToken(ClientTokenT&& value) {
141 m_clientTokenHasBeenSet = true;
142 m_clientToken = std::forward<ClientTokenT>(value);
143 }
144 template <typename ClientTokenT = Aws::String>
146 SetClientToken(std::forward<ClientTokenT>(value));
147 return *this;
148 }
150
152
160 inline const Aws::Vector<Aws::String>& GetSources() const { return m_sources; }
161 inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
162 template <typename SourcesT = Aws::Vector<Aws::String>>
163 void SetSources(SourcesT&& value) {
164 m_sourcesHasBeenSet = true;
165 m_sources = std::forward<SourcesT>(value);
166 }
167 template <typename SourcesT = Aws::Vector<Aws::String>>
169 SetSources(std::forward<SourcesT>(value));
170 return *this;
171 }
172 template <typename SourcesT = Aws::String>
174 m_sourcesHasBeenSet = true;
175 m_sources.emplace_back(std::forward<SourcesT>(value));
176 return *this;
177 }
179 private:
180 Aws::String m_resourceShareArn;
181
182 Aws::Vector<Aws::String> m_resourceArns;
183
184 Aws::Vector<Aws::String> m_principals;
185
186 Aws::String m_clientToken;
187
188 Aws::Vector<Aws::String> m_sources;
189 bool m_resourceShareArnHasBeenSet = false;
190 bool m_resourceArnsHasBeenSet = false;
191 bool m_principalsHasBeenSet = false;
192 bool m_clientTokenHasBeenSet = false;
193 bool m_sourcesHasBeenSet = false;
194};
195
196} // namespace Model
197} // namespace RAM
198} // 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