AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
CreateTokenResult.h
1
6#pragma once
7#include <aws/amplifybackend/AmplifyBackend_EXPORTS.h>
8#include <aws/core/http/HttpResponse.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace AmplifyBackend {
23namespace Model {
25 public:
26 AWS_AMPLIFYBACKEND_API CreateTokenResult() = default;
29
31
34 inline const Aws::String& GetAppId() const { return m_appId; }
35 template <typename AppIdT = Aws::String>
36 void SetAppId(AppIdT&& value) {
37 m_appIdHasBeenSet = true;
38 m_appId = std::forward<AppIdT>(value);
39 }
40 template <typename AppIdT = Aws::String>
41 CreateTokenResult& WithAppId(AppIdT&& value) {
42 SetAppId(std::forward<AppIdT>(value));
43 return *this;
44 }
46
48
51 inline const Aws::String& GetChallengeCode() const { return m_challengeCode; }
52 template <typename ChallengeCodeT = Aws::String>
53 void SetChallengeCode(ChallengeCodeT&& value) {
54 m_challengeCodeHasBeenSet = true;
55 m_challengeCode = std::forward<ChallengeCodeT>(value);
56 }
57 template <typename ChallengeCodeT = Aws::String>
58 CreateTokenResult& WithChallengeCode(ChallengeCodeT&& value) {
59 SetChallengeCode(std::forward<ChallengeCodeT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::String& GetSessionId() const { return m_sessionId; }
69 template <typename SessionIdT = Aws::String>
70 void SetSessionId(SessionIdT&& value) {
71 m_sessionIdHasBeenSet = true;
72 m_sessionId = std::forward<SessionIdT>(value);
73 }
74 template <typename SessionIdT = Aws::String>
75 CreateTokenResult& WithSessionId(SessionIdT&& value) {
76 SetSessionId(std::forward<SessionIdT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::String& GetTtl() const { return m_ttl; }
86 template <typename TtlT = Aws::String>
87 void SetTtl(TtlT&& value) {
88 m_ttlHasBeenSet = true;
89 m_ttl = std::forward<TtlT>(value);
90 }
91 template <typename TtlT = Aws::String>
92 CreateTokenResult& WithTtl(TtlT&& value) {
93 SetTtl(std::forward<TtlT>(value));
94 return *this;
95 }
97
99
100 inline const Aws::String& GetRequestId() const { return m_requestId; }
101 template <typename RequestIdT = Aws::String>
102 void SetRequestId(RequestIdT&& value) {
103 m_requestIdHasBeenSet = true;
104 m_requestId = std::forward<RequestIdT>(value);
105 }
106 template <typename RequestIdT = Aws::String>
107 CreateTokenResult& WithRequestId(RequestIdT&& value) {
108 SetRequestId(std::forward<RequestIdT>(value));
109 return *this;
110 }
112 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
113
114 private:
115 Aws::String m_appId;
116
117 Aws::String m_challengeCode;
118
119 Aws::String m_sessionId;
120
121 Aws::String m_ttl;
122
123 Aws::String m_requestId;
124 Aws::Http::HttpResponseCode m_HttpResponseCode;
125 bool m_appIdHasBeenSet = false;
126 bool m_challengeCodeHasBeenSet = false;
127 bool m_sessionIdHasBeenSet = false;
128 bool m_ttlHasBeenSet = false;
129 bool m_requestIdHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace AmplifyBackend
134} // namespace Aws
Aws::Http::HttpResponseCode GetHttpResponseCode() const
CreateTokenResult & WithTtl(TtlT &&value)
CreateTokenResult & WithChallengeCode(ChallengeCodeT &&value)
AWS_AMPLIFYBACKEND_API CreateTokenResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateTokenResult & WithRequestId(RequestIdT &&value)
CreateTokenResult & WithSessionId(SessionIdT &&value)
AWS_AMPLIFYBACKEND_API CreateTokenResult()=default
CreateTokenResult & WithAppId(AppIdT &&value)
AWS_AMPLIFYBACKEND_API CreateTokenResult(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