AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
RdsDbUserDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/guardduty/GuardDuty_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GuardDuty {
20namespace Model {
21
29 public:
30 AWS_GUARDDUTY_API RdsDbUserDetails() = default;
31 AWS_GUARDDUTY_API RdsDbUserDetails(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetUser() const { return m_user; }
40 inline bool UserHasBeenSet() const { return m_userHasBeenSet; }
41 template <typename UserT = Aws::String>
42 void SetUser(UserT&& value) {
43 m_userHasBeenSet = true;
44 m_user = std::forward<UserT>(value);
45 }
46 template <typename UserT = Aws::String>
47 RdsDbUserDetails& WithUser(UserT&& value) {
48 SetUser(std::forward<UserT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetApplication() const { return m_application; }
58 inline bool ApplicationHasBeenSet() const { return m_applicationHasBeenSet; }
59 template <typename ApplicationT = Aws::String>
60 void SetApplication(ApplicationT&& value) {
61 m_applicationHasBeenSet = true;
62 m_application = std::forward<ApplicationT>(value);
63 }
64 template <typename ApplicationT = Aws::String>
65 RdsDbUserDetails& WithApplication(ApplicationT&& value) {
66 SetApplication(std::forward<ApplicationT>(value));
67 return *this;
68 }
70
72
76 inline const Aws::String& GetDatabase() const { return m_database; }
77 inline bool DatabaseHasBeenSet() const { return m_databaseHasBeenSet; }
78 template <typename DatabaseT = Aws::String>
79 void SetDatabase(DatabaseT&& value) {
80 m_databaseHasBeenSet = true;
81 m_database = std::forward<DatabaseT>(value);
82 }
83 template <typename DatabaseT = Aws::String>
84 RdsDbUserDetails& WithDatabase(DatabaseT&& value) {
85 SetDatabase(std::forward<DatabaseT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetSsl() const { return m_ssl; }
95 inline bool SslHasBeenSet() const { return m_sslHasBeenSet; }
96 template <typename SslT = Aws::String>
97 void SetSsl(SslT&& value) {
98 m_sslHasBeenSet = true;
99 m_ssl = std::forward<SslT>(value);
100 }
101 template <typename SslT = Aws::String>
102 RdsDbUserDetails& WithSsl(SslT&& value) {
103 SetSsl(std::forward<SslT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::String& GetAuthMethod() const { return m_authMethod; }
113 inline bool AuthMethodHasBeenSet() const { return m_authMethodHasBeenSet; }
114 template <typename AuthMethodT = Aws::String>
115 void SetAuthMethod(AuthMethodT&& value) {
116 m_authMethodHasBeenSet = true;
117 m_authMethod = std::forward<AuthMethodT>(value);
118 }
119 template <typename AuthMethodT = Aws::String>
120 RdsDbUserDetails& WithAuthMethod(AuthMethodT&& value) {
121 SetAuthMethod(std::forward<AuthMethodT>(value));
122 return *this;
123 }
125 private:
126 Aws::String m_user;
127
128 Aws::String m_application;
129
130 Aws::String m_database;
131
132 Aws::String m_ssl;
133
134 Aws::String m_authMethod;
135 bool m_userHasBeenSet = false;
136 bool m_applicationHasBeenSet = false;
137 bool m_databaseHasBeenSet = false;
138 bool m_sslHasBeenSet = false;
139 bool m_authMethodHasBeenSet = false;
140};
141
142} // namespace Model
143} // namespace GuardDuty
144} // namespace Aws
RdsDbUserDetails & WithUser(UserT &&value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GUARDDUTY_API RdsDbUserDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
RdsDbUserDetails & WithApplication(ApplicationT &&value)
const Aws::String & GetUser() const
void SetApplication(ApplicationT &&value)
const Aws::String & GetDatabase() const
RdsDbUserDetails & WithAuthMethod(AuthMethodT &&value)
RdsDbUserDetails & WithSsl(SslT &&value)
AWS_GUARDDUTY_API RdsDbUserDetails(Aws::Utils::Json::JsonView jsonValue)
RdsDbUserDetails & WithDatabase(DatabaseT &&value)
AWS_GUARDDUTY_API RdsDbUserDetails()=default
const Aws::String & GetAuthMethod() const
const Aws::String & GetApplication() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue