AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RedshiftIAMParameters.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.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 RedshiftIAMParameters();
42 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
53 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
54 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
55 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
56 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
57 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
58 inline RedshiftIAMParameters& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
59 inline RedshiftIAMParameters& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
60 inline RedshiftIAMParameters& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
62
64
71 inline const Aws::String& GetDatabaseUser() const{ return m_databaseUser; }
72 inline bool DatabaseUserHasBeenSet() const { return m_databaseUserHasBeenSet; }
73 inline void SetDatabaseUser(const Aws::String& value) { m_databaseUserHasBeenSet = true; m_databaseUser = value; }
74 inline void SetDatabaseUser(Aws::String&& value) { m_databaseUserHasBeenSet = true; m_databaseUser = std::move(value); }
75 inline void SetDatabaseUser(const char* value) { m_databaseUserHasBeenSet = true; m_databaseUser.assign(value); }
76 inline RedshiftIAMParameters& WithDatabaseUser(const Aws::String& value) { SetDatabaseUser(value); return *this;}
77 inline RedshiftIAMParameters& WithDatabaseUser(Aws::String&& value) { SetDatabaseUser(std::move(value)); return *this;}
78 inline RedshiftIAMParameters& WithDatabaseUser(const char* value) { SetDatabaseUser(value); return *this;}
80
82
89 inline const Aws::Vector<Aws::String>& GetDatabaseGroups() const{ return m_databaseGroups; }
90 inline bool DatabaseGroupsHasBeenSet() const { return m_databaseGroupsHasBeenSet; }
91 inline void SetDatabaseGroups(const Aws::Vector<Aws::String>& value) { m_databaseGroupsHasBeenSet = true; m_databaseGroups = value; }
92 inline void SetDatabaseGroups(Aws::Vector<Aws::String>&& value) { m_databaseGroupsHasBeenSet = true; m_databaseGroups = std::move(value); }
94 inline RedshiftIAMParameters& WithDatabaseGroups(Aws::Vector<Aws::String>&& value) { SetDatabaseGroups(std::move(value)); return *this;}
95 inline RedshiftIAMParameters& AddDatabaseGroups(const Aws::String& value) { m_databaseGroupsHasBeenSet = true; m_databaseGroups.push_back(value); return *this; }
96 inline RedshiftIAMParameters& AddDatabaseGroups(Aws::String&& value) { m_databaseGroupsHasBeenSet = true; m_databaseGroups.push_back(std::move(value)); return *this; }
97 inline RedshiftIAMParameters& AddDatabaseGroups(const char* value) { m_databaseGroupsHasBeenSet = true; m_databaseGroups.push_back(value); return *this; }
99
101
108 inline bool GetAutoCreateDatabaseUser() const{ return m_autoCreateDatabaseUser; }
109 inline bool AutoCreateDatabaseUserHasBeenSet() const { return m_autoCreateDatabaseUserHasBeenSet; }
110 inline void SetAutoCreateDatabaseUser(bool value) { m_autoCreateDatabaseUserHasBeenSet = true; m_autoCreateDatabaseUser = value; }
113 private:
114
115 Aws::String m_roleArn;
116 bool m_roleArnHasBeenSet = false;
117
118 Aws::String m_databaseUser;
119 bool m_databaseUserHasBeenSet = false;
120
121 Aws::Vector<Aws::String> m_databaseGroups;
122 bool m_databaseGroupsHasBeenSet = false;
123
124 bool m_autoCreateDatabaseUser;
125 bool m_autoCreateDatabaseUserHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace QuickSight
130} // namespace Aws
RedshiftIAMParameters & WithRoleArn(const char *value)
RedshiftIAMParameters & WithDatabaseGroups(const Aws::Vector< Aws::String > &value)
AWS_QUICKSIGHT_API RedshiftIAMParameters(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
RedshiftIAMParameters & AddDatabaseGroups(Aws::String &&value)
void SetDatabaseGroups(const Aws::Vector< Aws::String > &value)
RedshiftIAMParameters & WithDatabaseUser(const char *value)
RedshiftIAMParameters & WithDatabaseGroups(Aws::Vector< Aws::String > &&value)
RedshiftIAMParameters & WithDatabaseUser(Aws::String &&value)
RedshiftIAMParameters & AddDatabaseGroups(const char *value)
RedshiftIAMParameters & WithDatabaseUser(const Aws::String &value)
RedshiftIAMParameters & WithRoleArn(Aws::String &&value)
RedshiftIAMParameters & WithAutoCreateDatabaseUser(bool value)
void SetDatabaseGroups(Aws::Vector< Aws::String > &&value)
AWS_QUICKSIGHT_API RedshiftIAMParameters & operator=(Aws::Utils::Json::JsonView jsonValue)
RedshiftIAMParameters & AddDatabaseGroups(const Aws::String &value)
RedshiftIAMParameters & WithRoleArn(const Aws::String &value)
const Aws::Vector< Aws::String > & GetDatabaseGroups() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue