AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
Permission.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/quicksight/QuickSight_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace QuickSight {
21namespace Model {
22
30 public:
31 AWS_QUICKSIGHT_API Permission() = default;
32 AWS_QUICKSIGHT_API Permission(Aws::Utils::Json::JsonView jsonValue);
33 AWS_QUICKSIGHT_API Permission& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
57 inline const Aws::Vector<Aws::String>& GetActions() const { return m_actions; }
58 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
59 template <typename ActionsT = Aws::Vector<Aws::String>>
60 void SetActions(ActionsT&& value) {
61 m_actionsHasBeenSet = true;
62 m_actions = std::forward<ActionsT>(value);
63 }
64 template <typename ActionsT = Aws::Vector<Aws::String>>
65 Permission& WithActions(ActionsT&& value) {
66 SetActions(std::forward<ActionsT>(value));
67 return *this;
68 }
69 template <typename ActionsT = Aws::String>
70 Permission& AddActions(ActionsT&& value) {
71 m_actionsHasBeenSet = true;
72 m_actions.emplace_back(std::forward<ActionsT>(value));
73 return *this;
74 }
76
78
84 inline const Aws::String& GetPrincipal() const { return m_principal; }
85 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
86 template <typename PrincipalT = Aws::String>
87 void SetPrincipal(PrincipalT&& value) {
88 m_principalHasBeenSet = true;
89 m_principal = std::forward<PrincipalT>(value);
90 }
91 template <typename PrincipalT = Aws::String>
92 Permission& WithPrincipal(PrincipalT&& value) {
93 SetPrincipal(std::forward<PrincipalT>(value));
94 return *this;
95 }
97 private:
99
100 Aws::String m_principal;
101 bool m_actionsHasBeenSet = false;
102 bool m_principalHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace QuickSight
107} // namespace Aws
AWS_QUICKSIGHT_API Permission & operator=(Aws::Utils::Json::JsonView jsonValue)
Permission & WithPrincipal(PrincipalT &&value)
Definition Permission.h:92
AWS_QUICKSIGHT_API Permission()=default
AWS_QUICKSIGHT_API Permission(Aws::Utils::Json::JsonView jsonValue)
void SetActions(ActionsT &&value)
Definition Permission.h:60
Permission & AddActions(ActionsT &&value)
Definition Permission.h:70
Permission & WithActions(ActionsT &&value)
Definition Permission.h:65
const Aws::Vector< Aws::String > & GetActions() const
Definition Permission.h:57
const Aws::String & GetPrincipal() const
Definition Permission.h:84
void SetPrincipal(PrincipalT &&value)
Definition Permission.h:87
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue