AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
ColumnLevelPermissionRule.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
33 public:
34 AWS_QUICKSIGHT_API ColumnLevelPermissionRule() = default;
37 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::Vector<Aws::String>& GetPrincipals() const { return m_principals; }
44 inline bool PrincipalsHasBeenSet() const { return m_principalsHasBeenSet; }
45 template <typename PrincipalsT = Aws::Vector<Aws::String>>
46 void SetPrincipals(PrincipalsT&& value) {
47 m_principalsHasBeenSet = true;
48 m_principals = std::forward<PrincipalsT>(value);
49 }
50 template <typename PrincipalsT = Aws::Vector<Aws::String>>
52 SetPrincipals(std::forward<PrincipalsT>(value));
53 return *this;
54 }
55 template <typename PrincipalsT = Aws::String>
57 m_principalsHasBeenSet = true;
58 m_principals.emplace_back(std::forward<PrincipalsT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::Vector<Aws::String>& GetColumnNames() const { return m_columnNames; }
68 inline bool ColumnNamesHasBeenSet() const { return m_columnNamesHasBeenSet; }
69 template <typename ColumnNamesT = Aws::Vector<Aws::String>>
70 void SetColumnNames(ColumnNamesT&& value) {
71 m_columnNamesHasBeenSet = true;
72 m_columnNames = std::forward<ColumnNamesT>(value);
73 }
74 template <typename ColumnNamesT = Aws::Vector<Aws::String>>
76 SetColumnNames(std::forward<ColumnNamesT>(value));
77 return *this;
78 }
79 template <typename ColumnNamesT = Aws::String>
81 m_columnNamesHasBeenSet = true;
82 m_columnNames.emplace_back(std::forward<ColumnNamesT>(value));
83 return *this;
84 }
86 private:
87 Aws::Vector<Aws::String> m_principals;
88
89 Aws::Vector<Aws::String> m_columnNames;
90 bool m_principalsHasBeenSet = false;
91 bool m_columnNamesHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace QuickSight
96} // 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