AWS SDK for C++  1.9.104
AWS SDK for C++
GetClusterCredentialsResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Xml
21 {
22  class XmlDocument;
23 } // namespace Xml
24 } // namespace Utils
25 namespace Redshift
26 {
27 namespace Model
28 {
36  {
37  public:
41 
42 
52  inline const Aws::String& GetDbUser() const{ return m_dbUser; }
53 
63  inline void SetDbUser(const Aws::String& value) { m_dbUser = value; }
64 
74  inline void SetDbUser(Aws::String&& value) { m_dbUser = std::move(value); }
75 
85  inline void SetDbUser(const char* value) { m_dbUser.assign(value); }
86 
96  inline GetClusterCredentialsResult& WithDbUser(const Aws::String& value) { SetDbUser(value); return *this;}
97 
107  inline GetClusterCredentialsResult& WithDbUser(Aws::String&& value) { SetDbUser(std::move(value)); return *this;}
108 
118  inline GetClusterCredentialsResult& WithDbUser(const char* value) { SetDbUser(value); return *this;}
119 
120 
125  inline const Aws::String& GetDbPassword() const{ return m_dbPassword; }
126 
131  inline void SetDbPassword(const Aws::String& value) { m_dbPassword = value; }
132 
137  inline void SetDbPassword(Aws::String&& value) { m_dbPassword = std::move(value); }
138 
143  inline void SetDbPassword(const char* value) { m_dbPassword.assign(value); }
144 
149  inline GetClusterCredentialsResult& WithDbPassword(const Aws::String& value) { SetDbPassword(value); return *this;}
150 
155  inline GetClusterCredentialsResult& WithDbPassword(Aws::String&& value) { SetDbPassword(std::move(value)); return *this;}
156 
161  inline GetClusterCredentialsResult& WithDbPassword(const char* value) { SetDbPassword(value); return *this;}
162 
163 
167  inline const Aws::Utils::DateTime& GetExpiration() const{ return m_expiration; }
168 
172  inline void SetExpiration(const Aws::Utils::DateTime& value) { m_expiration = value; }
173 
177  inline void SetExpiration(Aws::Utils::DateTime&& value) { m_expiration = std::move(value); }
178 
182  inline GetClusterCredentialsResult& WithExpiration(const Aws::Utils::DateTime& value) { SetExpiration(value); return *this;}
183 
187  inline GetClusterCredentialsResult& WithExpiration(Aws::Utils::DateTime&& value) { SetExpiration(std::move(value)); return *this;}
188 
189 
190 
191  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
192 
193 
194  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
195 
196 
197  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
198 
199 
200  inline GetClusterCredentialsResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
201 
202 
203  inline GetClusterCredentialsResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
204 
205  private:
206 
207  Aws::String m_dbUser;
208 
209  Aws::String m_dbPassword;
210 
211  Aws::Utils::DateTime m_expiration;
212 
213  ResponseMetadata m_responseMetadata;
214  };
215 
216 } // namespace Model
217 } // namespace Redshift
218 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Redshift::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
DateTime.h
Aws::Redshift::Model::GetClusterCredentialsResult::WithDbPassword
GetClusterCredentialsResult & WithDbPassword(Aws::String &&value)
Definition: GetClusterCredentialsResult.h:155
Aws::Redshift::Model::GetClusterCredentialsResult::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: GetClusterCredentialsResult.h:197
Aws::Redshift::Model::GetClusterCredentialsResult
Definition: GetClusterCredentialsResult.h:36
Aws::Redshift::Model::GetClusterCredentialsResult::SetDbUser
void SetDbUser(Aws::String &&value)
Definition: GetClusterCredentialsResult.h:74
Aws::Redshift::Model::GetClusterCredentialsResult::SetDbPassword
void SetDbPassword(const char *value)
Definition: GetClusterCredentialsResult.h:143
Aws::Redshift::Model::GetClusterCredentialsResult::WithResponseMetadata
GetClusterCredentialsResult & WithResponseMetadata(ResponseMetadata &&value)
Definition: GetClusterCredentialsResult.h:203
Aws::Redshift::Model::GetClusterCredentialsResult::GetExpiration
const Aws::Utils::DateTime & GetExpiration() const
Definition: GetClusterCredentialsResult.h:167
Aws::Redshift::Model::GetClusterCredentialsResult::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: GetClusterCredentialsResult.h:194
Aws::Redshift::Model::GetClusterCredentialsResult::WithExpiration
GetClusterCredentialsResult & WithExpiration(const Aws::Utils::DateTime &value)
Definition: GetClusterCredentialsResult.h:182
Aws::Redshift::Model::GetClusterCredentialsResult::WithResponseMetadata
GetClusterCredentialsResult & WithResponseMetadata(const ResponseMetadata &value)
Definition: GetClusterCredentialsResult.h:200
Aws::Redshift::Model::GetClusterCredentialsResult::WithDbUser
GetClusterCredentialsResult & WithDbUser(const char *value)
Definition: GetClusterCredentialsResult.h:118
Aws::Redshift::Model::GetClusterCredentialsResult::SetDbPassword
void SetDbPassword(const Aws::String &value)
Definition: GetClusterCredentialsResult.h:131
Aws::Redshift::Model::GetClusterCredentialsResult::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: GetClusterCredentialsResult.h:191
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::GetClusterCredentialsResult::GetDbUser
const Aws::String & GetDbUser() const
Definition: GetClusterCredentialsResult.h:52
AWSString.h
Aws::Redshift::Model::GetClusterCredentialsResult::WithDbPassword
GetClusterCredentialsResult & WithDbPassword(const char *value)
Definition: GetClusterCredentialsResult.h:161
Aws::Redshift::Model::GetClusterCredentialsResult::WithDbPassword
GetClusterCredentialsResult & WithDbPassword(const Aws::String &value)
Definition: GetClusterCredentialsResult.h:149
Aws::Redshift::Model::GetClusterCredentialsResult::SetDbUser
void SetDbUser(const char *value)
Definition: GetClusterCredentialsResult.h:85
Aws::Redshift::Model::GetClusterCredentialsResult::GetClusterCredentialsResult
GetClusterCredentialsResult()
Aws::Redshift::Model::GetClusterCredentialsResult::WithDbUser
GetClusterCredentialsResult & WithDbUser(Aws::String &&value)
Definition: GetClusterCredentialsResult.h:107
Aws::Redshift::Model::GetClusterCredentialsResult::GetClusterCredentialsResult
GetClusterCredentialsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::Redshift::Model::GetClusterCredentialsResult::GetDbPassword
const Aws::String & GetDbPassword() const
Definition: GetClusterCredentialsResult.h:125
Aws
Definition: AccessManagementClient.h:15
Redshift_EXPORTS.h
Aws::Redshift::Model::GetClusterCredentialsResult::WithExpiration
GetClusterCredentialsResult & WithExpiration(Aws::Utils::DateTime &&value)
Definition: GetClusterCredentialsResult.h:187
Aws::Redshift::Model::GetClusterCredentialsResult::SetDbPassword
void SetDbPassword(Aws::String &&value)
Definition: GetClusterCredentialsResult.h:137
Aws::Redshift::Model::GetClusterCredentialsResult::SetExpiration
void SetExpiration(const Aws::Utils::DateTime &value)
Definition: GetClusterCredentialsResult.h:172
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ResponseMetadata.h
Aws::Redshift::Model::GetClusterCredentialsResult::SetDbUser
void SetDbUser(const Aws::String &value)
Definition: GetClusterCredentialsResult.h:63
Aws::Redshift::Model::GetClusterCredentialsResult::SetExpiration
void SetExpiration(Aws::Utils::DateTime &&value)
Definition: GetClusterCredentialsResult.h:177
Aws::Redshift::Model::GetClusterCredentialsResult::operator=
GetClusterCredentialsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::Redshift::Model::GetClusterCredentialsResult::WithDbUser
GetClusterCredentialsResult & WithDbUser(const Aws::String &value)
Definition: GetClusterCredentialsResult.h:96