AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ExchangeCodeForTokenResult.h
1
6#pragma once
7#include <aws/amplifyuibuilder/AmplifyUIBuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13template<typename RESULT_TYPE>
14class AmazonWebServiceResult;
15
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace AmplifyUIBuilder
24{
25namespace Model
26{
28 {
29 public:
30 AWS_AMPLIFYUIBUILDER_API ExchangeCodeForTokenResult();
33
34
36
39 inline const Aws::String& GetAccessToken() const{ return m_accessToken; }
40 inline void SetAccessToken(const Aws::String& value) { m_accessToken = value; }
41 inline void SetAccessToken(Aws::String&& value) { m_accessToken = std::move(value); }
42 inline void SetAccessToken(const char* value) { m_accessToken.assign(value); }
43 inline ExchangeCodeForTokenResult& WithAccessToken(const Aws::String& value) { SetAccessToken(value); return *this;}
44 inline ExchangeCodeForTokenResult& WithAccessToken(Aws::String&& value) { SetAccessToken(std::move(value)); return *this;}
45 inline ExchangeCodeForTokenResult& WithAccessToken(const char* value) { SetAccessToken(value); return *this;}
47
49
52 inline int GetExpiresIn() const{ return m_expiresIn; }
53 inline void SetExpiresIn(int value) { m_expiresIn = value; }
54 inline ExchangeCodeForTokenResult& WithExpiresIn(int value) { SetExpiresIn(value); return *this;}
56
58
62 inline const Aws::String& GetRefreshToken() const{ return m_refreshToken; }
63 inline void SetRefreshToken(const Aws::String& value) { m_refreshToken = value; }
64 inline void SetRefreshToken(Aws::String&& value) { m_refreshToken = std::move(value); }
65 inline void SetRefreshToken(const char* value) { m_refreshToken.assign(value); }
66 inline ExchangeCodeForTokenResult& WithRefreshToken(const Aws::String& value) { SetRefreshToken(value); return *this;}
67 inline ExchangeCodeForTokenResult& WithRefreshToken(Aws::String&& value) { SetRefreshToken(std::move(value)); return *this;}
68 inline ExchangeCodeForTokenResult& WithRefreshToken(const char* value) { SetRefreshToken(value); return *this;}
70
72
73 inline const Aws::String& GetRequestId() const{ return m_requestId; }
74 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
75 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
76 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
77 inline ExchangeCodeForTokenResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
78 inline ExchangeCodeForTokenResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
79 inline ExchangeCodeForTokenResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
81 private:
82
83 Aws::String m_accessToken;
84
85 int m_expiresIn;
86
87 Aws::String m_refreshToken;
88
89 Aws::String m_requestId;
90 };
91
92} // namespace Model
93} // namespace AmplifyUIBuilder
94} // namespace Aws
AWS_AMPLIFYUIBUILDER_API ExchangeCodeForTokenResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ExchangeCodeForTokenResult & WithAccessToken(Aws::String &&value)
ExchangeCodeForTokenResult & WithRefreshToken(Aws::String &&value)
ExchangeCodeForTokenResult & WithAccessToken(const Aws::String &value)
ExchangeCodeForTokenResult & WithRefreshToken(const Aws::String &value)
ExchangeCodeForTokenResult & WithRequestId(const Aws::String &value)
ExchangeCodeForTokenResult & WithRequestId(const char *value)
ExchangeCodeForTokenResult & WithAccessToken(const char *value)
ExchangeCodeForTokenResult & WithRequestId(Aws::String &&value)
AWS_AMPLIFYUIBUILDER_API ExchangeCodeForTokenResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ExchangeCodeForTokenResult & WithRefreshToken(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue