AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ResourcePermission.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.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 QuickSight
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_QUICKSIGHT_API ResourcePermission() = default;
36 AWS_QUICKSIGHT_API ResourcePermission(Aws::Utils::Json::JsonView jsonValue);
38 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
52 inline const Aws::String& GetPrincipal() const { return m_principal; }
53 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
54 template<typename PrincipalT = Aws::String>
55 void SetPrincipal(PrincipalT&& value) { m_principalHasBeenSet = true; m_principal = std::forward<PrincipalT>(value); }
56 template<typename PrincipalT = Aws::String>
57 ResourcePermission& WithPrincipal(PrincipalT&& value) { SetPrincipal(std::forward<PrincipalT>(value)); return *this;}
59
61
64 inline const Aws::Vector<Aws::String>& GetActions() const { return m_actions; }
65 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
66 template<typename ActionsT = Aws::Vector<Aws::String>>
67 void SetActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions = std::forward<ActionsT>(value); }
68 template<typename ActionsT = Aws::Vector<Aws::String>>
69 ResourcePermission& WithActions(ActionsT&& value) { SetActions(std::forward<ActionsT>(value)); return *this;}
70 template<typename ActionsT = Aws::String>
71 ResourcePermission& AddActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions.emplace_back(std::forward<ActionsT>(value)); return *this; }
73 private:
74
75 Aws::String m_principal;
76 bool m_principalHasBeenSet = false;
77
79 bool m_actionsHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace QuickSight
84} // namespace Aws
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
ResourcePermission & AddActions(ActionsT &&value)
AWS_QUICKSIGHT_API ResourcePermission & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetActions() const
ResourcePermission & WithPrincipal(PrincipalT &&value)
AWS_QUICKSIGHT_API ResourcePermission(Aws::Utils::Json::JsonView jsonValue)
ResourcePermission & WithActions(ActionsT &&value)
AWS_QUICKSIGHT_API ResourcePermission()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue