AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
SnowflakeParameters.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/quicksight/QuickSight_EXPORTS.h>
9#include <aws/quicksight/model/AuthenticationType.h>
10#include <aws/quicksight/model/OAuthParameters.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace QuickSight {
22namespace Model {
23
30 public:
31 AWS_QUICKSIGHT_API SnowflakeParameters() = default;
32 AWS_QUICKSIGHT_API SnowflakeParameters(Aws::Utils::Json::JsonView jsonValue);
34 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetHost() const { return m_host; }
41 inline bool HostHasBeenSet() const { return m_hostHasBeenSet; }
42 template <typename HostT = Aws::String>
43 void SetHost(HostT&& value) {
44 m_hostHasBeenSet = true;
45 m_host = std::forward<HostT>(value);
46 }
47 template <typename HostT = Aws::String>
48 SnowflakeParameters& WithHost(HostT&& value) {
49 SetHost(std::forward<HostT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDatabase() const { return m_database; }
59 inline bool DatabaseHasBeenSet() const { return m_databaseHasBeenSet; }
60 template <typename DatabaseT = Aws::String>
61 void SetDatabase(DatabaseT&& value) {
62 m_databaseHasBeenSet = true;
63 m_database = std::forward<DatabaseT>(value);
64 }
65 template <typename DatabaseT = Aws::String>
66 SnowflakeParameters& WithDatabase(DatabaseT&& value) {
67 SetDatabase(std::forward<DatabaseT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetWarehouse() const { return m_warehouse; }
77 inline bool WarehouseHasBeenSet() const { return m_warehouseHasBeenSet; }
78 template <typename WarehouseT = Aws::String>
79 void SetWarehouse(WarehouseT&& value) {
80 m_warehouseHasBeenSet = true;
81 m_warehouse = std::forward<WarehouseT>(value);
82 }
83 template <typename WarehouseT = Aws::String>
84 SnowflakeParameters& WithWarehouse(WarehouseT&& value) {
85 SetWarehouse(std::forward<WarehouseT>(value));
86 return *this;
87 }
89
91
95 inline AuthenticationType GetAuthenticationType() const { return m_authenticationType; }
96 inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
98 m_authenticationTypeHasBeenSet = true;
99 m_authenticationType = value;
100 }
103 return *this;
104 }
106
108
111 inline const Aws::String& GetDatabaseAccessControlRole() const { return m_databaseAccessControlRole; }
112 inline bool DatabaseAccessControlRoleHasBeenSet() const { return m_databaseAccessControlRoleHasBeenSet; }
113 template <typename DatabaseAccessControlRoleT = Aws::String>
114 void SetDatabaseAccessControlRole(DatabaseAccessControlRoleT&& value) {
115 m_databaseAccessControlRoleHasBeenSet = true;
116 m_databaseAccessControlRole = std::forward<DatabaseAccessControlRoleT>(value);
117 }
118 template <typename DatabaseAccessControlRoleT = Aws::String>
119 SnowflakeParameters& WithDatabaseAccessControlRole(DatabaseAccessControlRoleT&& value) {
120 SetDatabaseAccessControlRole(std::forward<DatabaseAccessControlRoleT>(value));
121 return *this;
122 }
124
126
130 inline const OAuthParameters& GetOAuthParameters() const { return m_oAuthParameters; }
131 inline bool OAuthParametersHasBeenSet() const { return m_oAuthParametersHasBeenSet; }
132 template <typename OAuthParametersT = OAuthParameters>
133 void SetOAuthParameters(OAuthParametersT&& value) {
134 m_oAuthParametersHasBeenSet = true;
135 m_oAuthParameters = std::forward<OAuthParametersT>(value);
136 }
137 template <typename OAuthParametersT = OAuthParameters>
138 SnowflakeParameters& WithOAuthParameters(OAuthParametersT&& value) {
139 SetOAuthParameters(std::forward<OAuthParametersT>(value));
140 return *this;
141 }
143 private:
144 Aws::String m_host;
145
146 Aws::String m_database;
147
148 Aws::String m_warehouse;
149
151
152 Aws::String m_databaseAccessControlRole;
153
154 OAuthParameters m_oAuthParameters;
155 bool m_hostHasBeenSet = false;
156 bool m_databaseHasBeenSet = false;
157 bool m_warehouseHasBeenSet = false;
158 bool m_authenticationTypeHasBeenSet = false;
159 bool m_databaseAccessControlRoleHasBeenSet = false;
160 bool m_oAuthParametersHasBeenSet = false;
161};
162
163} // namespace Model
164} // namespace QuickSight
165} // namespace Aws
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_QUICKSIGHT_API SnowflakeParameters(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDatabaseAccessControlRole() const
AWS_QUICKSIGHT_API SnowflakeParameters & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetOAuthParameters(OAuthParametersT &&value)
SnowflakeParameters & WithDatabaseAccessControlRole(DatabaseAccessControlRoleT &&value)
void SetDatabaseAccessControlRole(DatabaseAccessControlRoleT &&value)
SnowflakeParameters & WithDatabase(DatabaseT &&value)
SnowflakeParameters & WithOAuthParameters(OAuthParametersT &&value)
SnowflakeParameters & WithWarehouse(WarehouseT &&value)
SnowflakeParameters & WithAuthenticationType(AuthenticationType value)
AWS_QUICKSIGHT_API SnowflakeParameters()=default
const OAuthParameters & GetOAuthParameters() const
void SetAuthenticationType(AuthenticationType value)
SnowflakeParameters & WithHost(HostT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue