AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
RedshiftProvisionedAuthConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/bedrock-agent/model/RedshiftProvisionedAuthType.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 BedrockAgent
23{
24namespace Model
25{
26
37 {
38 public:
39 AWS_BEDROCKAGENT_API RedshiftProvisionedAuthConfiguration() = default;
42 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Aws::String& GetDatabaseUser() const { return m_databaseUser; }
51 inline bool DatabaseUserHasBeenSet() const { return m_databaseUserHasBeenSet; }
52 template<typename DatabaseUserT = Aws::String>
53 void SetDatabaseUser(DatabaseUserT&& value) { m_databaseUserHasBeenSet = true; m_databaseUser = std::forward<DatabaseUserT>(value); }
54 template<typename DatabaseUserT = Aws::String>
55 RedshiftProvisionedAuthConfiguration& WithDatabaseUser(DatabaseUserT&& value) { SetDatabaseUser(std::forward<DatabaseUserT>(value)); return *this;}
57
59
62 inline RedshiftProvisionedAuthType GetType() const { return m_type; }
63 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
64 inline void SetType(RedshiftProvisionedAuthType value) { m_typeHasBeenSet = true; m_type = value; }
67
69
72 inline const Aws::String& GetUsernamePasswordSecretArn() const { return m_usernamePasswordSecretArn; }
73 inline bool UsernamePasswordSecretArnHasBeenSet() const { return m_usernamePasswordSecretArnHasBeenSet; }
74 template<typename UsernamePasswordSecretArnT = Aws::String>
75 void SetUsernamePasswordSecretArn(UsernamePasswordSecretArnT&& value) { m_usernamePasswordSecretArnHasBeenSet = true; m_usernamePasswordSecretArn = std::forward<UsernamePasswordSecretArnT>(value); }
76 template<typename UsernamePasswordSecretArnT = Aws::String>
77 RedshiftProvisionedAuthConfiguration& WithUsernamePasswordSecretArn(UsernamePasswordSecretArnT&& value) { SetUsernamePasswordSecretArn(std::forward<UsernamePasswordSecretArnT>(value)); return *this;}
79 private:
80
81 Aws::String m_databaseUser;
82 bool m_databaseUserHasBeenSet = false;
83
85 bool m_typeHasBeenSet = false;
86
87 Aws::String m_usernamePasswordSecretArn;
88 bool m_usernamePasswordSecretArnHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace BedrockAgent
93} // 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::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue