AWS SDK for C++

AWS SDK for C++ Version 1.11.830

Loading...
Searching...
No Matches
CreateApplicationRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/gameliftstreams/GameLiftStreamsRequest.h>
12#include <aws/gameliftstreams/GameLiftStreams_EXPORTS.h>
13#include <aws/gameliftstreams/model/RuntimeEnvironment.h>
14
15#include <utility>
16
17namespace Aws {
18namespace GameLiftStreams {
19namespace Model {
20
24 public:
25 AWS_GAMELIFTSTREAMS_API CreateApplicationRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateApplication"; }
32
33 AWS_GAMELIFTSTREAMS_API Aws::String SerializePayload() const override;
34
36
40 inline const Aws::String& GetDescription() const { return m_description; }
41 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
42 template <typename DescriptionT = Aws::String>
43 void SetDescription(DescriptionT&& value) {
44 m_descriptionHasBeenSet = true;
45 m_description = std::forward<DescriptionT>(value);
46 }
47 template <typename DescriptionT = Aws::String>
49 SetDescription(std::forward<DescriptionT>(value));
50 return *this;
51 }
53
55
68 inline const RuntimeEnvironment& GetRuntimeEnvironment() const { return m_runtimeEnvironment; }
69 inline bool RuntimeEnvironmentHasBeenSet() const { return m_runtimeEnvironmentHasBeenSet; }
70 template <typename RuntimeEnvironmentT = RuntimeEnvironment>
71 void SetRuntimeEnvironment(RuntimeEnvironmentT&& value) {
72 m_runtimeEnvironmentHasBeenSet = true;
73 m_runtimeEnvironment = std::forward<RuntimeEnvironmentT>(value);
74 }
75 template <typename RuntimeEnvironmentT = RuntimeEnvironment>
76 CreateApplicationRequest& WithRuntimeEnvironment(RuntimeEnvironmentT&& value) {
77 SetRuntimeEnvironment(std::forward<RuntimeEnvironmentT>(value));
78 return *this;
79 }
81
83
93 inline const Aws::String& GetExecutablePath() const { return m_executablePath; }
94 inline bool ExecutablePathHasBeenSet() const { return m_executablePathHasBeenSet; }
95 template <typename ExecutablePathT = Aws::String>
96 void SetExecutablePath(ExecutablePathT&& value) {
97 m_executablePathHasBeenSet = true;
98 m_executablePath = std::forward<ExecutablePathT>(value);
99 }
100 template <typename ExecutablePathT = Aws::String>
102 SetExecutablePath(std::forward<ExecutablePathT>(value));
103 return *this;
104 }
106
108
118 inline const Aws::String& GetApplicationSourceUri() const { return m_applicationSourceUri; }
119 inline bool ApplicationSourceUriHasBeenSet() const { return m_applicationSourceUriHasBeenSet; }
120 template <typename ApplicationSourceUriT = Aws::String>
121 void SetApplicationSourceUri(ApplicationSourceUriT&& value) {
122 m_applicationSourceUriHasBeenSet = true;
123 m_applicationSourceUri = std::forward<ApplicationSourceUriT>(value);
124 }
125 template <typename ApplicationSourceUriT = Aws::String>
126 CreateApplicationRequest& WithApplicationSourceUri(ApplicationSourceUriT&& value) {
127 SetApplicationSourceUri(std::forward<ApplicationSourceUriT>(value));
128 return *this;
129 }
131
133
153 inline const Aws::Vector<Aws::String>& GetApplicationLogPaths() const { return m_applicationLogPaths; }
154 inline bool ApplicationLogPathsHasBeenSet() const { return m_applicationLogPathsHasBeenSet; }
155 template <typename ApplicationLogPathsT = Aws::Vector<Aws::String>>
156 void SetApplicationLogPaths(ApplicationLogPathsT&& value) {
157 m_applicationLogPathsHasBeenSet = true;
158 m_applicationLogPaths = std::forward<ApplicationLogPathsT>(value);
159 }
160 template <typename ApplicationLogPathsT = Aws::Vector<Aws::String>>
161 CreateApplicationRequest& WithApplicationLogPaths(ApplicationLogPathsT&& value) {
162 SetApplicationLogPaths(std::forward<ApplicationLogPathsT>(value));
163 return *this;
164 }
165 template <typename ApplicationLogPathsT = Aws::String>
166 CreateApplicationRequest& AddApplicationLogPaths(ApplicationLogPathsT&& value) {
167 m_applicationLogPathsHasBeenSet = true;
168 m_applicationLogPaths.emplace_back(std::forward<ApplicationLogPathsT>(value));
169 return *this;
170 }
172
174
184 inline const Aws::String& GetApplicationLogOutputUri() const { return m_applicationLogOutputUri; }
185 inline bool ApplicationLogOutputUriHasBeenSet() const { return m_applicationLogOutputUriHasBeenSet; }
186 template <typename ApplicationLogOutputUriT = Aws::String>
187 void SetApplicationLogOutputUri(ApplicationLogOutputUriT&& value) {
188 m_applicationLogOutputUriHasBeenSet = true;
189 m_applicationLogOutputUri = std::forward<ApplicationLogOutputUriT>(value);
190 }
191 template <typename ApplicationLogOutputUriT = Aws::String>
192 CreateApplicationRequest& WithApplicationLogOutputUri(ApplicationLogOutputUriT&& value) {
193 SetApplicationLogOutputUri(std::forward<ApplicationLogOutputUriT>(value));
194 return *this;
195 }
197
199
213 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
214 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
215 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
216 void SetTags(TagsT&& value) {
217 m_tagsHasBeenSet = true;
218 m_tags = std::forward<TagsT>(value);
219 }
220 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
222 SetTags(std::forward<TagsT>(value));
223 return *this;
224 }
225 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
226 CreateApplicationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
227 m_tagsHasBeenSet = true;
228 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
229 return *this;
230 }
232
234
239 inline const Aws::String& GetClientToken() const { return m_clientToken; }
240 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
241 template <typename ClientTokenT = Aws::String>
242 void SetClientToken(ClientTokenT&& value) {
243 m_clientTokenHasBeenSet = true;
244 m_clientToken = std::forward<ClientTokenT>(value);
245 }
246 template <typename ClientTokenT = Aws::String>
248 SetClientToken(std::forward<ClientTokenT>(value));
249 return *this;
250 }
252 private:
253 Aws::String m_description;
254
255 RuntimeEnvironment m_runtimeEnvironment;
256
257 Aws::String m_executablePath;
258
259 Aws::String m_applicationSourceUri;
260
261 Aws::Vector<Aws::String> m_applicationLogPaths;
262
263 Aws::String m_applicationLogOutputUri;
264
266
268 bool m_descriptionHasBeenSet = false;
269 bool m_runtimeEnvironmentHasBeenSet = false;
270 bool m_executablePathHasBeenSet = false;
271 bool m_applicationSourceUriHasBeenSet = false;
272 bool m_applicationLogPathsHasBeenSet = false;
273 bool m_applicationLogOutputUriHasBeenSet = false;
274 bool m_tagsHasBeenSet = false;
275 bool m_clientTokenHasBeenSet = true;
276};
277
278} // namespace Model
279} // namespace GameLiftStreams
280} // namespace Aws
CreateApplicationRequest & WithExecutablePath(ExecutablePathT &&value)
virtual const char * GetServiceRequestName() const override
AWS_GAMELIFTSTREAMS_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetApplicationLogOutputUri(ApplicationLogOutputUriT &&value)
const Aws::Vector< Aws::String > & GetApplicationLogPaths() const
CreateApplicationRequest & WithApplicationLogOutputUri(ApplicationLogOutputUriT &&value)
CreateApplicationRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateApplicationRequest & WithRuntimeEnvironment(RuntimeEnvironmentT &&value)
CreateApplicationRequest & AddApplicationLogPaths(ApplicationLogPathsT &&value)
CreateApplicationRequest & WithClientToken(ClientTokenT &&value)
AWS_GAMELIFTSTREAMS_API CreateApplicationRequest()=default
CreateApplicationRequest & WithApplicationLogPaths(ApplicationLogPathsT &&value)
CreateApplicationRequest & WithDescription(DescriptionT &&value)
CreateApplicationRequest & WithApplicationSourceUri(ApplicationSourceUriT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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