AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
RedshiftCredentials.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/datazone/model/UsernamePassword.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 DataZone
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_DATAZONE_API RedshiftCredentials() = default;
38 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetSecretArn() const { return m_secretArn; }
46 inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; }
47 template<typename SecretArnT = Aws::String>
48 void SetSecretArn(SecretArnT&& value) { m_secretArnHasBeenSet = true; m_secretArn = std::forward<SecretArnT>(value); }
49 template<typename SecretArnT = Aws::String>
50 RedshiftCredentials& WithSecretArn(SecretArnT&& value) { SetSecretArn(std::forward<SecretArnT>(value)); return *this;}
52
54
58 inline const UsernamePassword& GetUsernamePassword() const { return m_usernamePassword; }
59 inline bool UsernamePasswordHasBeenSet() const { return m_usernamePasswordHasBeenSet; }
60 template<typename UsernamePasswordT = UsernamePassword>
61 void SetUsernamePassword(UsernamePasswordT&& value) { m_usernamePasswordHasBeenSet = true; m_usernamePassword = std::forward<UsernamePasswordT>(value); }
62 template<typename UsernamePasswordT = UsernamePassword>
63 RedshiftCredentials& WithUsernamePassword(UsernamePasswordT&& value) { SetUsernamePassword(std::forward<UsernamePasswordT>(value)); return *this;}
65 private:
66
67 Aws::String m_secretArn;
68 bool m_secretArnHasBeenSet = false;
69
70 UsernamePassword m_usernamePassword;
71 bool m_usernamePasswordHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace DataZone
76} // namespace Aws
AWS_DATAZONE_API RedshiftCredentials()=default
AWS_DATAZONE_API RedshiftCredentials & operator=(Aws::Utils::Json::JsonView jsonValue)
const UsernamePassword & GetUsernamePassword() const
AWS_DATAZONE_API RedshiftCredentials(Aws::Utils::Json::JsonView jsonValue)
void SetUsernamePassword(UsernamePasswordT &&value)
RedshiftCredentials & WithUsernamePassword(UsernamePasswordT &&value)
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
RedshiftCredentials & WithSecretArn(SecretArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue