AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCredentialPair(const CredentialPair& value) { m_credentialPairHasBeenSet = true; m_credentialPair = value; }
52 inline void SetCredentialPair(CredentialPair&& value) { m_credentialPairHasBeenSet = true; m_credentialPair = std::move(value); }
53 inline DataSourceCredentials& WithCredentialPair(const CredentialPair& value) { SetCredentialPair(value); return *this;}
54 inline DataSourceCredentials& WithCredentialPair(CredentialPair&& value) { SetCredentialPair(std::move(value)); return *this;}
56
58
64 inline const Aws::String& GetCopySourceArn() const{ return m_copySourceArn; }
65 inline bool CopySourceArnHasBeenSet() const { return m_copySourceArnHasBeenSet; }
66 inline void SetCopySourceArn(const Aws::String& value) { m_copySourceArnHasBeenSet = true; m_copySourceArn = value; }
67 inline void SetCopySourceArn(Aws::String&& value) { m_copySourceArnHasBeenSet = true; m_copySourceArn = std::move(value); }
68 inline void SetCopySourceArn(const char* value) { m_copySourceArnHasBeenSet = true; m_copySourceArn.assign(value); }
69 inline DataSourceCredentials& WithCopySourceArn(const Aws::String& value) { SetCopySourceArn(value); return *this;}
70 inline DataSourceCredentials& WithCopySourceArn(Aws::String&& value) { SetCopySourceArn(std::move(value)); return *this;}
71 inline DataSourceCredentials& WithCopySourceArn(const char* value) { SetCopySourceArn(value); return *this;}
73
75
79 inline const Aws::String& GetSecretArn() const{ return m_secretArn; }
80 inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; }
81 inline void SetSecretArn(const Aws::String& value) { m_secretArnHasBeenSet = true; m_secretArn = value; }
82 inline void SetSecretArn(Aws::String&& value) { m_secretArnHasBeenSet = true; m_secretArn = std::move(value); }
83 inline void SetSecretArn(const char* value) { m_secretArnHasBeenSet = true; m_secretArn.assign(value); }
84 inline DataSourceCredentials& WithSecretArn(const Aws::String& value) { SetSecretArn(value); return *this;}
85 inline DataSourceCredentials& WithSecretArn(Aws::String&& value) { SetSecretArn(std::move(value)); return *this;}
86 inline DataSourceCredentials& WithSecretArn(const char* value) { SetSecretArn(value); return *this;}
88 private:
89
90 CredentialPair m_credentialPair;
91 bool m_credentialPairHasBeenSet = false;
92
93 Aws::String m_copySourceArn;
94 bool m_copySourceArnHasBeenSet = false;
95
96 Aws::String m_secretArn;
97 bool m_secretArnHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace QuickSight
102} // namespace Aws
AWS_QUICKSIGHT_API DataSourceCredentials(Aws::Utils::Json::JsonView jsonValue)
DataSourceCredentials & WithCopySourceArn(const char *value)
DataSourceCredentials & WithCredentialPair(const CredentialPair &value)
DataSourceCredentials & WithSecretArn(Aws::String &&value)
DataSourceCredentials & WithSecretArn(const char *value)
DataSourceCredentials & WithCopySourceArn(const Aws::String &value)
DataSourceCredentials & WithCredentialPair(CredentialPair &&value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
DataSourceCredentials & WithSecretArn(const Aws::String &value)
DataSourceCredentials & WithCopySourceArn(Aws::String &&value)
void SetCredentialPair(const CredentialPair &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