AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ColumnLevelPermissionRule.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
37 {
38 public:
39 AWS_QUICKSIGHT_API ColumnLevelPermissionRule() = default;
42 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Aws::Vector<Aws::String>& GetPrincipals() const { return m_principals; }
51 inline bool PrincipalsHasBeenSet() const { return m_principalsHasBeenSet; }
52 template<typename PrincipalsT = Aws::Vector<Aws::String>>
53 void SetPrincipals(PrincipalsT&& value) { m_principalsHasBeenSet = true; m_principals = std::forward<PrincipalsT>(value); }
54 template<typename PrincipalsT = Aws::Vector<Aws::String>>
55 ColumnLevelPermissionRule& WithPrincipals(PrincipalsT&& value) { SetPrincipals(std::forward<PrincipalsT>(value)); return *this;}
56 template<typename PrincipalsT = Aws::String>
57 ColumnLevelPermissionRule& AddPrincipals(PrincipalsT&& value) { m_principalsHasBeenSet = true; m_principals.emplace_back(std::forward<PrincipalsT>(value)); return *this; }
59
61
64 inline const Aws::Vector<Aws::String>& GetColumnNames() const { return m_columnNames; }
65 inline bool ColumnNamesHasBeenSet() const { return m_columnNamesHasBeenSet; }
66 template<typename ColumnNamesT = Aws::Vector<Aws::String>>
67 void SetColumnNames(ColumnNamesT&& value) { m_columnNamesHasBeenSet = true; m_columnNames = std::forward<ColumnNamesT>(value); }
68 template<typename ColumnNamesT = Aws::Vector<Aws::String>>
69 ColumnLevelPermissionRule& WithColumnNames(ColumnNamesT&& value) { SetColumnNames(std::forward<ColumnNamesT>(value)); return *this;}
70 template<typename ColumnNamesT = Aws::String>
71 ColumnLevelPermissionRule& AddColumnNames(ColumnNamesT&& value) { m_columnNamesHasBeenSet = true; m_columnNames.emplace_back(std::forward<ColumnNamesT>(value)); return *this; }
73 private:
74
75 Aws::Vector<Aws::String> m_principals;
76 bool m_principalsHasBeenSet = false;
77
78 Aws::Vector<Aws::String> m_columnNames;
79 bool m_columnNamesHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace QuickSight
84} // namespace Aws
ColumnLevelPermissionRule & WithColumnNames(ColumnNamesT &&value)
const Aws::Vector< Aws::String > & GetPrincipals() const
AWS_QUICKSIGHT_API ColumnLevelPermissionRule()=default
ColumnLevelPermissionRule & AddColumnNames(ColumnNamesT &&value)
ColumnLevelPermissionRule & AddPrincipals(PrincipalsT &&value)
AWS_QUICKSIGHT_API ColumnLevelPermissionRule(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetColumnNames() const
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_QUICKSIGHT_API ColumnLevelPermissionRule & operator=(Aws::Utils::Json::JsonView jsonValue)
ColumnLevelPermissionRule & WithPrincipals(PrincipalsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue