AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ApiKeyRestrictions.h
1
6#pragma once
7#include <aws/location/LocationService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace LocationService
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_LOCATIONSERVICE_API ApiKeyRestrictions() = default;
37 AWS_LOCATIONSERVICE_API ApiKeyRestrictions(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LOCATIONSERVICE_API ApiKeyRestrictions& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
65 inline const Aws::Vector<Aws::String>& GetAllowActions() const { return m_allowActions; }
66 inline bool AllowActionsHasBeenSet() const { return m_allowActionsHasBeenSet; }
67 template<typename AllowActionsT = Aws::Vector<Aws::String>>
68 void SetAllowActions(AllowActionsT&& value) { m_allowActionsHasBeenSet = true; m_allowActions = std::forward<AllowActionsT>(value); }
69 template<typename AllowActionsT = Aws::Vector<Aws::String>>
70 ApiKeyRestrictions& WithAllowActions(AllowActionsT&& value) { SetAllowActions(std::forward<AllowActionsT>(value)); return *this;}
71 template<typename AllowActionsT = Aws::String>
72 ApiKeyRestrictions& AddAllowActions(AllowActionsT&& value) { m_allowActionsHasBeenSet = true; m_allowActions.emplace_back(std::forward<AllowActionsT>(value)); return *this; }
74
76
92 inline const Aws::Vector<Aws::String>& GetAllowResources() const { return m_allowResources; }
93 inline bool AllowResourcesHasBeenSet() const { return m_allowResourcesHasBeenSet; }
94 template<typename AllowResourcesT = Aws::Vector<Aws::String>>
95 void SetAllowResources(AllowResourcesT&& value) { m_allowResourcesHasBeenSet = true; m_allowResources = std::forward<AllowResourcesT>(value); }
96 template<typename AllowResourcesT = Aws::Vector<Aws::String>>
97 ApiKeyRestrictions& WithAllowResources(AllowResourcesT&& value) { SetAllowResources(std::forward<AllowResourcesT>(value)); return *this;}
98 template<typename AllowResourcesT = Aws::String>
99 ApiKeyRestrictions& AddAllowResources(AllowResourcesT&& value) { m_allowResourcesHasBeenSet = true; m_allowResources.emplace_back(std::forward<AllowResourcesT>(value)); return *this; }
101
103
116 inline const Aws::Vector<Aws::String>& GetAllowReferers() const { return m_allowReferers; }
117 inline bool AllowReferersHasBeenSet() const { return m_allowReferersHasBeenSet; }
118 template<typename AllowReferersT = Aws::Vector<Aws::String>>
119 void SetAllowReferers(AllowReferersT&& value) { m_allowReferersHasBeenSet = true; m_allowReferers = std::forward<AllowReferersT>(value); }
120 template<typename AllowReferersT = Aws::Vector<Aws::String>>
121 ApiKeyRestrictions& WithAllowReferers(AllowReferersT&& value) { SetAllowReferers(std::forward<AllowReferersT>(value)); return *this;}
122 template<typename AllowReferersT = Aws::String>
123 ApiKeyRestrictions& AddAllowReferers(AllowReferersT&& value) { m_allowReferersHasBeenSet = true; m_allowReferers.emplace_back(std::forward<AllowReferersT>(value)); return *this; }
125 private:
126
127 Aws::Vector<Aws::String> m_allowActions;
128 bool m_allowActionsHasBeenSet = false;
129
130 Aws::Vector<Aws::String> m_allowResources;
131 bool m_allowResourcesHasBeenSet = false;
132
133 Aws::Vector<Aws::String> m_allowReferers;
134 bool m_allowReferersHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace LocationService
139} // namespace Aws
AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
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 & AddAllowActions(AllowActionsT &&value)
ApiKeyRestrictions & WithAllowResources(AllowResourcesT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue