AWS SDK for C++

AWS SDK for C++ Version 1.11.755

Loading...
Searching...
No Matches
AssetBundleResourcePermissions.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 AssetBundleResourcePermissions() = default;
34 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<Aws::String>& GetPrincipals() const { return m_principals; }
41 inline bool PrincipalsHasBeenSet() const { return m_principalsHasBeenSet; }
42 template <typename PrincipalsT = Aws::Vector<Aws::String>>
43 void SetPrincipals(PrincipalsT&& value) {
44 m_principalsHasBeenSet = true;
45 m_principals = std::forward<PrincipalsT>(value);
46 }
47 template <typename PrincipalsT = Aws::Vector<Aws::String>>
49 SetPrincipals(std::forward<PrincipalsT>(value));
50 return *this;
51 }
52 template <typename PrincipalsT = Aws::String>
54 m_principalsHasBeenSet = true;
55 m_principals.emplace_back(std::forward<PrincipalsT>(value));
56 return *this;
57 }
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) {
68 m_actionsHasBeenSet = true;
69 m_actions = std::forward<ActionsT>(value);
70 }
71 template <typename ActionsT = Aws::Vector<Aws::String>>
73 SetActions(std::forward<ActionsT>(value));
74 return *this;
75 }
76 template <typename ActionsT = Aws::String>
78 m_actionsHasBeenSet = true;
79 m_actions.emplace_back(std::forward<ActionsT>(value));
80 return *this;
81 }
83 private:
84 Aws::Vector<Aws::String> m_principals;
85
87 bool m_principalsHasBeenSet = false;
88 bool m_actionsHasBeenSet = false;
89};
90
91} // namespace Model
92} // namespace QuickSight
93} // namespace Aws
AssetBundleResourcePermissions & AddPrincipals(PrincipalsT &&value)
AWS_QUICKSIGHT_API AssetBundleResourcePermissions & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_QUICKSIGHT_API AssetBundleResourcePermissions()=default
AssetBundleResourcePermissions & AddActions(ActionsT &&value)
AssetBundleResourcePermissions & WithActions(ActionsT &&value)
AssetBundleResourcePermissions & WithPrincipals(PrincipalsT &&value)
AWS_QUICKSIGHT_API AssetBundleResourcePermissions(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue