AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetCredentialsResult.h
1
6#pragma once
7#include <aws/redshift-serverless/RedshiftServerless_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14template<typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace RedshiftServerless
25{
26namespace Model
27{
29 {
30 public:
31 AWS_REDSHIFTSERVERLESS_API GetCredentialsResult();
34
35
37
41 inline const Aws::String& GetDbPassword() const{ return m_dbPassword; }
42 inline void SetDbPassword(const Aws::String& value) { m_dbPassword = value; }
43 inline void SetDbPassword(Aws::String&& value) { m_dbPassword = std::move(value); }
44 inline void SetDbPassword(const char* value) { m_dbPassword.assign(value); }
45 inline GetCredentialsResult& WithDbPassword(const Aws::String& value) { SetDbPassword(value); return *this;}
46 inline GetCredentialsResult& WithDbPassword(Aws::String&& value) { SetDbPassword(std::move(value)); return *this;}
47 inline GetCredentialsResult& WithDbPassword(const char* value) { SetDbPassword(value); return *this;}
49
51
58 inline const Aws::String& GetDbUser() const{ return m_dbUser; }
59 inline void SetDbUser(const Aws::String& value) { m_dbUser = value; }
60 inline void SetDbUser(Aws::String&& value) { m_dbUser = std::move(value); }
61 inline void SetDbUser(const char* value) { m_dbUser.assign(value); }
62 inline GetCredentialsResult& WithDbUser(const Aws::String& value) { SetDbUser(value); return *this;}
63 inline GetCredentialsResult& WithDbUser(Aws::String&& value) { SetDbUser(std::move(value)); return *this;}
64 inline GetCredentialsResult& WithDbUser(const char* value) { SetDbUser(value); return *this;}
66
68
71 inline const Aws::Utils::DateTime& GetExpiration() const{ return m_expiration; }
72 inline void SetExpiration(const Aws::Utils::DateTime& value) { m_expiration = value; }
73 inline void SetExpiration(Aws::Utils::DateTime&& value) { m_expiration = std::move(value); }
74 inline GetCredentialsResult& WithExpiration(const Aws::Utils::DateTime& value) { SetExpiration(value); return *this;}
75 inline GetCredentialsResult& WithExpiration(Aws::Utils::DateTime&& value) { SetExpiration(std::move(value)); return *this;}
77
79
83 inline const Aws::Utils::DateTime& GetNextRefreshTime() const{ return m_nextRefreshTime; }
84 inline void SetNextRefreshTime(const Aws::Utils::DateTime& value) { m_nextRefreshTime = value; }
85 inline void SetNextRefreshTime(Aws::Utils::DateTime&& value) { m_nextRefreshTime = std::move(value); }
87 inline GetCredentialsResult& WithNextRefreshTime(Aws::Utils::DateTime&& value) { SetNextRefreshTime(std::move(value)); return *this;}
89
91
92 inline const Aws::String& GetRequestId() const{ return m_requestId; }
93 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
94 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
95 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
96 inline GetCredentialsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
97 inline GetCredentialsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
98 inline GetCredentialsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
100 private:
101
102 Aws::String m_dbPassword;
103
104 Aws::String m_dbUser;
105
106 Aws::Utils::DateTime m_expiration;
107
108 Aws::Utils::DateTime m_nextRefreshTime;
109
110 Aws::String m_requestId;
111 };
112
113} // namespace Model
114} // namespace RedshiftServerless
115} // namespace Aws
AWS_REDSHIFTSERVERLESS_API GetCredentialsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetNextRefreshTime() const
GetCredentialsResult & WithDbUser(Aws::String &&value)
GetCredentialsResult & WithExpiration(Aws::Utils::DateTime &&value)
GetCredentialsResult & WithExpiration(const Aws::Utils::DateTime &value)
void SetNextRefreshTime(const Aws::Utils::DateTime &value)
GetCredentialsResult & WithDbPassword(const char *value)
GetCredentialsResult & WithDbPassword(Aws::String &&value)
GetCredentialsResult & WithDbPassword(const Aws::String &value)
GetCredentialsResult & WithDbUser(const Aws::String &value)
void SetExpiration(const Aws::Utils::DateTime &value)
AWS_REDSHIFTSERVERLESS_API GetCredentialsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetCredentialsResult & WithDbUser(const char *value)
GetCredentialsResult & WithRequestId(Aws::String &&value)
GetCredentialsResult & WithNextRefreshTime(const Aws::Utils::DateTime &value)
GetCredentialsResult & WithRequestId(const Aws::String &value)
GetCredentialsResult & WithNextRefreshTime(Aws::Utils::DateTime &&value)
GetCredentialsResult & WithRequestId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue