AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetPrincipals(const Aws::Vector<Aws::String>& value) { m_principalsHasBeenSet = true; m_principals = value; }
53 inline void SetPrincipals(Aws::Vector<Aws::String>&& value) { m_principalsHasBeenSet = true; m_principals = std::move(value); }
55 inline ColumnLevelPermissionRule& WithPrincipals(Aws::Vector<Aws::String>&& value) { SetPrincipals(std::move(value)); return *this;}
56 inline ColumnLevelPermissionRule& AddPrincipals(const Aws::String& value) { m_principalsHasBeenSet = true; m_principals.push_back(value); return *this; }
57 inline ColumnLevelPermissionRule& AddPrincipals(Aws::String&& value) { m_principalsHasBeenSet = true; m_principals.push_back(std::move(value)); return *this; }
58 inline ColumnLevelPermissionRule& AddPrincipals(const char* value) { m_principalsHasBeenSet = true; m_principals.push_back(value); return *this; }
60
62
65 inline const Aws::Vector<Aws::String>& GetColumnNames() const{ return m_columnNames; }
66 inline bool ColumnNamesHasBeenSet() const { return m_columnNamesHasBeenSet; }
67 inline void SetColumnNames(const Aws::Vector<Aws::String>& value) { m_columnNamesHasBeenSet = true; m_columnNames = value; }
68 inline void SetColumnNames(Aws::Vector<Aws::String>&& value) { m_columnNamesHasBeenSet = true; m_columnNames = std::move(value); }
70 inline ColumnLevelPermissionRule& WithColumnNames(Aws::Vector<Aws::String>&& value) { SetColumnNames(std::move(value)); return *this;}
71 inline ColumnLevelPermissionRule& AddColumnNames(const Aws::String& value) { m_columnNamesHasBeenSet = true; m_columnNames.push_back(value); return *this; }
72 inline ColumnLevelPermissionRule& AddColumnNames(Aws::String&& value) { m_columnNamesHasBeenSet = true; m_columnNames.push_back(std::move(value)); return *this; }
73 inline ColumnLevelPermissionRule& AddColumnNames(const char* value) { m_columnNamesHasBeenSet = true; m_columnNames.push_back(value); return *this; }
75 private:
76
77 Aws::Vector<Aws::String> m_principals;
78 bool m_principalsHasBeenSet = false;
79
80 Aws::Vector<Aws::String> m_columnNames;
81 bool m_columnNamesHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace QuickSight
86} // namespace Aws
void SetPrincipals(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetPrincipals() const
ColumnLevelPermissionRule & AddColumnNames(const char *value)
ColumnLevelPermissionRule & WithPrincipals(const Aws::Vector< Aws::String > &value)
ColumnLevelPermissionRule & AddPrincipals(const Aws::String &value)
void SetColumnNames(const Aws::Vector< Aws::String > &value)
void SetColumnNames(Aws::Vector< Aws::String > &&value)
ColumnLevelPermissionRule & AddColumnNames(Aws::String &&value)
ColumnLevelPermissionRule & WithColumnNames(const Aws::Vector< Aws::String > &value)
ColumnLevelPermissionRule & WithPrincipals(Aws::Vector< Aws::String > &&value)
AWS_QUICKSIGHT_API ColumnLevelPermissionRule(Aws::Utils::Json::JsonView jsonValue)
ColumnLevelPermissionRule & AddPrincipals(Aws::String &&value)
ColumnLevelPermissionRule & AddColumnNames(const Aws::String &value)
ColumnLevelPermissionRule & AddPrincipals(const char *value)
const Aws::Vector< Aws::String > & GetColumnNames() const
void SetPrincipals(Aws::Vector< Aws::String > &&value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
ColumnLevelPermissionRule & WithColumnNames(Aws::Vector< Aws::String > &&value)
AWS_QUICKSIGHT_API ColumnLevelPermissionRule & operator=(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