AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Credentials.h
1
6#pragma once
7#include <aws/connect/Connect_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{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Connect
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_CONNECT_API Credentials();
36 AWS_CONNECT_API Credentials(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetAccessToken() const{ return m_accessToken; }
46 inline bool AccessTokenHasBeenSet() const { return m_accessTokenHasBeenSet; }
47 inline void SetAccessToken(const Aws::String& value) { m_accessTokenHasBeenSet = true; m_accessToken = value; }
48 inline void SetAccessToken(Aws::String&& value) { m_accessTokenHasBeenSet = true; m_accessToken = std::move(value); }
49 inline void SetAccessToken(const char* value) { m_accessTokenHasBeenSet = true; m_accessToken.assign(value); }
50 inline Credentials& WithAccessToken(const Aws::String& value) { SetAccessToken(value); return *this;}
51 inline Credentials& WithAccessToken(Aws::String&& value) { SetAccessToken(std::move(value)); return *this;}
52 inline Credentials& WithAccessToken(const char* value) { SetAccessToken(value); return *this;}
54
56
60 inline const Aws::Utils::DateTime& GetAccessTokenExpiration() const{ return m_accessTokenExpiration; }
61 inline bool AccessTokenExpirationHasBeenSet() const { return m_accessTokenExpirationHasBeenSet; }
62 inline void SetAccessTokenExpiration(const Aws::Utils::DateTime& value) { m_accessTokenExpirationHasBeenSet = true; m_accessTokenExpiration = value; }
63 inline void SetAccessTokenExpiration(Aws::Utils::DateTime&& value) { m_accessTokenExpirationHasBeenSet = true; m_accessTokenExpiration = std::move(value); }
65 inline Credentials& WithAccessTokenExpiration(Aws::Utils::DateTime&& value) { SetAccessTokenExpiration(std::move(value)); return *this;}
67
69
73 inline const Aws::String& GetRefreshToken() const{ return m_refreshToken; }
74 inline bool RefreshTokenHasBeenSet() const { return m_refreshTokenHasBeenSet; }
75 inline void SetRefreshToken(const Aws::String& value) { m_refreshTokenHasBeenSet = true; m_refreshToken = value; }
76 inline void SetRefreshToken(Aws::String&& value) { m_refreshTokenHasBeenSet = true; m_refreshToken = std::move(value); }
77 inline void SetRefreshToken(const char* value) { m_refreshTokenHasBeenSet = true; m_refreshToken.assign(value); }
78 inline Credentials& WithRefreshToken(const Aws::String& value) { SetRefreshToken(value); return *this;}
79 inline Credentials& WithRefreshToken(Aws::String&& value) { SetRefreshToken(std::move(value)); return *this;}
80 inline Credentials& WithRefreshToken(const char* value) { SetRefreshToken(value); return *this;}
82
84
87 inline const Aws::Utils::DateTime& GetRefreshTokenExpiration() const{ return m_refreshTokenExpiration; }
88 inline bool RefreshTokenExpirationHasBeenSet() const { return m_refreshTokenExpirationHasBeenSet; }
89 inline void SetRefreshTokenExpiration(const Aws::Utils::DateTime& value) { m_refreshTokenExpirationHasBeenSet = true; m_refreshTokenExpiration = value; }
90 inline void SetRefreshTokenExpiration(Aws::Utils::DateTime&& value) { m_refreshTokenExpirationHasBeenSet = true; m_refreshTokenExpiration = std::move(value); }
92 inline Credentials& WithRefreshTokenExpiration(Aws::Utils::DateTime&& value) { SetRefreshTokenExpiration(std::move(value)); return *this;}
94 private:
95
96 Aws::String m_accessToken;
97 bool m_accessTokenHasBeenSet = false;
98
99 Aws::Utils::DateTime m_accessTokenExpiration;
100 bool m_accessTokenExpirationHasBeenSet = false;
101
102 Aws::String m_refreshToken;
103 bool m_refreshTokenHasBeenSet = false;
104
105 Aws::Utils::DateTime m_refreshTokenExpiration;
106 bool m_refreshTokenExpirationHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace Connect
111} // namespace Aws
void SetRefreshToken(const char *value)
Definition Credentials.h:77
void SetRefreshToken(const Aws::String &value)
Definition Credentials.h:75
Credentials & WithAccessTokenExpiration(Aws::Utils::DateTime &&value)
Definition Credentials.h:65
Credentials & WithRefreshToken(const char *value)
Definition Credentials.h:80
bool AccessTokenExpirationHasBeenSet() const
Definition Credentials.h:61
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAccessToken(Aws::String &&value)
Definition Credentials.h:48
AWS_CONNECT_API Credentials & operator=(Aws::Utils::Json::JsonView jsonValue)
Credentials & WithRefreshTokenExpiration(Aws::Utils::DateTime &&value)
Definition Credentials.h:92
void SetRefreshToken(Aws::String &&value)
Definition Credentials.h:76
Credentials & WithAccessToken(const Aws::String &value)
Definition Credentials.h:50
Credentials & WithAccessToken(Aws::String &&value)
Definition Credentials.h:51
Credentials & WithRefreshTokenExpiration(const Aws::Utils::DateTime &value)
Definition Credentials.h:91
Credentials & WithAccessTokenExpiration(const Aws::Utils::DateTime &value)
Definition Credentials.h:64
const Aws::Utils::DateTime & GetRefreshTokenExpiration() const
Definition Credentials.h:87
void SetAccessToken(const Aws::String &value)
Definition Credentials.h:47
const Aws::String & GetRefreshToken() const
Definition Credentials.h:73
void SetAccessToken(const char *value)
Definition Credentials.h:49
Credentials & WithAccessToken(const char *value)
Definition Credentials.h:52
Credentials & WithRefreshToken(const Aws::String &value)
Definition Credentials.h:78
Credentials & WithRefreshToken(Aws::String &&value)
Definition Credentials.h:79
void SetAccessTokenExpiration(Aws::Utils::DateTime &&value)
Definition Credentials.h:63
const Aws::Utils::DateTime & GetAccessTokenExpiration() const
Definition Credentials.h:60
void SetRefreshTokenExpiration(const Aws::Utils::DateTime &value)
Definition Credentials.h:89
void SetAccessTokenExpiration(const Aws::Utils::DateTime &value)
Definition Credentials.h:62
bool RefreshTokenExpirationHasBeenSet() const
Definition Credentials.h:88
void SetRefreshTokenExpiration(Aws::Utils::DateTime &&value)
Definition Credentials.h:90
AWS_CONNECT_API Credentials(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAccessToken() const
Definition Credentials.h:45
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue