AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetPrincipals(const Aws::Vector<Aws::String>& value) { m_principalsHasBeenSet = true; m_principals = value; }
49 inline void SetPrincipals(Aws::Vector<Aws::String>&& value) { m_principalsHasBeenSet = true; m_principals = std::move(value); }
51 inline AssetBundleResourcePermissions& WithPrincipals(Aws::Vector<Aws::String>&& value) { SetPrincipals(std::move(value)); return *this;}
52 inline AssetBundleResourcePermissions& AddPrincipals(const Aws::String& value) { m_principalsHasBeenSet = true; m_principals.push_back(value); return *this; }
53 inline AssetBundleResourcePermissions& AddPrincipals(Aws::String&& value) { m_principalsHasBeenSet = true; m_principals.push_back(std::move(value)); return *this; }
54 inline AssetBundleResourcePermissions& AddPrincipals(const char* value) { m_principalsHasBeenSet = true; m_principals.push_back(value); return *this; }
56
58
61 inline const Aws::Vector<Aws::String>& GetActions() const{ return m_actions; }
62 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
63 inline void SetActions(const Aws::Vector<Aws::String>& value) { m_actionsHasBeenSet = true; m_actions = value; }
64 inline void SetActions(Aws::Vector<Aws::String>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
66 inline AssetBundleResourcePermissions& WithActions(Aws::Vector<Aws::String>&& value) { SetActions(std::move(value)); return *this;}
67 inline AssetBundleResourcePermissions& AddActions(const Aws::String& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
68 inline AssetBundleResourcePermissions& AddActions(Aws::String&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
69 inline AssetBundleResourcePermissions& AddActions(const char* value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
71 private:
72
73 Aws::Vector<Aws::String> m_principals;
74 bool m_principalsHasBeenSet = false;
75
77 bool m_actionsHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace QuickSight
82} // namespace Aws
AssetBundleResourcePermissions & WithActions(const Aws::Vector< Aws::String > &value)
AssetBundleResourcePermissions & WithPrincipals(Aws::Vector< Aws::String > &&value)
AssetBundleResourcePermissions & AddActions(Aws::String &&value)
AssetBundleResourcePermissions & WithPrincipals(const Aws::Vector< Aws::String > &value)
AssetBundleResourcePermissions & AddPrincipals(const Aws::String &value)
AWS_QUICKSIGHT_API AssetBundleResourcePermissions & operator=(Aws::Utils::Json::JsonView jsonValue)
AssetBundleResourcePermissions & AddActions(const char *value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
AssetBundleResourcePermissions & AddPrincipals(const char *value)
AssetBundleResourcePermissions & AddActions(const Aws::String &value)
AssetBundleResourcePermissions & AddPrincipals(Aws::String &&value)
void SetPrincipals(const Aws::Vector< Aws::String > &value)
AssetBundleResourcePermissions & WithActions(Aws::Vector< Aws::String > &&value)
AWS_QUICKSIGHT_API AssetBundleResourcePermissions(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue