AWS SDK for C++

AWS SDK for C++ Version 1.11.906

Loading...
Searching...
No Matches
DatabricksParameters.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
31 public:
32 AWS_QUICKSIGHT_API DatabricksParameters() = default;
33 AWS_QUICKSIGHT_API DatabricksParameters(Aws::Utils::Json::JsonView jsonValue);
35 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetHost() const { return m_host; }
42 inline bool HostHasBeenSet() const { return m_hostHasBeenSet; }
43 template <typename HostT = Aws::String>
44 void SetHost(HostT&& value) {
45 m_hostHasBeenSet = true;
46 m_host = std::forward<HostT>(value);
47 }
48 template <typename HostT = Aws::String>
50 SetHost(std::forward<HostT>(value));
51 return *this;
52 }
54
56
59 inline int GetPort() const { return m_port; }
60 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
61 inline void SetPort(int value) {
62 m_portHasBeenSet = true;
63 m_port = value;
64 }
65 inline DatabricksParameters& WithPort(int value) {
66 SetPort(value);
67 return *this;
68 }
70
72
75 inline const Aws::String& GetSqlEndpointPath() const { return m_sqlEndpointPath; }
76 inline bool SqlEndpointPathHasBeenSet() const { return m_sqlEndpointPathHasBeenSet; }
77 template <typename SqlEndpointPathT = Aws::String>
78 void SetSqlEndpointPath(SqlEndpointPathT&& value) {
79 m_sqlEndpointPathHasBeenSet = true;
80 m_sqlEndpointPath = std::forward<SqlEndpointPathT>(value);
81 }
82 template <typename SqlEndpointPathT = Aws::String>
83 DatabricksParameters& WithSqlEndpointPath(SqlEndpointPathT&& value) {
84 SetSqlEndpointPath(std::forward<SqlEndpointPathT>(value));
85 return *this;
86 }
88
90
94 inline AuthenticationType GetAuthenticationType() const { return m_authenticationType; }
95 inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
97 m_authenticationTypeHasBeenSet = true;
98 m_authenticationType = value;
99 }
102 return *this;
103 }
105
107
111 inline const OAuthParameters& GetOAuthParameters() const { return m_oAuthParameters; }
112 inline bool OAuthParametersHasBeenSet() const { return m_oAuthParametersHasBeenSet; }
113 template <typename OAuthParametersT = OAuthParameters>
114 void SetOAuthParameters(OAuthParametersT&& value) {
115 m_oAuthParametersHasBeenSet = true;
116 m_oAuthParameters = std::forward<OAuthParametersT>(value);
117 }
118 template <typename OAuthParametersT = OAuthParameters>
119 DatabricksParameters& WithOAuthParameters(OAuthParametersT&& value) {
120 SetOAuthParameters(std::forward<OAuthParametersT>(value));
121 return *this;
122 }
124 private:
125 Aws::String m_host;
126
127 int m_port{0};
128
129 Aws::String m_sqlEndpointPath;
130
132
133 OAuthParameters m_oAuthParameters;
134 bool m_hostHasBeenSet = false;
135 bool m_portHasBeenSet = false;
136 bool m_sqlEndpointPathHasBeenSet = false;
137 bool m_authenticationTypeHasBeenSet = false;
138 bool m_oAuthParametersHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace QuickSight
143} // namespace Aws
const OAuthParameters & GetOAuthParameters() const
void SetSqlEndpointPath(SqlEndpointPathT &&value)
AWS_QUICKSIGHT_API DatabricksParameters(Aws::Utils::Json::JsonView jsonValue)
DatabricksParameters & WithSqlEndpointPath(SqlEndpointPathT &&value)
DatabricksParameters & WithHost(HostT &&value)
AWS_QUICKSIGHT_API DatabricksParameters & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetOAuthParameters(OAuthParametersT &&value)
DatabricksParameters & WithPort(int value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_QUICKSIGHT_API DatabricksParameters()=default
DatabricksParameters & WithAuthenticationType(AuthenticationType value)
void SetAuthenticationType(AuthenticationType value)
DatabricksParameters & WithOAuthParameters(OAuthParametersT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue