AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ApiKeyRestrictions.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/location/LocationService_EXPORTS.h>
10#include <aws/location/model/AndroidApp.h>
11#include <aws/location/model/AppleApp.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace LocationService {
23namespace Model {
24
32 public:
33 AWS_LOCATIONSERVICE_API ApiKeyRestrictions() = default;
34 AWS_LOCATIONSERVICE_API ApiKeyRestrictions(Aws::Utils::Json::JsonView jsonValue);
35 AWS_LOCATIONSERVICE_API ApiKeyRestrictions& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
85 inline const Aws::Vector<Aws::String>& GetAllowActions() const { return m_allowActions; }
86 inline bool AllowActionsHasBeenSet() const { return m_allowActionsHasBeenSet; }
87 template <typename AllowActionsT = Aws::Vector<Aws::String>>
88 void SetAllowActions(AllowActionsT&& value) {
89 m_allowActionsHasBeenSet = true;
90 m_allowActions = std::forward<AllowActionsT>(value);
91 }
92 template <typename AllowActionsT = Aws::Vector<Aws::String>>
93 ApiKeyRestrictions& WithAllowActions(AllowActionsT&& value) {
94 SetAllowActions(std::forward<AllowActionsT>(value));
95 return *this;
96 }
97 template <typename AllowActionsT = Aws::String>
98 ApiKeyRestrictions& AddAllowActions(AllowActionsT&& value) {
99 m_allowActionsHasBeenSet = true;
100 m_allowActions.emplace_back(std::forward<AllowActionsT>(value));
101 return *this;
102 }
104
106
122 inline const Aws::Vector<Aws::String>& GetAllowResources() const { return m_allowResources; }
123 inline bool AllowResourcesHasBeenSet() const { return m_allowResourcesHasBeenSet; }
124 template <typename AllowResourcesT = Aws::Vector<Aws::String>>
125 void SetAllowResources(AllowResourcesT&& value) {
126 m_allowResourcesHasBeenSet = true;
127 m_allowResources = std::forward<AllowResourcesT>(value);
128 }
129 template <typename AllowResourcesT = Aws::Vector<Aws::String>>
130 ApiKeyRestrictions& WithAllowResources(AllowResourcesT&& value) {
131 SetAllowResources(std::forward<AllowResourcesT>(value));
132 return *this;
133 }
134 template <typename AllowResourcesT = Aws::String>
135 ApiKeyRestrictions& AddAllowResources(AllowResourcesT&& value) {
136 m_allowResourcesHasBeenSet = true;
137 m_allowResources.emplace_back(std::forward<AllowResourcesT>(value));
138 return *this;
139 }
141
143
156 inline const Aws::Vector<Aws::String>& GetAllowReferers() const { return m_allowReferers; }
157 inline bool AllowReferersHasBeenSet() const { return m_allowReferersHasBeenSet; }
158 template <typename AllowReferersT = Aws::Vector<Aws::String>>
159 void SetAllowReferers(AllowReferersT&& value) {
160 m_allowReferersHasBeenSet = true;
161 m_allowReferers = std::forward<AllowReferersT>(value);
162 }
163 template <typename AllowReferersT = Aws::Vector<Aws::String>>
164 ApiKeyRestrictions& WithAllowReferers(AllowReferersT&& value) {
165 SetAllowReferers(std::forward<AllowReferersT>(value));
166 return *this;
167 }
168 template <typename AllowReferersT = Aws::String>
169 ApiKeyRestrictions& AddAllowReferers(AllowReferersT&& value) {
170 m_allowReferersHasBeenSet = true;
171 m_allowReferers.emplace_back(std::forward<AllowReferersT>(value));
172 return *this;
173 }
175
177
182 inline const Aws::Vector<AndroidApp>& GetAllowAndroidApps() const { return m_allowAndroidApps; }
183 inline bool AllowAndroidAppsHasBeenSet() const { return m_allowAndroidAppsHasBeenSet; }
184 template <typename AllowAndroidAppsT = Aws::Vector<AndroidApp>>
185 void SetAllowAndroidApps(AllowAndroidAppsT&& value) {
186 m_allowAndroidAppsHasBeenSet = true;
187 m_allowAndroidApps = std::forward<AllowAndroidAppsT>(value);
188 }
189 template <typename AllowAndroidAppsT = Aws::Vector<AndroidApp>>
190 ApiKeyRestrictions& WithAllowAndroidApps(AllowAndroidAppsT&& value) {
191 SetAllowAndroidApps(std::forward<AllowAndroidAppsT>(value));
192 return *this;
193 }
194 template <typename AllowAndroidAppsT = AndroidApp>
195 ApiKeyRestrictions& AddAllowAndroidApps(AllowAndroidAppsT&& value) {
196 m_allowAndroidAppsHasBeenSet = true;
197 m_allowAndroidApps.emplace_back(std::forward<AllowAndroidAppsT>(value));
198 return *this;
199 }
201
203
208 inline const Aws::Vector<AppleApp>& GetAllowAppleApps() const { return m_allowAppleApps; }
209 inline bool AllowAppleAppsHasBeenSet() const { return m_allowAppleAppsHasBeenSet; }
210 template <typename AllowAppleAppsT = Aws::Vector<AppleApp>>
211 void SetAllowAppleApps(AllowAppleAppsT&& value) {
212 m_allowAppleAppsHasBeenSet = true;
213 m_allowAppleApps = std::forward<AllowAppleAppsT>(value);
214 }
215 template <typename AllowAppleAppsT = Aws::Vector<AppleApp>>
216 ApiKeyRestrictions& WithAllowAppleApps(AllowAppleAppsT&& value) {
217 SetAllowAppleApps(std::forward<AllowAppleAppsT>(value));
218 return *this;
219 }
220 template <typename AllowAppleAppsT = AppleApp>
221 ApiKeyRestrictions& AddAllowAppleApps(AllowAppleAppsT&& value) {
222 m_allowAppleAppsHasBeenSet = true;
223 m_allowAppleApps.emplace_back(std::forward<AllowAppleAppsT>(value));
224 return *this;
225 }
227 private:
228 Aws::Vector<Aws::String> m_allowActions;
229
230 Aws::Vector<Aws::String> m_allowResources;
231
232 Aws::Vector<Aws::String> m_allowReferers;
233
234 Aws::Vector<AndroidApp> m_allowAndroidApps;
235
236 Aws::Vector<AppleApp> m_allowAppleApps;
237 bool m_allowActionsHasBeenSet = false;
238 bool m_allowResourcesHasBeenSet = false;
239 bool m_allowReferersHasBeenSet = false;
240 bool m_allowAndroidAppsHasBeenSet = false;
241 bool m_allowAppleAppsHasBeenSet = false;
242};
243
244} // namespace Model
245} // namespace LocationService
246} // namespace Aws
const Aws::Vector< AppleApp > & GetAllowAppleApps() const
ApiKeyRestrictions & AddAllowAndroidApps(AllowAndroidAppsT &&value)
const Aws::Vector< AndroidApp > & GetAllowAndroidApps() const
ApiKeyRestrictions & WithAllowAppleApps(AllowAppleAppsT &&value)
AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAllowAndroidApps(AllowAndroidAppsT &&value)
ApiKeyRestrictions & AddAllowResources(AllowResourcesT &&value)
AWS_LOCATIONSERVICE_API ApiKeyRestrictions(Aws::Utils::Json::JsonView jsonValue)
ApiKeyRestrictions & WithAllowReferers(AllowReferersT &&value)
const Aws::Vector< Aws::String > & GetAllowActions() const
const Aws::Vector< Aws::String > & GetAllowReferers() const
AWS_LOCATIONSERVICE_API ApiKeyRestrictions()=default
ApiKeyRestrictions & AddAllowReferers(AllowReferersT &&value)
ApiKeyRestrictions & WithAllowActions(AllowActionsT &&value)
const Aws::Vector< Aws::String > & GetAllowResources() const
AWS_LOCATIONSERVICE_API ApiKeyRestrictions & operator=(Aws::Utils::Json::JsonView jsonValue)
ApiKeyRestrictions & WithAllowAndroidApps(AllowAndroidAppsT &&value)
ApiKeyRestrictions & AddAllowActions(AllowActionsT &&value)
ApiKeyRestrictions & AddAllowAppleApps(AllowAppleAppsT &&value)
ApiKeyRestrictions & WithAllowResources(AllowResourcesT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue