AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
StartQAppSessionRequest.h
1
6#pragma once
7#include <aws/qapps/QApps_EXPORTS.h>
8#include <aws/qapps/QAppsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/qapps/model/CardValue.h>
13#include <utility>
14
15namespace Aws
16{
17namespace QApps
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_QAPPS_API StartQAppSessionRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "StartQAppSession"; }
34
35 AWS_QAPPS_API Aws::String SerializePayload() const override;
36
38
39
41
45 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
46 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
47 template<typename InstanceIdT = Aws::String>
48 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
49 template<typename InstanceIdT = Aws::String>
50 StartQAppSessionRequest& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
52
54
57 inline const Aws::String& GetAppId() const { return m_appId; }
58 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
59 template<typename AppIdT = Aws::String>
60 void SetAppId(AppIdT&& value) { m_appIdHasBeenSet = true; m_appId = std::forward<AppIdT>(value); }
61 template<typename AppIdT = Aws::String>
62 StartQAppSessionRequest& WithAppId(AppIdT&& value) { SetAppId(std::forward<AppIdT>(value)); return *this;}
64
66
69 inline int GetAppVersion() const { return m_appVersion; }
70 inline bool AppVersionHasBeenSet() const { return m_appVersionHasBeenSet; }
71 inline void SetAppVersion(int value) { m_appVersionHasBeenSet = true; m_appVersion = value; }
72 inline StartQAppSessionRequest& WithAppVersion(int value) { SetAppVersion(value); return *this;}
74
76
79 inline const Aws::Vector<CardValue>& GetInitialValues() const { return m_initialValues; }
80 inline bool InitialValuesHasBeenSet() const { return m_initialValuesHasBeenSet; }
81 template<typename InitialValuesT = Aws::Vector<CardValue>>
82 void SetInitialValues(InitialValuesT&& value) { m_initialValuesHasBeenSet = true; m_initialValues = std::forward<InitialValuesT>(value); }
83 template<typename InitialValuesT = Aws::Vector<CardValue>>
84 StartQAppSessionRequest& WithInitialValues(InitialValuesT&& value) { SetInitialValues(std::forward<InitialValuesT>(value)); return *this;}
85 template<typename InitialValuesT = CardValue>
86 StartQAppSessionRequest& AddInitialValues(InitialValuesT&& value) { m_initialValuesHasBeenSet = true; m_initialValues.emplace_back(std::forward<InitialValuesT>(value)); return *this; }
88
90
93 inline const Aws::String& GetSessionId() const { return m_sessionId; }
94 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
95 template<typename SessionIdT = Aws::String>
96 void SetSessionId(SessionIdT&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::forward<SessionIdT>(value); }
97 template<typename SessionIdT = Aws::String>
98 StartQAppSessionRequest& WithSessionId(SessionIdT&& value) { SetSessionId(std::forward<SessionIdT>(value)); return *this;}
100
102
105 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
106 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
107 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
108 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
109 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
110 StartQAppSessionRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
111 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
113 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
114 }
116 private:
117
118 Aws::String m_instanceId;
119 bool m_instanceIdHasBeenSet = false;
120
121 Aws::String m_appId;
122 bool m_appIdHasBeenSet = false;
123
124 int m_appVersion{0};
125 bool m_appVersionHasBeenSet = false;
126
127 Aws::Vector<CardValue> m_initialValues;
128 bool m_initialValuesHasBeenSet = false;
129
130 Aws::String m_sessionId;
131 bool m_sessionIdHasBeenSet = false;
132
134 bool m_tagsHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace QApps
139} // 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