AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GetTokenResult.h
1
6#pragma once
7#include <aws/amplifybackend/AmplifyBackend_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13template <typename RESULT_TYPE>
14class AmazonWebServiceResult;
15
16namespace Utils {
17namespace Json {
18class JsonValue;
19} // namespace Json
20} // namespace Utils
21namespace AmplifyBackend {
22namespace Model {
24 public:
25 AWS_AMPLIFYBACKEND_API GetTokenResult() = default;
28
30
33 inline const Aws::String& GetAppId() const { return m_appId; }
34 template <typename AppIdT = Aws::String>
35 void SetAppId(AppIdT&& value) {
36 m_appIdHasBeenSet = true;
37 m_appId = std::forward<AppIdT>(value);
38 }
39 template <typename AppIdT = Aws::String>
40 GetTokenResult& WithAppId(AppIdT&& value) {
41 SetAppId(std::forward<AppIdT>(value));
42 return *this;
43 }
45
47
50 inline const Aws::String& GetChallengeCode() const { return m_challengeCode; }
51 template <typename ChallengeCodeT = Aws::String>
52 void SetChallengeCode(ChallengeCodeT&& value) {
53 m_challengeCodeHasBeenSet = true;
54 m_challengeCode = std::forward<ChallengeCodeT>(value);
55 }
56 template <typename ChallengeCodeT = Aws::String>
57 GetTokenResult& WithChallengeCode(ChallengeCodeT&& value) {
58 SetChallengeCode(std::forward<ChallengeCodeT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::String& GetSessionId() const { return m_sessionId; }
68 template <typename SessionIdT = Aws::String>
69 void SetSessionId(SessionIdT&& value) {
70 m_sessionIdHasBeenSet = true;
71 m_sessionId = std::forward<SessionIdT>(value);
72 }
73 template <typename SessionIdT = Aws::String>
74 GetTokenResult& WithSessionId(SessionIdT&& value) {
75 SetSessionId(std::forward<SessionIdT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::String& GetTtl() const { return m_ttl; }
85 template <typename TtlT = Aws::String>
86 void SetTtl(TtlT&& value) {
87 m_ttlHasBeenSet = true;
88 m_ttl = std::forward<TtlT>(value);
89 }
90 template <typename TtlT = Aws::String>
91 GetTokenResult& WithTtl(TtlT&& value) {
92 SetTtl(std::forward<TtlT>(value));
93 return *this;
94 }
96
98
99 inline const Aws::String& GetRequestId() const { return m_requestId; }
100 template <typename RequestIdT = Aws::String>
101 void SetRequestId(RequestIdT&& value) {
102 m_requestIdHasBeenSet = true;
103 m_requestId = std::forward<RequestIdT>(value);
104 }
105 template <typename RequestIdT = Aws::String>
106 GetTokenResult& WithRequestId(RequestIdT&& value) {
107 SetRequestId(std::forward<RequestIdT>(value));
108 return *this;
109 }
111 private:
112 Aws::String m_appId;
113
114 Aws::String m_challengeCode;
115
116 Aws::String m_sessionId;
117
118 Aws::String m_ttl;
119
120 Aws::String m_requestId;
121 bool m_appIdHasBeenSet = false;
122 bool m_challengeCodeHasBeenSet = false;
123 bool m_sessionIdHasBeenSet = false;
124 bool m_ttlHasBeenSet = false;
125 bool m_requestIdHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace AmplifyBackend
130} // namespace Aws
AWS_AMPLIFYBACKEND_API GetTokenResult()=default
const Aws::String & GetChallengeCode() const
GetTokenResult & WithChallengeCode(ChallengeCodeT &&value)
AWS_AMPLIFYBACKEND_API GetTokenResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_AMPLIFYBACKEND_API GetTokenResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetTokenResult & WithSessionId(SessionIdT &&value)
GetTokenResult & WithAppId(AppIdT &&value)
const Aws::String & GetRequestId() const
void SetChallengeCode(ChallengeCodeT &&value)
GetTokenResult & WithTtl(TtlT &&value)
const Aws::String & GetSessionId() const
GetTokenResult & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue