AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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/WebProxyCredentials.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace QuickSight {
23namespace Model {
24
33 public:
34 AWS_QUICKSIGHT_API DataSourceCredentials() = default;
37 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
45 inline const CredentialPair& GetCredentialPair() const { return m_credentialPair; }
46 inline bool CredentialPairHasBeenSet() const { return m_credentialPairHasBeenSet; }
47 template <typename CredentialPairT = CredentialPair>
48 void SetCredentialPair(CredentialPairT&& value) {
49 m_credentialPairHasBeenSet = true;
50 m_credentialPair = std::forward<CredentialPairT>(value);
51 }
52 template <typename CredentialPairT = CredentialPair>
53 DataSourceCredentials& WithCredentialPair(CredentialPairT&& value) {
54 SetCredentialPair(std::forward<CredentialPairT>(value));
55 return *this;
56 }
58
60
66 inline const Aws::String& GetCopySourceArn() const { return m_copySourceArn; }
67 inline bool CopySourceArnHasBeenSet() const { return m_copySourceArnHasBeenSet; }
68 template <typename CopySourceArnT = Aws::String>
69 void SetCopySourceArn(CopySourceArnT&& value) {
70 m_copySourceArnHasBeenSet = true;
71 m_copySourceArn = std::forward<CopySourceArnT>(value);
72 }
73 template <typename CopySourceArnT = Aws::String>
74 DataSourceCredentials& WithCopySourceArn(CopySourceArnT&& value) {
75 SetCopySourceArn(std::forward<CopySourceArnT>(value));
76 return *this;
77 }
79
81
85 inline const Aws::String& GetSecretArn() const { return m_secretArn; }
86 inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; }
87 template <typename SecretArnT = Aws::String>
88 void SetSecretArn(SecretArnT&& value) {
89 m_secretArnHasBeenSet = true;
90 m_secretArn = std::forward<SecretArnT>(value);
91 }
92 template <typename SecretArnT = Aws::String>
93 DataSourceCredentials& WithSecretArn(SecretArnT&& value) {
94 SetSecretArn(std::forward<SecretArnT>(value));
95 return *this;
96 }
98
100
103 inline const KeyPairCredentials& GetKeyPairCredentials() const { return m_keyPairCredentials; }
104 inline bool KeyPairCredentialsHasBeenSet() const { return m_keyPairCredentialsHasBeenSet; }
105 template <typename KeyPairCredentialsT = KeyPairCredentials>
106 void SetKeyPairCredentials(KeyPairCredentialsT&& value) {
107 m_keyPairCredentialsHasBeenSet = true;
108 m_keyPairCredentials = std::forward<KeyPairCredentialsT>(value);
109 }
110 template <typename KeyPairCredentialsT = KeyPairCredentials>
111 DataSourceCredentials& WithKeyPairCredentials(KeyPairCredentialsT&& value) {
112 SetKeyPairCredentials(std::forward<KeyPairCredentialsT>(value));
113 return *this;
114 }
116
118
121 inline const WebProxyCredentials& GetWebProxyCredentials() const { return m_webProxyCredentials; }
122 inline bool WebProxyCredentialsHasBeenSet() const { return m_webProxyCredentialsHasBeenSet; }
123 template <typename WebProxyCredentialsT = WebProxyCredentials>
124 void SetWebProxyCredentials(WebProxyCredentialsT&& value) {
125 m_webProxyCredentialsHasBeenSet = true;
126 m_webProxyCredentials = std::forward<WebProxyCredentialsT>(value);
127 }
128 template <typename WebProxyCredentialsT = WebProxyCredentials>
129 DataSourceCredentials& WithWebProxyCredentials(WebProxyCredentialsT&& value) {
130 SetWebProxyCredentials(std::forward<WebProxyCredentialsT>(value));
131 return *this;
132 }
134 private:
135 CredentialPair m_credentialPair;
136
137 Aws::String m_copySourceArn;
138
139 Aws::String m_secretArn;
140
141 KeyPairCredentials m_keyPairCredentials;
142
143 WebProxyCredentials m_webProxyCredentials;
144 bool m_credentialPairHasBeenSet = false;
145 bool m_copySourceArnHasBeenSet = false;
146 bool m_secretArnHasBeenSet = false;
147 bool m_keyPairCredentialsHasBeenSet = false;
148 bool m_webProxyCredentialsHasBeenSet = false;
149};
150
151} // namespace Model
152} // namespace QuickSight
153} // 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
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
DataSourceCredentials & WithCredentialPair(CredentialPairT &&value)
DataSourceCredentials & WithWebProxyCredentials(WebProxyCredentialsT &&value)
const KeyPairCredentials & GetKeyPairCredentials() const
DataSourceCredentials & WithSecretArn(SecretArnT &&value)
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