AWS SDK for C++  1.9.159
AWS SDK for C++
Credentials.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Connect
23 {
24 namespace Model
25 {
26 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetAccessToken() const{ return m_accessToken; }
45 
49  inline bool AccessTokenHasBeenSet() const { return m_accessTokenHasBeenSet; }
50 
54  inline void SetAccessToken(const Aws::String& value) { m_accessTokenHasBeenSet = true; m_accessToken = value; }
55 
59  inline void SetAccessToken(Aws::String&& value) { m_accessTokenHasBeenSet = true; m_accessToken = std::move(value); }
60 
64  inline void SetAccessToken(const char* value) { m_accessTokenHasBeenSet = true; m_accessToken.assign(value); }
65 
69  inline Credentials& WithAccessToken(const Aws::String& value) { SetAccessToken(value); return *this;}
70 
74  inline Credentials& WithAccessToken(Aws::String&& value) { SetAccessToken(std::move(value)); return *this;}
75 
79  inline Credentials& WithAccessToken(const char* value) { SetAccessToken(value); return *this;}
80 
81 
86  inline const Aws::Utils::DateTime& GetAccessTokenExpiration() const{ return m_accessTokenExpiration; }
87 
92  inline bool AccessTokenExpirationHasBeenSet() const { return m_accessTokenExpirationHasBeenSet; }
93 
98  inline void SetAccessTokenExpiration(const Aws::Utils::DateTime& value) { m_accessTokenExpirationHasBeenSet = true; m_accessTokenExpiration = value; }
99 
104  inline void SetAccessTokenExpiration(Aws::Utils::DateTime&& value) { m_accessTokenExpirationHasBeenSet = true; m_accessTokenExpiration = std::move(value); }
105 
110  inline Credentials& WithAccessTokenExpiration(const Aws::Utils::DateTime& value) { SetAccessTokenExpiration(value); return *this;}
111 
116  inline Credentials& WithAccessTokenExpiration(Aws::Utils::DateTime&& value) { SetAccessTokenExpiration(std::move(value)); return *this;}
117 
118 
123  inline const Aws::String& GetRefreshToken() const{ return m_refreshToken; }
124 
129  inline bool RefreshTokenHasBeenSet() const { return m_refreshTokenHasBeenSet; }
130 
135  inline void SetRefreshToken(const Aws::String& value) { m_refreshTokenHasBeenSet = true; m_refreshToken = value; }
136 
141  inline void SetRefreshToken(Aws::String&& value) { m_refreshTokenHasBeenSet = true; m_refreshToken = std::move(value); }
142 
147  inline void SetRefreshToken(const char* value) { m_refreshTokenHasBeenSet = true; m_refreshToken.assign(value); }
148 
153  inline Credentials& WithRefreshToken(const Aws::String& value) { SetRefreshToken(value); return *this;}
154 
159  inline Credentials& WithRefreshToken(Aws::String&& value) { SetRefreshToken(std::move(value)); return *this;}
160 
165  inline Credentials& WithRefreshToken(const char* value) { SetRefreshToken(value); return *this;}
166 
167 
171  inline const Aws::Utils::DateTime& GetRefreshTokenExpiration() const{ return m_refreshTokenExpiration; }
172 
176  inline bool RefreshTokenExpirationHasBeenSet() const { return m_refreshTokenExpirationHasBeenSet; }
177 
181  inline void SetRefreshTokenExpiration(const Aws::Utils::DateTime& value) { m_refreshTokenExpirationHasBeenSet = true; m_refreshTokenExpiration = value; }
182 
186  inline void SetRefreshTokenExpiration(Aws::Utils::DateTime&& value) { m_refreshTokenExpirationHasBeenSet = true; m_refreshTokenExpiration = std::move(value); }
187 
191  inline Credentials& WithRefreshTokenExpiration(const Aws::Utils::DateTime& value) { SetRefreshTokenExpiration(value); return *this;}
192 
196  inline Credentials& WithRefreshTokenExpiration(Aws::Utils::DateTime&& value) { SetRefreshTokenExpiration(std::move(value)); return *this;}
197 
198  private:
199 
200  Aws::String m_accessToken;
201  bool m_accessTokenHasBeenSet;
202 
203  Aws::Utils::DateTime m_accessTokenExpiration;
204  bool m_accessTokenExpirationHasBeenSet;
205 
206  Aws::String m_refreshToken;
207  bool m_refreshTokenHasBeenSet;
208 
209  Aws::Utils::DateTime m_refreshTokenExpiration;
210  bool m_refreshTokenExpirationHasBeenSet;
211  };
212 
213 } // namespace Model
214 } // namespace Connect
215 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Connect::Model::Credentials::WithAccessToken
Credentials & WithAccessToken(Aws::String &&value)
Definition: Credentials.h:74
Aws::Connect::Model::Credentials::SetRefreshToken
void SetRefreshToken(const char *value)
Definition: Credentials.h:147
Aws::Connect::Model::Credentials::GetRefreshTokenExpiration
const Aws::Utils::DateTime & GetRefreshTokenExpiration() const
Definition: Credentials.h:171
Aws::Connect::Model::Credentials::operator=
Credentials & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Connect::Model::Credentials::WithAccessTokenExpiration
Credentials & WithAccessTokenExpiration(Aws::Utils::DateTime &&value)
Definition: Credentials.h:116
Aws::Connect::Model::Credentials::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Connect::Model::Credentials::WithAccessToken
Credentials & WithAccessToken(const char *value)
Definition: Credentials.h:79
Aws::Connect::Model::Credentials::RefreshTokenHasBeenSet
bool RefreshTokenHasBeenSet() const
Definition: Credentials.h:129
Aws::Connect::Model::Credentials::AccessTokenHasBeenSet
bool AccessTokenHasBeenSet() const
Definition: Credentials.h:49
Aws::Connect::Model::Credentials::SetAccessTokenExpiration
void SetAccessTokenExpiration(const Aws::Utils::DateTime &value)
Definition: Credentials.h:98
DateTime.h
Aws::Connect::Model::Credentials::WithAccessTokenExpiration
Credentials & WithAccessTokenExpiration(const Aws::Utils::DateTime &value)
Definition: Credentials.h:110
Aws::Connect::Model::Credentials::WithAccessToken
Credentials & WithAccessToken(const Aws::String &value)
Definition: Credentials.h:69
Aws::Connect::Model::Credentials::GetAccessTokenExpiration
const Aws::Utils::DateTime & GetAccessTokenExpiration() const
Definition: Credentials.h:86
Aws::Connect::Model::Credentials::SetAccessToken
void SetAccessToken(Aws::String &&value)
Definition: Credentials.h:59
Aws::Connect::Model::Credentials::SetAccessToken
void SetAccessToken(const char *value)
Definition: Credentials.h:64
Aws::Connect::Model::Credentials::Credentials
Credentials()
Aws::Connect::Model::Credentials::Credentials
Credentials(Aws::Utils::Json::JsonView jsonValue)
Aws::Connect::Model::Credentials::SetAccessTokenExpiration
void SetAccessTokenExpiration(Aws::Utils::DateTime &&value)
Definition: Credentials.h:104
Aws::Connect::Model::Credentials::SetRefreshTokenExpiration
void SetRefreshTokenExpiration(const Aws::Utils::DateTime &value)
Definition: Credentials.h:181
Aws::Connect::Model::Credentials::WithRefreshToken
Credentials & WithRefreshToken(const char *value)
Definition: Credentials.h:165
Aws::Connect::Model::Credentials
Definition: Credentials.h:33
Aws::Connect::Model::Credentials::WithRefreshTokenExpiration
Credentials & WithRefreshTokenExpiration(Aws::Utils::DateTime &&value)
Definition: Credentials.h:196
Aws::Connect::Model::Credentials::SetAccessToken
void SetAccessToken(const Aws::String &value)
Definition: Credentials.h:54
Aws::Connect::Model::Credentials::RefreshTokenExpirationHasBeenSet
bool RefreshTokenExpirationHasBeenSet() const
Definition: Credentials.h:176
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Connect::Model::Credentials::WithRefreshTokenExpiration
Credentials & WithRefreshTokenExpiration(const Aws::Utils::DateTime &value)
Definition: Credentials.h:191
Aws::Connect::Model::Credentials::GetRefreshToken
const Aws::String & GetRefreshToken() const
Definition: Credentials.h:123
Aws::Connect::Model::Credentials::WithRefreshToken
Credentials & WithRefreshToken(const Aws::String &value)
Definition: Credentials.h:153
Aws::Connect::Model::Credentials::SetRefreshToken
void SetRefreshToken(const Aws::String &value)
Definition: Credentials.h:135
Aws::Connect::Model::Credentials::SetRefreshToken
void SetRefreshToken(Aws::String &&value)
Definition: Credentials.h:141
Aws::Connect::Model::Credentials::SetRefreshTokenExpiration
void SetRefreshTokenExpiration(Aws::Utils::DateTime &&value)
Definition: Credentials.h:186
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Connect::Model::Credentials::GetAccessToken
const Aws::String & GetAccessToken() const
Definition: Credentials.h:44
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Connect::Model::Credentials::WithRefreshToken
Credentials & WithRefreshToken(Aws::String &&value)
Definition: Credentials.h:159
AWS_CONNECT_API
#define AWS_CONNECT_API
Definition: Connect_EXPORTS.h:28
Connect_EXPORTS.h
Aws::Connect::Model::Credentials::AccessTokenExpirationHasBeenSet
bool AccessTokenExpirationHasBeenSet() const
Definition: Credentials.h:92