AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
GetCredentialsResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/redshift-serverless/RedshiftServerless_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace RedshiftServerless {
23namespace Model {
25 public:
26 AWS_REDSHIFTSERVERLESS_API GetCredentialsResult() = default;
29
31
35 inline const Aws::String& GetDbPassword() const { return m_dbPassword; }
36 template <typename DbPasswordT = Aws::String>
37 void SetDbPassword(DbPasswordT&& value) {
38 m_dbPasswordHasBeenSet = true;
39 m_dbPassword = std::forward<DbPasswordT>(value);
40 }
41 template <typename DbPasswordT = Aws::String>
42 GetCredentialsResult& WithDbPassword(DbPasswordT&& value) {
43 SetDbPassword(std::forward<DbPasswordT>(value));
44 return *this;
45 }
47
49
56 inline const Aws::String& GetDbUser() const { return m_dbUser; }
57 template <typename DbUserT = Aws::String>
58 void SetDbUser(DbUserT&& value) {
59 m_dbUserHasBeenSet = true;
60 m_dbUser = std::forward<DbUserT>(value);
61 }
62 template <typename DbUserT = Aws::String>
63 GetCredentialsResult& WithDbUser(DbUserT&& value) {
64 SetDbUser(std::forward<DbUserT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::Utils::DateTime& GetExpiration() const { return m_expiration; }
74 template <typename ExpirationT = Aws::Utils::DateTime>
75 void SetExpiration(ExpirationT&& value) {
76 m_expirationHasBeenSet = true;
77 m_expiration = std::forward<ExpirationT>(value);
78 }
79 template <typename ExpirationT = Aws::Utils::DateTime>
80 GetCredentialsResult& WithExpiration(ExpirationT&& value) {
81 SetExpiration(std::forward<ExpirationT>(value));
82 return *this;
83 }
85
87
91 inline const Aws::Utils::DateTime& GetNextRefreshTime() const { return m_nextRefreshTime; }
92 template <typename NextRefreshTimeT = Aws::Utils::DateTime>
93 void SetNextRefreshTime(NextRefreshTimeT&& value) {
94 m_nextRefreshTimeHasBeenSet = true;
95 m_nextRefreshTime = std::forward<NextRefreshTimeT>(value);
96 }
97 template <typename NextRefreshTimeT = Aws::Utils::DateTime>
98 GetCredentialsResult& WithNextRefreshTime(NextRefreshTimeT&& value) {
99 SetNextRefreshTime(std::forward<NextRefreshTimeT>(value));
100 return *this;
101 }
103
105
106 inline const Aws::String& GetRequestId() const { return m_requestId; }
107 template <typename RequestIdT = Aws::String>
108 void SetRequestId(RequestIdT&& value) {
109 m_requestIdHasBeenSet = true;
110 m_requestId = std::forward<RequestIdT>(value);
111 }
112 template <typename RequestIdT = Aws::String>
113 GetCredentialsResult& WithRequestId(RequestIdT&& value) {
114 SetRequestId(std::forward<RequestIdT>(value));
115 return *this;
116 }
118 private:
119 Aws::String m_dbPassword;
120
121 Aws::String m_dbUser;
122
123 Aws::Utils::DateTime m_expiration{};
124
125 Aws::Utils::DateTime m_nextRefreshTime{};
126
127 Aws::String m_requestId;
128 bool m_dbPasswordHasBeenSet = false;
129 bool m_dbUserHasBeenSet = false;
130 bool m_expirationHasBeenSet = false;
131 bool m_nextRefreshTimeHasBeenSet = false;
132 bool m_requestIdHasBeenSet = false;
133};
134
135} // namespace Model
136} // namespace RedshiftServerless
137} // namespace Aws
GetCredentialsResult & WithDbUser(DbUserT &&value)
GetCredentialsResult & WithNextRefreshTime(NextRefreshTimeT &&value)
AWS_REDSHIFTSERVERLESS_API GetCredentialsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetNextRefreshTime() const
GetCredentialsResult & WithExpiration(ExpirationT &&value)
GetCredentialsResult & WithDbPassword(DbPasswordT &&value)
AWS_REDSHIFTSERVERLESS_API GetCredentialsResult()=default
AWS_REDSHIFTSERVERLESS_API GetCredentialsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetCredentialsResult & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue