AWS SDK for C++

AWS SDK for C++ Version 1.11.786

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/WebProxyCredentials.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace QuickSight {
24namespace Model {
25
34 public:
35 AWS_QUICKSIGHT_API DataSourceCredentials() = default;
38 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
46 inline const CredentialPair& GetCredentialPair() const { return m_credentialPair; }
47 inline bool CredentialPairHasBeenSet() const { return m_credentialPairHasBeenSet; }
48 template <typename CredentialPairT = CredentialPair>
49 void SetCredentialPair(CredentialPairT&& value) {
50 m_credentialPairHasBeenSet = true;
51 m_credentialPair = std::forward<CredentialPairT>(value);
52 }
53 template <typename CredentialPairT = CredentialPair>
54 DataSourceCredentials& WithCredentialPair(CredentialPairT&& value) {
55 SetCredentialPair(std::forward<CredentialPairT>(value));
56 return *this;
57 }
59
61
67 inline const Aws::String& GetCopySourceArn() const { return m_copySourceArn; }
68 inline bool CopySourceArnHasBeenSet() const { return m_copySourceArnHasBeenSet; }
69 template <typename CopySourceArnT = Aws::String>
70 void SetCopySourceArn(CopySourceArnT&& value) {
71 m_copySourceArnHasBeenSet = true;
72 m_copySourceArn = std::forward<CopySourceArnT>(value);
73 }
74 template <typename CopySourceArnT = Aws::String>
75 DataSourceCredentials& WithCopySourceArn(CopySourceArnT&& value) {
76 SetCopySourceArn(std::forward<CopySourceArnT>(value));
77 return *this;
78 }
80
82
86 inline const Aws::String& GetSecretArn() const { return m_secretArn; }
87 inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; }
88 template <typename SecretArnT = Aws::String>
89 void SetSecretArn(SecretArnT&& value) {
90 m_secretArnHasBeenSet = true;
91 m_secretArn = std::forward<SecretArnT>(value);
92 }
93 template <typename SecretArnT = Aws::String>
94 DataSourceCredentials& WithSecretArn(SecretArnT&& value) {
95 SetSecretArn(std::forward<SecretArnT>(value));
96 return *this;
97 }
99
101
104 inline const KeyPairCredentials& GetKeyPairCredentials() const { return m_keyPairCredentials; }
105 inline bool KeyPairCredentialsHasBeenSet() const { return m_keyPairCredentialsHasBeenSet; }
106 template <typename KeyPairCredentialsT = KeyPairCredentials>
107 void SetKeyPairCredentials(KeyPairCredentialsT&& value) {
108 m_keyPairCredentialsHasBeenSet = true;
109 m_keyPairCredentials = std::forward<KeyPairCredentialsT>(value);
110 }
111 template <typename KeyPairCredentialsT = KeyPairCredentials>
112 DataSourceCredentials& WithKeyPairCredentials(KeyPairCredentialsT&& value) {
113 SetKeyPairCredentials(std::forward<KeyPairCredentialsT>(value));
114 return *this;
115 }
117
119
122 inline const WebProxyCredentials& GetWebProxyCredentials() const { return m_webProxyCredentials; }
123 inline bool WebProxyCredentialsHasBeenSet() const { return m_webProxyCredentialsHasBeenSet; }
124 template <typename WebProxyCredentialsT = WebProxyCredentials>
125 void SetWebProxyCredentials(WebProxyCredentialsT&& value) {
126 m_webProxyCredentialsHasBeenSet = true;
127 m_webProxyCredentials = std::forward<WebProxyCredentialsT>(value);
128 }
129 template <typename WebProxyCredentialsT = WebProxyCredentials>
130 DataSourceCredentials& WithWebProxyCredentials(WebProxyCredentialsT&& value) {
131 SetWebProxyCredentials(std::forward<WebProxyCredentialsT>(value));
132 return *this;
133 }
135
137
143 inline const OAuthClientCredentials& GetOAuthClientCredentials() const { return m_oAuthClientCredentials; }
144 inline bool OAuthClientCredentialsHasBeenSet() const { return m_oAuthClientCredentialsHasBeenSet; }
145 template <typename OAuthClientCredentialsT = OAuthClientCredentials>
146 void SetOAuthClientCredentials(OAuthClientCredentialsT&& value) {
147 m_oAuthClientCredentialsHasBeenSet = true;
148 m_oAuthClientCredentials = std::forward<OAuthClientCredentialsT>(value);
149 }
150 template <typename OAuthClientCredentialsT = OAuthClientCredentials>
151 DataSourceCredentials& WithOAuthClientCredentials(OAuthClientCredentialsT&& value) {
152 SetOAuthClientCredentials(std::forward<OAuthClientCredentialsT>(value));
153 return *this;
154 }
156 private:
157 CredentialPair m_credentialPair;
158
159 Aws::String m_copySourceArn;
160
161 Aws::String m_secretArn;
162
163 KeyPairCredentials m_keyPairCredentials;
164
165 WebProxyCredentials m_webProxyCredentials;
166
167 OAuthClientCredentials m_oAuthClientCredentials;
168 bool m_credentialPairHasBeenSet = false;
169 bool m_copySourceArnHasBeenSet = false;
170 bool m_secretArnHasBeenSet = false;
171 bool m_keyPairCredentialsHasBeenSet = false;
172 bool m_webProxyCredentialsHasBeenSet = false;
173 bool m_oAuthClientCredentialsHasBeenSet = false;
174};
175
176} // namespace Model
177} // namespace QuickSight
178} // namespace Aws
void SetWebProxyCredentials(WebProxyCredentialsT &&value)
DataSourceCredentials & WithKeyPairCredentials(KeyPairCredentialsT &&value)
AWS_QUICKSIGHT_API DataSourceCredentials(Aws::Utils::Json::JsonView jsonValue)
void SetKeyPairCredentials(KeyPairCredentialsT &&value)
DataSourceCredentials & WithCopySourceArn(CopySourceArnT &&value)
AWS_QUICKSIGHT_API DataSourceCredentials()=default
const WebProxyCredentials & GetWebProxyCredentials() const
void SetOAuthClientCredentials(OAuthClientCredentialsT &&value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
DataSourceCredentials & WithOAuthClientCredentials(OAuthClientCredentialsT &&value)
DataSourceCredentials & WithCredentialPair(CredentialPairT &&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)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue