AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
RdsDbUser.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
28class RdsDbUser {
29 public:
30 AWS_GUARDDUTY_API RdsDbUser() = default;
31 AWS_GUARDDUTY_API RdsDbUser(Aws::Utils::Json::JsonView jsonValue);
32 AWS_GUARDDUTY_API RdsDbUser& operator=(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 RdsDbUser& 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 RdsDbUser& WithApplication(ApplicationT&& value) {
66 SetApplication(std::forward<ApplicationT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetDatabase() const { return m_database; }
76 inline bool DatabaseHasBeenSet() const { return m_databaseHasBeenSet; }
77 template <typename DatabaseT = Aws::String>
78 void SetDatabase(DatabaseT&& value) {
79 m_databaseHasBeenSet = true;
80 m_database = std::forward<DatabaseT>(value);
81 }
82 template <typename DatabaseT = Aws::String>
83 RdsDbUser& WithDatabase(DatabaseT&& value) {
84 SetDatabase(std::forward<DatabaseT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetAuthMethod() const { return m_authMethod; }
94 inline bool AuthMethodHasBeenSet() const { return m_authMethodHasBeenSet; }
95 template <typename AuthMethodT = Aws::String>
96 void SetAuthMethod(AuthMethodT&& value) {
97 m_authMethodHasBeenSet = true;
98 m_authMethod = std::forward<AuthMethodT>(value);
99 }
100 template <typename AuthMethodT = Aws::String>
101 RdsDbUser& WithAuthMethod(AuthMethodT&& value) {
102 SetAuthMethod(std::forward<AuthMethodT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetSsl() const { return m_ssl; }
112 inline bool SslHasBeenSet() const { return m_sslHasBeenSet; }
113 template <typename SslT = Aws::String>
114 void SetSsl(SslT&& value) {
115 m_sslHasBeenSet = true;
116 m_ssl = std::forward<SslT>(value);
117 }
118 template <typename SslT = Aws::String>
119 RdsDbUser& WithSsl(SslT&& value) {
120 SetSsl(std::forward<SslT>(value));
121 return *this;
122 }
124 private:
125 Aws::String m_user;
126
127 Aws::String m_application;
128
129 Aws::String m_database;
130
131 Aws::String m_authMethod;
132
133 Aws::String m_ssl;
134 bool m_userHasBeenSet = false;
135 bool m_applicationHasBeenSet = false;
136 bool m_databaseHasBeenSet = false;
137 bool m_authMethodHasBeenSet = false;
138 bool m_sslHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace GuardDuty
143} // namespace Aws
const Aws::String & GetApplication() const
Definition RdsDbUser.h:57
void SetUser(UserT &&value)
Definition RdsDbUser.h:42
const Aws::String & GetDatabase() const
Definition RdsDbUser.h:75
void SetDatabase(DatabaseT &&value)
Definition RdsDbUser.h:78
AWS_GUARDDUTY_API RdsDbUser & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAuthMethod(AuthMethodT &&value)
Definition RdsDbUser.h:96
RdsDbUser & WithUser(UserT &&value)
Definition RdsDbUser.h:47
RdsDbUser & WithAuthMethod(AuthMethodT &&value)
Definition RdsDbUser.h:101
RdsDbUser & WithDatabase(DatabaseT &&value)
Definition RdsDbUser.h:83
AWS_GUARDDUTY_API RdsDbUser(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAuthMethod() const
Definition RdsDbUser.h:93
AWS_GUARDDUTY_API RdsDbUser()=default
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetSsl() const
Definition RdsDbUser.h:111
RdsDbUser & WithApplication(ApplicationT &&value)
Definition RdsDbUser.h:65
void SetApplication(ApplicationT &&value)
Definition RdsDbUser.h:60
const Aws::String & GetUser() const
Definition RdsDbUser.h:39
RdsDbUser & WithSsl(SslT &&value)
Definition RdsDbUser.h:119
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue