AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
48 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
49 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
50 inline StartQAppSessionRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
51 inline StartQAppSessionRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
52 inline StartQAppSessionRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
54
56
59 inline const Aws::String& GetAppId() const{ return m_appId; }
60 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
61 inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
62 inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); }
63 inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
64 inline StartQAppSessionRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
65 inline StartQAppSessionRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
66 inline StartQAppSessionRequest& WithAppId(const char* value) { SetAppId(value); return *this;}
68
70
73 inline int GetAppVersion() const{ return m_appVersion; }
74 inline bool AppVersionHasBeenSet() const { return m_appVersionHasBeenSet; }
75 inline void SetAppVersion(int value) { m_appVersionHasBeenSet = true; m_appVersion = value; }
76 inline StartQAppSessionRequest& WithAppVersion(int value) { SetAppVersion(value); return *this;}
78
80
83 inline const Aws::Vector<CardValue>& GetInitialValues() const{ return m_initialValues; }
84 inline bool InitialValuesHasBeenSet() const { return m_initialValuesHasBeenSet; }
85 inline void SetInitialValues(const Aws::Vector<CardValue>& value) { m_initialValuesHasBeenSet = true; m_initialValues = value; }
86 inline void SetInitialValues(Aws::Vector<CardValue>&& value) { m_initialValuesHasBeenSet = true; m_initialValues = std::move(value); }
88 inline StartQAppSessionRequest& WithInitialValues(Aws::Vector<CardValue>&& value) { SetInitialValues(std::move(value)); return *this;}
89 inline StartQAppSessionRequest& AddInitialValues(const CardValue& value) { m_initialValuesHasBeenSet = true; m_initialValues.push_back(value); return *this; }
90 inline StartQAppSessionRequest& AddInitialValues(CardValue&& value) { m_initialValuesHasBeenSet = true; m_initialValues.push_back(std::move(value)); return *this; }
92
94
97 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
98 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
99 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
100 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
101 inline StartQAppSessionRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
102 inline StartQAppSessionRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
103 inline StartQAppSessionRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
104 inline StartQAppSessionRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
105 inline StartQAppSessionRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
106 inline StartQAppSessionRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
107 inline StartQAppSessionRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
108 inline StartQAppSessionRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
109 inline StartQAppSessionRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
111 private:
112
113 Aws::String m_instanceId;
114 bool m_instanceIdHasBeenSet = false;
115
116 Aws::String m_appId;
117 bool m_appIdHasBeenSet = false;
118
119 int m_appVersion;
120 bool m_appVersionHasBeenSet = false;
121
122 Aws::Vector<CardValue> m_initialValues;
123 bool m_initialValuesHasBeenSet = false;
124
126 bool m_tagsHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace QApps
131} // namespace Aws
void SetInitialValues(Aws::Vector< CardValue > &&value)
StartQAppSessionRequest & AddTags(const Aws::String &key, Aws::String &&value)
StartQAppSessionRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetInitialValues(const Aws::Vector< CardValue > &value)
StartQAppSessionRequest & AddTags(const char *key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
StartQAppSessionRequest & AddTags(const char *key, const char *value)
virtual const char * GetServiceRequestName() const override
AWS_QAPPS_API Aws::String SerializePayload() const override
StartQAppSessionRequest & WithAppId(Aws::String &&value)
const Aws::Vector< CardValue > & GetInitialValues() const
StartQAppSessionRequest & WithAppVersion(int value)
AWS_QAPPS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartQAppSessionRequest & WithInstanceId(Aws::String &&value)
StartQAppSessionRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
StartQAppSessionRequest & WithAppId(const char *value)
StartQAppSessionRequest & WithInstanceId(const char *value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
StartQAppSessionRequest & AddTags(Aws::String &&key, const Aws::String &value)
StartQAppSessionRequest & WithInstanceId(const Aws::String &value)
StartQAppSessionRequest & AddTags(const Aws::String &key, const Aws::String &value)
StartQAppSessionRequest & WithAppId(const Aws::String &value)
StartQAppSessionRequest & WithInitialValues(Aws::Vector< CardValue > &&value)
StartQAppSessionRequest & WithInitialValues(const Aws::Vector< CardValue > &value)
StartQAppSessionRequest & AddTags(Aws::String &&key, Aws::String &&value)
StartQAppSessionRequest & AddInitialValues(const CardValue &value)
StartQAppSessionRequest & AddTags(Aws::String &&key, const char *value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
StartQAppSessionRequest & AddInitialValues(CardValue &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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