AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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
67 inline const RuntimeEnvironment& GetRuntimeEnvironment() const { return m_runtimeEnvironment; }
68 inline bool RuntimeEnvironmentHasBeenSet() const { return m_runtimeEnvironmentHasBeenSet; }
69 template <typename RuntimeEnvironmentT = RuntimeEnvironment>
70 void SetRuntimeEnvironment(RuntimeEnvironmentT&& value) {
71 m_runtimeEnvironmentHasBeenSet = true;
72 m_runtimeEnvironment = std::forward<RuntimeEnvironmentT>(value);
73 }
74 template <typename RuntimeEnvironmentT = RuntimeEnvironment>
75 CreateApplicationRequest& WithRuntimeEnvironment(RuntimeEnvironmentT&& value) {
76 SetRuntimeEnvironment(std::forward<RuntimeEnvironmentT>(value));
77 return *this;
78 }
80
82
92 inline const Aws::String& GetExecutablePath() const { return m_executablePath; }
93 inline bool ExecutablePathHasBeenSet() const { return m_executablePathHasBeenSet; }
94 template <typename ExecutablePathT = Aws::String>
95 void SetExecutablePath(ExecutablePathT&& value) {
96 m_executablePathHasBeenSet = true;
97 m_executablePath = std::forward<ExecutablePathT>(value);
98 }
99 template <typename ExecutablePathT = Aws::String>
101 SetExecutablePath(std::forward<ExecutablePathT>(value));
102 return *this;
103 }
105
107
117 inline const Aws::String& GetApplicationSourceUri() const { return m_applicationSourceUri; }
118 inline bool ApplicationSourceUriHasBeenSet() const { return m_applicationSourceUriHasBeenSet; }
119 template <typename ApplicationSourceUriT = Aws::String>
120 void SetApplicationSourceUri(ApplicationSourceUriT&& value) {
121 m_applicationSourceUriHasBeenSet = true;
122 m_applicationSourceUri = std::forward<ApplicationSourceUriT>(value);
123 }
124 template <typename ApplicationSourceUriT = Aws::String>
125 CreateApplicationRequest& WithApplicationSourceUri(ApplicationSourceUriT&& value) {
126 SetApplicationSourceUri(std::forward<ApplicationSourceUriT>(value));
127 return *this;
128 }
130
132
142 inline const Aws::Vector<Aws::String>& GetApplicationLogPaths() const { return m_applicationLogPaths; }
143 inline bool ApplicationLogPathsHasBeenSet() const { return m_applicationLogPathsHasBeenSet; }
144 template <typename ApplicationLogPathsT = Aws::Vector<Aws::String>>
145 void SetApplicationLogPaths(ApplicationLogPathsT&& value) {
146 m_applicationLogPathsHasBeenSet = true;
147 m_applicationLogPaths = std::forward<ApplicationLogPathsT>(value);
148 }
149 template <typename ApplicationLogPathsT = Aws::Vector<Aws::String>>
150 CreateApplicationRequest& WithApplicationLogPaths(ApplicationLogPathsT&& value) {
151 SetApplicationLogPaths(std::forward<ApplicationLogPathsT>(value));
152 return *this;
153 }
154 template <typename ApplicationLogPathsT = Aws::String>
155 CreateApplicationRequest& AddApplicationLogPaths(ApplicationLogPathsT&& value) {
156 m_applicationLogPathsHasBeenSet = true;
157 m_applicationLogPaths.emplace_back(std::forward<ApplicationLogPathsT>(value));
158 return *this;
159 }
161
163
173 inline const Aws::String& GetApplicationLogOutputUri() const { return m_applicationLogOutputUri; }
174 inline bool ApplicationLogOutputUriHasBeenSet() const { return m_applicationLogOutputUriHasBeenSet; }
175 template <typename ApplicationLogOutputUriT = Aws::String>
176 void SetApplicationLogOutputUri(ApplicationLogOutputUriT&& value) {
177 m_applicationLogOutputUriHasBeenSet = true;
178 m_applicationLogOutputUri = std::forward<ApplicationLogOutputUriT>(value);
179 }
180 template <typename ApplicationLogOutputUriT = Aws::String>
181 CreateApplicationRequest& WithApplicationLogOutputUri(ApplicationLogOutputUriT&& value) {
182 SetApplicationLogOutputUri(std::forward<ApplicationLogOutputUriT>(value));
183 return *this;
184 }
186
188
202 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
203 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
204 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
205 void SetTags(TagsT&& value) {
206 m_tagsHasBeenSet = true;
207 m_tags = std::forward<TagsT>(value);
208 }
209 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
211 SetTags(std::forward<TagsT>(value));
212 return *this;
213 }
214 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
215 CreateApplicationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
216 m_tagsHasBeenSet = true;
217 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
218 return *this;
219 }
221
223
228 inline const Aws::String& GetClientToken() const { return m_clientToken; }
229 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
230 template <typename ClientTokenT = Aws::String>
231 void SetClientToken(ClientTokenT&& value) {
232 m_clientTokenHasBeenSet = true;
233 m_clientToken = std::forward<ClientTokenT>(value);
234 }
235 template <typename ClientTokenT = Aws::String>
237 SetClientToken(std::forward<ClientTokenT>(value));
238 return *this;
239 }
241 private:
242 Aws::String m_description;
243
244 RuntimeEnvironment m_runtimeEnvironment;
245
246 Aws::String m_executablePath;
247
248 Aws::String m_applicationSourceUri;
249
250 Aws::Vector<Aws::String> m_applicationLogPaths;
251
252 Aws::String m_applicationLogOutputUri;
253
255
257 bool m_descriptionHasBeenSet = false;
258 bool m_runtimeEnvironmentHasBeenSet = false;
259 bool m_executablePathHasBeenSet = false;
260 bool m_applicationSourceUriHasBeenSet = false;
261 bool m_applicationLogPathsHasBeenSet = false;
262 bool m_applicationLogOutputUriHasBeenSet = false;
263 bool m_tagsHasBeenSet = false;
264 bool m_clientTokenHasBeenSet = true;
265};
266
267} // namespace Model
268} // namespace GameLiftStreams
269} // 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