AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
StartQAppSessionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/qapps/QAppsRequest.h>
11#include <aws/qapps/QApps_EXPORTS.h>
12#include <aws/qapps/model/CardValue.h>
13
14#include <utility>
15
16namespace Aws {
17namespace QApps {
18namespace Model {
19
23 public:
24 AWS_QAPPS_API StartQAppSessionRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "StartQAppSession"; }
31
32 AWS_QAPPS_API Aws::String SerializePayload() const override;
33
35
37
41 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
42 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
43 template <typename InstanceIdT = Aws::String>
44 void SetInstanceId(InstanceIdT&& value) {
45 m_instanceIdHasBeenSet = true;
46 m_instanceId = std::forward<InstanceIdT>(value);
47 }
48 template <typename InstanceIdT = Aws::String>
50 SetInstanceId(std::forward<InstanceIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetAppId() const { return m_appId; }
60 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
61 template <typename AppIdT = Aws::String>
62 void SetAppId(AppIdT&& value) {
63 m_appIdHasBeenSet = true;
64 m_appId = std::forward<AppIdT>(value);
65 }
66 template <typename AppIdT = Aws::String>
68 SetAppId(std::forward<AppIdT>(value));
69 return *this;
70 }
72
74
77 inline int GetAppVersion() const { return m_appVersion; }
78 inline bool AppVersionHasBeenSet() const { return m_appVersionHasBeenSet; }
79 inline void SetAppVersion(int value) {
80 m_appVersionHasBeenSet = true;
81 m_appVersion = value;
82 }
84 SetAppVersion(value);
85 return *this;
86 }
88
90
93 inline const Aws::Vector<CardValue>& GetInitialValues() const { return m_initialValues; }
94 inline bool InitialValuesHasBeenSet() const { return m_initialValuesHasBeenSet; }
95 template <typename InitialValuesT = Aws::Vector<CardValue>>
97 m_initialValuesHasBeenSet = true;
98 m_initialValues = std::forward<InitialValuesT>(value);
99 }
100 template <typename InitialValuesT = Aws::Vector<CardValue>>
102 SetInitialValues(std::forward<InitialValuesT>(value));
103 return *this;
104 }
105 template <typename InitialValuesT = CardValue>
107 m_initialValuesHasBeenSet = true;
108 m_initialValues.emplace_back(std::forward<InitialValuesT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::String& GetSessionId() const { return m_sessionId; }
118 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
119 template <typename SessionIdT = Aws::String>
120 void SetSessionId(SessionIdT&& value) {
121 m_sessionIdHasBeenSet = true;
122 m_sessionId = std::forward<SessionIdT>(value);
123 }
124 template <typename SessionIdT = Aws::String>
126 SetSessionId(std::forward<SessionIdT>(value));
127 return *this;
128 }
130
132
135 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
136 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
137 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
138 void SetTags(TagsT&& value) {
139 m_tagsHasBeenSet = true;
140 m_tags = std::forward<TagsT>(value);
141 }
142 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
144 SetTags(std::forward<TagsT>(value));
145 return *this;
146 }
147 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
149 m_tagsHasBeenSet = true;
150 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
151 return *this;
152 }
154 private:
155 Aws::String m_instanceId;
156
157 Aws::String m_appId;
158
159 int m_appVersion{0};
160
161 Aws::Vector<CardValue> m_initialValues;
162
163 Aws::String m_sessionId;
164
166 bool m_instanceIdHasBeenSet = false;
167 bool m_appIdHasBeenSet = false;
168 bool m_appVersionHasBeenSet = false;
169 bool m_initialValuesHasBeenSet = false;
170 bool m_sessionIdHasBeenSet = false;
171 bool m_tagsHasBeenSet = false;
172};
173
174} // namespace Model
175} // namespace QApps
176} // namespace Aws
StartQAppSessionRequest & WithTags(TagsT &&value)
StartQAppSessionRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_QAPPS_API StartQAppSessionRequest()=default
StartQAppSessionRequest & AddInitialValues(InitialValuesT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
virtual const char * GetServiceRequestName() const override
AWS_QAPPS_API Aws::String SerializePayload() const override
const Aws::Vector< CardValue > & GetInitialValues() const
StartQAppSessionRequest & WithAppVersion(int value)
AWS_QAPPS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartQAppSessionRequest & WithSessionId(SessionIdT &&value)
StartQAppSessionRequest & WithInitialValues(InitialValuesT &&value)
StartQAppSessionRequest & WithAppId(AppIdT &&value)
StartQAppSessionRequest & WithInstanceId(InstanceIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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
std::vector< T, Aws::Allocator< T > > Vector