AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
RedshiftProvisionedAuthConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/RedshiftProvisionedAuthType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BedrockAgent {
21namespace Model {
22
33 public:
34 AWS_BEDROCKAGENT_API RedshiftProvisionedAuthConfiguration() = default;
37 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline RedshiftProvisionedAuthType GetType() const { return m_type; }
44 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
46 m_typeHasBeenSet = true;
47 m_type = value;
48 }
50 SetType(value);
51 return *this;
52 }
54
56
60 inline const Aws::String& GetDatabaseUser() const { return m_databaseUser; }
61 inline bool DatabaseUserHasBeenSet() const { return m_databaseUserHasBeenSet; }
62 template <typename DatabaseUserT = Aws::String>
64 m_databaseUserHasBeenSet = true;
65 m_databaseUser = std::forward<DatabaseUserT>(value);
66 }
67 template <typename DatabaseUserT = Aws::String>
69 SetDatabaseUser(std::forward<DatabaseUserT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetUsernamePasswordSecretArn() const { return m_usernamePasswordSecretArn; }
79 inline bool UsernamePasswordSecretArnHasBeenSet() const { return m_usernamePasswordSecretArnHasBeenSet; }
80 template <typename UsernamePasswordSecretArnT = Aws::String>
82 m_usernamePasswordSecretArnHasBeenSet = true;
83 m_usernamePasswordSecretArn = std::forward<UsernamePasswordSecretArnT>(value);
84 }
85 template <typename UsernamePasswordSecretArnT = Aws::String>
87 SetUsernamePasswordSecretArn(std::forward<UsernamePasswordSecretArnT>(value));
88 return *this;
89 }
91 private:
93
94 Aws::String m_databaseUser;
95
96 Aws::String m_usernamePasswordSecretArn;
97 bool m_typeHasBeenSet = false;
98 bool m_databaseUserHasBeenSet = false;
99 bool m_usernamePasswordSecretArnHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace BedrockAgent
104} // namespace Aws
RedshiftProvisionedAuthConfiguration & WithUsernamePasswordSecretArn(UsernamePasswordSecretArnT &&value)
RedshiftProvisionedAuthConfiguration & WithDatabaseUser(DatabaseUserT &&value)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENT_API RedshiftProvisionedAuthConfiguration(Aws::Utils::Json::JsonView jsonValue)
RedshiftProvisionedAuthConfiguration & WithType(RedshiftProvisionedAuthType value)
AWS_BEDROCKAGENT_API RedshiftProvisionedAuthConfiguration()=default
AWS_BEDROCKAGENT_API RedshiftProvisionedAuthConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue