AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAllowActions(const Aws::Vector<Aws::String>& value) { m_allowActionsHasBeenSet = true; m_allowActions = value; }
68 inline void SetAllowActions(Aws::Vector<Aws::String>&& value) { m_allowActionsHasBeenSet = true; m_allowActions = std::move(value); }
69 inline ApiKeyRestrictions& WithAllowActions(const Aws::Vector<Aws::String>& value) { SetAllowActions(value); return *this;}
70 inline ApiKeyRestrictions& WithAllowActions(Aws::Vector<Aws::String>&& value) { SetAllowActions(std::move(value)); return *this;}
71 inline ApiKeyRestrictions& AddAllowActions(const Aws::String& value) { m_allowActionsHasBeenSet = true; m_allowActions.push_back(value); return *this; }
72 inline ApiKeyRestrictions& AddAllowActions(Aws::String&& value) { m_allowActionsHasBeenSet = true; m_allowActions.push_back(std::move(value)); return *this; }
73 inline ApiKeyRestrictions& AddAllowActions(const char* value) { m_allowActionsHasBeenSet = true; m_allowActions.push_back(value); return *this; }
75
77
93 inline const Aws::Vector<Aws::String>& GetAllowResources() const{ return m_allowResources; }
94 inline bool AllowResourcesHasBeenSet() const { return m_allowResourcesHasBeenSet; }
95 inline void SetAllowResources(const Aws::Vector<Aws::String>& value) { m_allowResourcesHasBeenSet = true; m_allowResources = value; }
96 inline void SetAllowResources(Aws::Vector<Aws::String>&& value) { m_allowResourcesHasBeenSet = true; m_allowResources = std::move(value); }
98 inline ApiKeyRestrictions& WithAllowResources(Aws::Vector<Aws::String>&& value) { SetAllowResources(std::move(value)); return *this;}
99 inline ApiKeyRestrictions& AddAllowResources(const Aws::String& value) { m_allowResourcesHasBeenSet = true; m_allowResources.push_back(value); return *this; }
100 inline ApiKeyRestrictions& AddAllowResources(Aws::String&& value) { m_allowResourcesHasBeenSet = true; m_allowResources.push_back(std::move(value)); return *this; }
101 inline ApiKeyRestrictions& AddAllowResources(const char* value) { m_allowResourcesHasBeenSet = true; m_allowResources.push_back(value); return *this; }
103
105
118 inline const Aws::Vector<Aws::String>& GetAllowReferers() const{ return m_allowReferers; }
119 inline bool AllowReferersHasBeenSet() const { return m_allowReferersHasBeenSet; }
120 inline void SetAllowReferers(const Aws::Vector<Aws::String>& value) { m_allowReferersHasBeenSet = true; m_allowReferers = value; }
121 inline void SetAllowReferers(Aws::Vector<Aws::String>&& value) { m_allowReferersHasBeenSet = true; m_allowReferers = std::move(value); }
123 inline ApiKeyRestrictions& WithAllowReferers(Aws::Vector<Aws::String>&& value) { SetAllowReferers(std::move(value)); return *this;}
124 inline ApiKeyRestrictions& AddAllowReferers(const Aws::String& value) { m_allowReferersHasBeenSet = true; m_allowReferers.push_back(value); return *this; }
125 inline ApiKeyRestrictions& AddAllowReferers(Aws::String&& value) { m_allowReferersHasBeenSet = true; m_allowReferers.push_back(std::move(value)); return *this; }
126 inline ApiKeyRestrictions& AddAllowReferers(const char* value) { m_allowReferersHasBeenSet = true; m_allowReferers.push_back(value); return *this; }
128 private:
129
130 Aws::Vector<Aws::String> m_allowActions;
131 bool m_allowActionsHasBeenSet = false;
132
133 Aws::Vector<Aws::String> m_allowResources;
134 bool m_allowResourcesHasBeenSet = false;
135
136 Aws::Vector<Aws::String> m_allowReferers;
137 bool m_allowReferersHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace LocationService
142} // namespace Aws
ApiKeyRestrictions & WithAllowActions(Aws::Vector< Aws::String > &&value)
void SetAllowResources(Aws::Vector< Aws::String > &&value)
ApiKeyRestrictions & WithAllowReferers(Aws::Vector< Aws::String > &&value)
void SetAllowActions(const Aws::Vector< Aws::String > &value)
void SetAllowReferers(const Aws::Vector< Aws::String > &value)
ApiKeyRestrictions & WithAllowActions(const Aws::Vector< Aws::String > &value)
ApiKeyRestrictions & WithAllowReferers(const Aws::Vector< Aws::String > &value)
void SetAllowReferers(Aws::Vector< Aws::String > &&value)
ApiKeyRestrictions & AddAllowReferers(const char *value)
ApiKeyRestrictions & AddAllowActions(const char *value)
AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ApiKeyRestrictions & AddAllowResources(const Aws::String &value)
ApiKeyRestrictions & WithAllowResources(Aws::Vector< Aws::String > &&value)
AWS_LOCATIONSERVICE_API ApiKeyRestrictions(Aws::Utils::Json::JsonView jsonValue)
ApiKeyRestrictions & AddAllowResources(Aws::String &&value)
const Aws::Vector< Aws::String > & GetAllowActions() const
const Aws::Vector< Aws::String > & GetAllowReferers() const
ApiKeyRestrictions & AddAllowActions(const Aws::String &value)
void SetAllowResources(const Aws::Vector< Aws::String > &value)
ApiKeyRestrictions & AddAllowActions(Aws::String &&value)
const Aws::Vector< Aws::String > & GetAllowResources() const
ApiKeyRestrictions & AddAllowReferers(Aws::String &&value)
void SetAllowActions(Aws::Vector< Aws::String > &&value)
AWS_LOCATIONSERVICE_API ApiKeyRestrictions & operator=(Aws::Utils::Json::JsonView jsonValue)
ApiKeyRestrictions & AddAllowReferers(const Aws::String &value)
ApiKeyRestrictions & AddAllowResources(const char *value)
ApiKeyRestrictions & WithAllowResources(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue