AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AssetBundleResourcePermissions.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_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 QuickSight
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_QUICKSIGHT_API AssetBundleResourcePermissions() = default;
39 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Vector<Aws::String>& GetPrincipals() const { return m_principals; }
47 inline bool PrincipalsHasBeenSet() const { return m_principalsHasBeenSet; }
48 template<typename PrincipalsT = Aws::Vector<Aws::String>>
49 void SetPrincipals(PrincipalsT&& value) { m_principalsHasBeenSet = true; m_principals = std::forward<PrincipalsT>(value); }
50 template<typename PrincipalsT = Aws::Vector<Aws::String>>
51 AssetBundleResourcePermissions& WithPrincipals(PrincipalsT&& value) { SetPrincipals(std::forward<PrincipalsT>(value)); return *this;}
52 template<typename PrincipalsT = Aws::String>
53 AssetBundleResourcePermissions& AddPrincipals(PrincipalsT&& value) { m_principalsHasBeenSet = true; m_principals.emplace_back(std::forward<PrincipalsT>(value)); return *this; }
55
57
60 inline const Aws::Vector<Aws::String>& GetActions() const { return m_actions; }
61 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
62 template<typename ActionsT = Aws::Vector<Aws::String>>
63 void SetActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions = std::forward<ActionsT>(value); }
64 template<typename ActionsT = Aws::Vector<Aws::String>>
65 AssetBundleResourcePermissions& WithActions(ActionsT&& value) { SetActions(std::forward<ActionsT>(value)); return *this;}
66 template<typename ActionsT = Aws::String>
67 AssetBundleResourcePermissions& AddActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions.emplace_back(std::forward<ActionsT>(value)); return *this; }
69 private:
70
71 Aws::Vector<Aws::String> m_principals;
72 bool m_principalsHasBeenSet = false;
73
75 bool m_actionsHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace QuickSight
80} // 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