AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetQAppSessionResult.h
1
6#pragma once
7#include <aws/qapps/QApps_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/qapps/model/ExecutionStatus.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/qapps/model/CardStatus.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace QApps
27{
28namespace Model
29{
31 {
32 public:
33 AWS_QAPPS_API GetQAppSessionResult() = default;
36
37
39
42 inline const Aws::String& GetSessionId() const { return m_sessionId; }
43 template<typename SessionIdT = Aws::String>
44 void SetSessionId(SessionIdT&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::forward<SessionIdT>(value); }
45 template<typename SessionIdT = Aws::String>
46 GetQAppSessionResult& WithSessionId(SessionIdT&& value) { SetSessionId(std::forward<SessionIdT>(value)); return *this;}
48
50
53 inline const Aws::String& GetSessionArn() const { return m_sessionArn; }
54 template<typename SessionArnT = Aws::String>
55 void SetSessionArn(SessionArnT&& value) { m_sessionArnHasBeenSet = true; m_sessionArn = std::forward<SessionArnT>(value); }
56 template<typename SessionArnT = Aws::String>
57 GetQAppSessionResult& WithSessionArn(SessionArnT&& value) { SetSessionArn(std::forward<SessionArnT>(value)); return *this;}
59
61
64 inline const Aws::String& GetSessionName() const { return m_sessionName; }
65 template<typename SessionNameT = Aws::String>
66 void SetSessionName(SessionNameT&& value) { m_sessionNameHasBeenSet = true; m_sessionName = std::forward<SessionNameT>(value); }
67 template<typename SessionNameT = Aws::String>
68 GetQAppSessionResult& WithSessionName(SessionNameT&& value) { SetSessionName(std::forward<SessionNameT>(value)); return *this;}
70
72
75 inline int GetAppVersion() const { return m_appVersion; }
76 inline void SetAppVersion(int value) { m_appVersionHasBeenSet = true; m_appVersion = value; }
77 inline GetQAppSessionResult& WithAppVersion(int value) { SetAppVersion(value); return *this;}
79
81
84 inline int GetLatestPublishedAppVersion() const { return m_latestPublishedAppVersion; }
85 inline void SetLatestPublishedAppVersion(int value) { m_latestPublishedAppVersionHasBeenSet = true; m_latestPublishedAppVersion = value; }
88
90
93 inline ExecutionStatus GetStatus() const { return m_status; }
94 inline void SetStatus(ExecutionStatus value) { m_statusHasBeenSet = true; m_status = value; }
95 inline GetQAppSessionResult& WithStatus(ExecutionStatus value) { SetStatus(value); return *this;}
97
99
102 inline const Aws::Map<Aws::String, CardStatus>& GetCardStatus() const { return m_cardStatus; }
103 template<typename CardStatusT = Aws::Map<Aws::String, CardStatus>>
104 void SetCardStatus(CardStatusT&& value) { m_cardStatusHasBeenSet = true; m_cardStatus = std::forward<CardStatusT>(value); }
105 template<typename CardStatusT = Aws::Map<Aws::String, CardStatus>>
106 GetQAppSessionResult& WithCardStatus(CardStatusT&& value) { SetCardStatus(std::forward<CardStatusT>(value)); return *this;}
107 template<typename CardStatusKeyT = Aws::String, typename CardStatusValueT = CardStatus>
109 m_cardStatusHasBeenSet = true; m_cardStatus.emplace(std::forward<CardStatusKeyT>(key), std::forward<CardStatusValueT>(value)); return *this;
110 }
112
114
118 inline bool GetUserIsHost() const { return m_userIsHost; }
119 inline void SetUserIsHost(bool value) { m_userIsHostHasBeenSet = true; m_userIsHost = value; }
120 inline GetQAppSessionResult& WithUserIsHost(bool value) { SetUserIsHost(value); return *this;}
122
124
125 inline const Aws::String& GetRequestId() const { return m_requestId; }
126 template<typename RequestIdT = Aws::String>
127 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
128 template<typename RequestIdT = Aws::String>
129 GetQAppSessionResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
131 private:
132
133 Aws::String m_sessionId;
134 bool m_sessionIdHasBeenSet = false;
135
136 Aws::String m_sessionArn;
137 bool m_sessionArnHasBeenSet = false;
138
139 Aws::String m_sessionName;
140 bool m_sessionNameHasBeenSet = false;
141
142 int m_appVersion{0};
143 bool m_appVersionHasBeenSet = false;
144
145 int m_latestPublishedAppVersion{0};
146 bool m_latestPublishedAppVersionHasBeenSet = false;
147
149 bool m_statusHasBeenSet = false;
150
152 bool m_cardStatusHasBeenSet = false;
153
154 bool m_userIsHost{false};
155 bool m_userIsHostHasBeenSet = false;
156
157 Aws::String m_requestId;
158 bool m_requestIdHasBeenSet = false;
159 };
160
161} // namespace Model
162} // namespace QApps
163} // namespace Aws
GetQAppSessionResult & WithSessionArn(SessionArnT &&value)
const Aws::Map< Aws::String, CardStatus > & GetCardStatus() const
GetQAppSessionResult & WithStatus(ExecutionStatus value)
GetQAppSessionResult & AddCardStatus(CardStatusKeyT &&key, CardStatusValueT &&value)
GetQAppSessionResult & WithSessionName(SessionNameT &&value)
GetQAppSessionResult & WithSessionId(SessionIdT &&value)
AWS_QAPPS_API GetQAppSessionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_QAPPS_API GetQAppSessionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetQAppSessionResult & WithAppVersion(int value)
AWS_QAPPS_API GetQAppSessionResult()=default
GetQAppSessionResult & WithCardStatus(CardStatusT &&value)
GetQAppSessionResult & WithLatestPublishedAppVersion(int value)
GetQAppSessionResult & WithRequestId(RequestIdT &&value)
GetQAppSessionResult & WithUserIsHost(bool value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue