AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
RedshiftCredentials.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/datazone/DataZone_EXPORTS.h>
9#include <aws/datazone/model/UsernamePassword.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DataZone {
21namespace Model {
22
29 public:
30 AWS_DATAZONE_API RedshiftCredentials() = default;
33 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetSecretArn() const { return m_secretArn; }
40 inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; }
41 template <typename SecretArnT = Aws::String>
42 void SetSecretArn(SecretArnT&& value) {
43 m_secretArnHasBeenSet = true;
44 m_secretArn = std::forward<SecretArnT>(value);
45 }
46 template <typename SecretArnT = Aws::String>
47 RedshiftCredentials& WithSecretArn(SecretArnT&& value) {
48 SetSecretArn(std::forward<SecretArnT>(value));
49 return *this;
50 }
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) {
62 m_usernamePasswordHasBeenSet = true;
63 m_usernamePassword = std::forward<UsernamePasswordT>(value);
64 }
65 template <typename UsernamePasswordT = UsernamePassword>
66 RedshiftCredentials& WithUsernamePassword(UsernamePasswordT&& value) {
67 SetUsernamePassword(std::forward<UsernamePasswordT>(value));
68 return *this;
69 }
71 private:
72 Aws::String m_secretArn;
73
74 UsernamePassword m_usernamePassword;
75 bool m_secretArnHasBeenSet = false;
76 bool m_usernamePasswordHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace DataZone
81} // 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