AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateChatTokenResult.h
1
6#pragma once
7#include <aws/ivschat/Ivschat_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 ivschat
25{
26namespace Model
27{
29 {
30 public:
31 AWS_IVSCHAT_API CreateChatTokenResult();
34
35
37
40 inline const Aws::String& GetToken() const{ return m_token; }
41 inline void SetToken(const Aws::String& value) { m_token = value; }
42 inline void SetToken(Aws::String&& value) { m_token = std::move(value); }
43 inline void SetToken(const char* value) { m_token.assign(value); }
44 inline CreateChatTokenResult& WithToken(const Aws::String& value) { SetToken(value); return *this;}
45 inline CreateChatTokenResult& WithToken(Aws::String&& value) { SetToken(std::move(value)); return *this;}
46 inline CreateChatTokenResult& WithToken(const char* value) { SetToken(value); return *this;}
48
50
55 inline const Aws::Utils::DateTime& GetTokenExpirationTime() const{ return m_tokenExpirationTime; }
56 inline void SetTokenExpirationTime(const Aws::Utils::DateTime& value) { m_tokenExpirationTime = value; }
57 inline void SetTokenExpirationTime(Aws::Utils::DateTime&& value) { m_tokenExpirationTime = std::move(value); }
61
63
67 inline const Aws::Utils::DateTime& GetSessionExpirationTime() const{ return m_sessionExpirationTime; }
68 inline void SetSessionExpirationTime(const Aws::Utils::DateTime& value) { m_sessionExpirationTime = value; }
69 inline void SetSessionExpirationTime(Aws::Utils::DateTime&& value) { m_sessionExpirationTime = std::move(value); }
73
75
76 inline const Aws::String& GetRequestId() const{ return m_requestId; }
77 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
78 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
79 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
80 inline CreateChatTokenResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
81 inline CreateChatTokenResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
82 inline CreateChatTokenResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
84 private:
85
86 Aws::String m_token;
87
88 Aws::Utils::DateTime m_tokenExpirationTime;
89
90 Aws::Utils::DateTime m_sessionExpirationTime;
91
92 Aws::String m_requestId;
93 };
94
95} // namespace Model
96} // namespace ivschat
97} // namespace Aws
const Aws::Utils::DateTime & GetTokenExpirationTime() const
void SetSessionExpirationTime(Aws::Utils::DateTime &&value)
CreateChatTokenResult & WithRequestId(Aws::String &&value)
CreateChatTokenResult & WithToken(Aws::String &&value)
CreateChatTokenResult & WithTokenExpirationTime(const Aws::Utils::DateTime &value)
AWS_IVSCHAT_API CreateChatTokenResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateChatTokenResult & WithSessionExpirationTime(const Aws::Utils::DateTime &value)
CreateChatTokenResult & WithTokenExpirationTime(Aws::Utils::DateTime &&value)
void SetTokenExpirationTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetSessionExpirationTime() const
CreateChatTokenResult & WithRequestId(const char *value)
void SetSessionExpirationTime(const Aws::Utils::DateTime &value)
CreateChatTokenResult & WithSessionExpirationTime(Aws::Utils::DateTime &&value)
CreateChatTokenResult & WithRequestId(const Aws::String &value)
void SetTokenExpirationTime(Aws::Utils::DateTime &&value)
CreateChatTokenResult & WithToken(const char *value)
CreateChatTokenResult & WithToken(const Aws::String &value)
AWS_IVSCHAT_API CreateChatTokenResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue