AWS SDK for C++

AWS SDK for C++ Version 1.11.916

Loading...
Searching...
No Matches
DataSourceCredentials.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/CredentialPair.h>
10#include <aws/quicksight/model/KeyPairCredentials.h>
11#include <aws/quicksight/model/OAuthClientCredentials.h>
12#include <aws/quicksight/model/OneDriveClientCredentials.h>
13#include <aws/quicksight/model/ServiceAccountCredentials.h>
14#include <aws/quicksight/model/SharePointClientCredentials.h>
15#include <aws/quicksight/model/WebProxyCredentials.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace QuickSight {
27namespace Model {
28
37 public:
38 AWS_QUICKSIGHT_API DataSourceCredentials() = default;
41 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
49 inline const CredentialPair& GetCredentialPair() const { return m_credentialPair; }
50 inline bool CredentialPairHasBeenSet() const { return m_credentialPairHasBeenSet; }
51 template <typename CredentialPairT = CredentialPair>
52 void SetCredentialPair(CredentialPairT&& value) {
53 m_credentialPairHasBeenSet = true;
54 m_credentialPair = std::forward<CredentialPairT>(value);
55 }
56 template <typename CredentialPairT = CredentialPair>
57 DataSourceCredentials& WithCredentialPair(CredentialPairT&& value) {
58 SetCredentialPair(std::forward<CredentialPairT>(value));
59 return *this;
60 }
62
64
70 inline const Aws::String& GetCopySourceArn() const { return m_copySourceArn; }
71 inline bool CopySourceArnHasBeenSet() const { return m_copySourceArnHasBeenSet; }
72 template <typename CopySourceArnT = Aws::String>
73 void SetCopySourceArn(CopySourceArnT&& value) {
74 m_copySourceArnHasBeenSet = true;
75 m_copySourceArn = std::forward<CopySourceArnT>(value);
76 }
77 template <typename CopySourceArnT = Aws::String>
78 DataSourceCredentials& WithCopySourceArn(CopySourceArnT&& value) {
79 SetCopySourceArn(std::forward<CopySourceArnT>(value));
80 return *this;
81 }
83
85
89 inline const Aws::String& GetSecretArn() const { return m_secretArn; }
90 inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; }
91 template <typename SecretArnT = Aws::String>
92 void SetSecretArn(SecretArnT&& value) {
93 m_secretArnHasBeenSet = true;
94 m_secretArn = std::forward<SecretArnT>(value);
95 }
96 template <typename SecretArnT = Aws::String>
97 DataSourceCredentials& WithSecretArn(SecretArnT&& value) {
98 SetSecretArn(std::forward<SecretArnT>(value));
99 return *this;
100 }
102
104
107 inline const KeyPairCredentials& GetKeyPairCredentials() const { return m_keyPairCredentials; }
108 inline bool KeyPairCredentialsHasBeenSet() const { return m_keyPairCredentialsHasBeenSet; }
109 template <typename KeyPairCredentialsT = KeyPairCredentials>
110 void SetKeyPairCredentials(KeyPairCredentialsT&& value) {
111 m_keyPairCredentialsHasBeenSet = true;
112 m_keyPairCredentials = std::forward<KeyPairCredentialsT>(value);
113 }
114 template <typename KeyPairCredentialsT = KeyPairCredentials>
115 DataSourceCredentials& WithKeyPairCredentials(KeyPairCredentialsT&& value) {
116 SetKeyPairCredentials(std::forward<KeyPairCredentialsT>(value));
117 return *this;
118 }
120
122
125 inline const WebProxyCredentials& GetWebProxyCredentials() const { return m_webProxyCredentials; }
126 inline bool WebProxyCredentialsHasBeenSet() const { return m_webProxyCredentialsHasBeenSet; }
127 template <typename WebProxyCredentialsT = WebProxyCredentials>
128 void SetWebProxyCredentials(WebProxyCredentialsT&& value) {
129 m_webProxyCredentialsHasBeenSet = true;
130 m_webProxyCredentials = std::forward<WebProxyCredentialsT>(value);
131 }
132 template <typename WebProxyCredentialsT = WebProxyCredentials>
133 DataSourceCredentials& WithWebProxyCredentials(WebProxyCredentialsT&& value) {
134 SetWebProxyCredentials(std::forward<WebProxyCredentialsT>(value));
135 return *this;
136 }
138
140
146 inline const OAuthClientCredentials& GetOAuthClientCredentials() const { return m_oAuthClientCredentials; }
147 inline bool OAuthClientCredentialsHasBeenSet() const { return m_oAuthClientCredentialsHasBeenSet; }
148 template <typename OAuthClientCredentialsT = OAuthClientCredentials>
149 void SetOAuthClientCredentials(OAuthClientCredentialsT&& value) {
150 m_oAuthClientCredentialsHasBeenSet = true;
151 m_oAuthClientCredentials = std::forward<OAuthClientCredentialsT>(value);
152 }
153 template <typename OAuthClientCredentialsT = OAuthClientCredentials>
154 DataSourceCredentials& WithOAuthClientCredentials(OAuthClientCredentialsT&& value) {
155 SetOAuthClientCredentials(std::forward<OAuthClientCredentialsT>(value));
156 return *this;
157 }
159
161
165 inline const ServiceAccountCredentials& GetServiceAccountCredentials() const { return m_serviceAccountCredentials; }
166 inline bool ServiceAccountCredentialsHasBeenSet() const { return m_serviceAccountCredentialsHasBeenSet; }
167 template <typename ServiceAccountCredentialsT = ServiceAccountCredentials>
168 void SetServiceAccountCredentials(ServiceAccountCredentialsT&& value) {
169 m_serviceAccountCredentialsHasBeenSet = true;
170 m_serviceAccountCredentials = std::forward<ServiceAccountCredentialsT>(value);
171 }
172 template <typename ServiceAccountCredentialsT = ServiceAccountCredentials>
173 DataSourceCredentials& WithServiceAccountCredentials(ServiceAccountCredentialsT&& value) {
174 SetServiceAccountCredentials(std::forward<ServiceAccountCredentialsT>(value));
175 return *this;
176 }
178
180
184 inline const SharePointClientCredentials& GetSharePointClientCredentials() const { return m_sharePointClientCredentials; }
185 inline bool SharePointClientCredentialsHasBeenSet() const { return m_sharePointClientCredentialsHasBeenSet; }
186 template <typename SharePointClientCredentialsT = SharePointClientCredentials>
187 void SetSharePointClientCredentials(SharePointClientCredentialsT&& value) {
188 m_sharePointClientCredentialsHasBeenSet = true;
189 m_sharePointClientCredentials = std::forward<SharePointClientCredentialsT>(value);
190 }
191 template <typename SharePointClientCredentialsT = SharePointClientCredentials>
192 DataSourceCredentials& WithSharePointClientCredentials(SharePointClientCredentialsT&& value) {
193 SetSharePointClientCredentials(std::forward<SharePointClientCredentialsT>(value));
194 return *this;
195 }
197
199
203 inline const OneDriveClientCredentials& GetOneDriveClientCredentials() const { return m_oneDriveClientCredentials; }
204 inline bool OneDriveClientCredentialsHasBeenSet() const { return m_oneDriveClientCredentialsHasBeenSet; }
205 template <typename OneDriveClientCredentialsT = OneDriveClientCredentials>
206 void SetOneDriveClientCredentials(OneDriveClientCredentialsT&& value) {
207 m_oneDriveClientCredentialsHasBeenSet = true;
208 m_oneDriveClientCredentials = std::forward<OneDriveClientCredentialsT>(value);
209 }
210 template <typename OneDriveClientCredentialsT = OneDriveClientCredentials>
211 DataSourceCredentials& WithOneDriveClientCredentials(OneDriveClientCredentialsT&& value) {
212 SetOneDriveClientCredentials(std::forward<OneDriveClientCredentialsT>(value));
213 return *this;
214 }
216 private:
217 CredentialPair m_credentialPair;
218
219 Aws::String m_copySourceArn;
220
221 Aws::String m_secretArn;
222
223 KeyPairCredentials m_keyPairCredentials;
224
225 WebProxyCredentials m_webProxyCredentials;
226
227 OAuthClientCredentials m_oAuthClientCredentials;
228
229 ServiceAccountCredentials m_serviceAccountCredentials;
230
231 SharePointClientCredentials m_sharePointClientCredentials;
232
233 OneDriveClientCredentials m_oneDriveClientCredentials;
234 bool m_credentialPairHasBeenSet = false;
235 bool m_copySourceArnHasBeenSet = false;
236 bool m_secretArnHasBeenSet = false;
237 bool m_keyPairCredentialsHasBeenSet = false;
238 bool m_webProxyCredentialsHasBeenSet = false;
239 bool m_oAuthClientCredentialsHasBeenSet = false;
240 bool m_serviceAccountCredentialsHasBeenSet = false;
241 bool m_sharePointClientCredentialsHasBeenSet = false;
242 bool m_oneDriveClientCredentialsHasBeenSet = false;
243};
244
245} // namespace Model
246} // namespace QuickSight
247} // namespace Aws
void SetOneDriveClientCredentials(OneDriveClientCredentialsT &&value)
DataSourceCredentials & WithServiceAccountCredentials(ServiceAccountCredentialsT &&value)
void SetWebProxyCredentials(WebProxyCredentialsT &&value)
DataSourceCredentials & WithKeyPairCredentials(KeyPairCredentialsT &&value)
AWS_QUICKSIGHT_API DataSourceCredentials(Aws::Utils::Json::JsonView jsonValue)
void SetKeyPairCredentials(KeyPairCredentialsT &&value)
const SharePointClientCredentials & GetSharePointClientCredentials() const
DataSourceCredentials & WithOneDriveClientCredentials(OneDriveClientCredentialsT &&value)
DataSourceCredentials & WithCopySourceArn(CopySourceArnT &&value)
void SetSharePointClientCredentials(SharePointClientCredentialsT &&value)
AWS_QUICKSIGHT_API DataSourceCredentials()=default
const WebProxyCredentials & GetWebProxyCredentials() const
void SetOAuthClientCredentials(OAuthClientCredentialsT &&value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
const ServiceAccountCredentials & GetServiceAccountCredentials() const
DataSourceCredentials & WithOAuthClientCredentials(OAuthClientCredentialsT &&value)
const OneDriveClientCredentials & GetOneDriveClientCredentials() const
DataSourceCredentials & WithCredentialPair(CredentialPairT &&value)
void SetServiceAccountCredentials(ServiceAccountCredentialsT &&value)
DataSourceCredentials & WithWebProxyCredentials(WebProxyCredentialsT &&value)
const KeyPairCredentials & GetKeyPairCredentials() const
DataSourceCredentials & WithSecretArn(SecretArnT &&value)
const OAuthClientCredentials & GetOAuthClientCredentials() const
AWS_QUICKSIGHT_API DataSourceCredentials & operator=(Aws::Utils::Json::JsonView jsonValue)
DataSourceCredentials & WithSharePointClientCredentials(SharePointClientCredentialsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue