AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DataSourceCredentials.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/quicksight/model/CredentialPair.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace QuickSight
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_QUICKSIGHT_API DataSourceCredentials() = default;
40 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
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) { m_credentialPairHasBeenSet = true; m_credentialPair = std::forward<CredentialPairT>(value); }
53 template<typename CredentialPairT = CredentialPair>
54 DataSourceCredentials& WithCredentialPair(CredentialPairT&& value) { SetCredentialPair(std::forward<CredentialPairT>(value)); return *this;}
56
58
64 inline const Aws::String& GetCopySourceArn() const { return m_copySourceArn; }
65 inline bool CopySourceArnHasBeenSet() const { return m_copySourceArnHasBeenSet; }
66 template<typename CopySourceArnT = Aws::String>
67 void SetCopySourceArn(CopySourceArnT&& value) { m_copySourceArnHasBeenSet = true; m_copySourceArn = std::forward<CopySourceArnT>(value); }
68 template<typename CopySourceArnT = Aws::String>
69 DataSourceCredentials& WithCopySourceArn(CopySourceArnT&& value) { SetCopySourceArn(std::forward<CopySourceArnT>(value)); return *this;}
71
73
77 inline const Aws::String& GetSecretArn() const { return m_secretArn; }
78 inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; }
79 template<typename SecretArnT = Aws::String>
80 void SetSecretArn(SecretArnT&& value) { m_secretArnHasBeenSet = true; m_secretArn = std::forward<SecretArnT>(value); }
81 template<typename SecretArnT = Aws::String>
82 DataSourceCredentials& WithSecretArn(SecretArnT&& value) { SetSecretArn(std::forward<SecretArnT>(value)); return *this;}
84 private:
85
86 CredentialPair m_credentialPair;
87 bool m_credentialPairHasBeenSet = false;
88
89 Aws::String m_copySourceArn;
90 bool m_copySourceArnHasBeenSet = false;
91
92 Aws::String m_secretArn;
93 bool m_secretArnHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace QuickSight
98} // namespace Aws
AWS_QUICKSIGHT_API DataSourceCredentials(Aws::Utils::Json::JsonView jsonValue)
DataSourceCredentials & WithCopySourceArn(CopySourceArnT &&value)
AWS_QUICKSIGHT_API DataSourceCredentials()=default
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
DataSourceCredentials & WithCredentialPair(CredentialPairT &&value)
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