AWS SDK for C++

AWS SDK for C++ Version 1.11.937

Loading...
Searching...
No Matches
Permit.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/supportauthz/SupportAuthZ_EXPORTS.h>
9#include <aws/supportauthz/model/ActionSet.h>
10#include <aws/supportauthz/model/Condition.h>
11#include <aws/supportauthz/model/ResourceSet.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SupportAuthZ {
23namespace Model {
24
31class Permit {
32 public:
33 AWS_SUPPORTAUTHZ_API Permit() = default;
34 AWS_SUPPORTAUTHZ_API Permit(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SUPPORTAUTHZ_API Permit& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_SUPPORTAUTHZ_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const ActionSet& GetActions() const { return m_actions; }
43 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
44 template <typename ActionsT = ActionSet>
45 void SetActions(ActionsT&& value) {
46 m_actionsHasBeenSet = true;
47 m_actions = std::forward<ActionsT>(value);
48 }
49 template <typename ActionsT = ActionSet>
50 Permit& WithActions(ActionsT&& value) {
51 SetActions(std::forward<ActionsT>(value));
52 return *this;
53 }
55
57
60 inline const ResourceSet& GetResources() const { return m_resources; }
61 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
62 template <typename ResourcesT = ResourceSet>
63 void SetResources(ResourcesT&& value) {
64 m_resourcesHasBeenSet = true;
65 m_resources = std::forward<ResourcesT>(value);
66 }
67 template <typename ResourcesT = ResourceSet>
68 Permit& WithResources(ResourcesT&& value) {
69 SetResources(std::forward<ResourcesT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::Vector<Condition>& GetConditions() const { return m_conditions; }
80 inline bool ConditionsHasBeenSet() const { return m_conditionsHasBeenSet; }
81 template <typename ConditionsT = Aws::Vector<Condition>>
82 void SetConditions(ConditionsT&& value) {
83 m_conditionsHasBeenSet = true;
84 m_conditions = std::forward<ConditionsT>(value);
85 }
86 template <typename ConditionsT = Aws::Vector<Condition>>
87 Permit& WithConditions(ConditionsT&& value) {
88 SetConditions(std::forward<ConditionsT>(value));
89 return *this;
90 }
91 template <typename ConditionsT = Condition>
92 Permit& AddConditions(ConditionsT&& value) {
93 m_conditionsHasBeenSet = true;
94 m_conditions.emplace_back(std::forward<ConditionsT>(value));
95 return *this;
96 }
98 private:
99 ActionSet m_actions;
100
101 ResourceSet m_resources;
102
103 Aws::Vector<Condition> m_conditions;
104 bool m_actionsHasBeenSet = false;
105 bool m_resourcesHasBeenSet = false;
106 bool m_conditionsHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace SupportAuthZ
111} // namespace Aws
void SetConditions(ConditionsT &&value)
Definition Permit.h:82
void SetActions(ActionsT &&value)
Definition Permit.h:45
const Aws::Vector< Condition > & GetConditions() const
Definition Permit.h:79
void SetResources(ResourcesT &&value)
Definition Permit.h:63
Permit & AddConditions(ConditionsT &&value)
Definition Permit.h:92
Permit & WithConditions(ConditionsT &&value)
Definition Permit.h:87
AWS_SUPPORTAUTHZ_API Permit()=default
const ResourceSet & GetResources() const
Definition Permit.h:60
bool ConditionsHasBeenSet() const
Definition Permit.h:80
AWS_SUPPORTAUTHZ_API Permit & operator=(Aws::Utils::Json::JsonView jsonValue)
const ActionSet & GetActions() const
Definition Permit.h:42
AWS_SUPPORTAUTHZ_API Aws::Utils::Json::JsonValue Jsonize() const
Permit & WithActions(ActionsT &&value)
Definition Permit.h:50
bool ResourcesHasBeenSet() const
Definition Permit.h:61
Permit & WithResources(ResourcesT &&value)
Definition Permit.h:68
AWS_SUPPORTAUTHZ_API Permit(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue