AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateApplicationResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/gameliftstreams/GameLiftStreams_EXPORTS.h>
11#include <aws/gameliftstreams/model/ApplicationStatus.h>
12#include <aws/gameliftstreams/model/ApplicationStatusReason.h>
13#include <aws/gameliftstreams/model/ReplicationStatus.h>
14#include <aws/gameliftstreams/model/RuntimeEnvironment.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace GameLiftStreams {
28namespace Model {
30 public:
31 AWS_GAMELIFTSTREAMS_API CreateApplicationResult() = default;
34
36
44 inline const Aws::String& GetArn() const { return m_arn; }
45 template <typename ArnT = Aws::String>
46 void SetArn(ArnT&& value) {
47 m_arnHasBeenSet = true;
48 m_arn = std::forward<ArnT>(value);
49 }
50 template <typename ArnT = Aws::String>
52 SetArn(std::forward<ArnT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetDescription() const { return m_description; }
62 template <typename DescriptionT = Aws::String>
63 void SetDescription(DescriptionT&& value) {
64 m_descriptionHasBeenSet = true;
65 m_description = std::forward<DescriptionT>(value);
66 }
67 template <typename DescriptionT = Aws::String>
69 SetDescription(std::forward<DescriptionT>(value));
70 return *this;
71 }
73
75
87 inline const RuntimeEnvironment& GetRuntimeEnvironment() const { return m_runtimeEnvironment; }
88 template <typename RuntimeEnvironmentT = RuntimeEnvironment>
89 void SetRuntimeEnvironment(RuntimeEnvironmentT&& value) {
90 m_runtimeEnvironmentHasBeenSet = true;
91 m_runtimeEnvironment = std::forward<RuntimeEnvironmentT>(value);
92 }
93 template <typename RuntimeEnvironmentT = RuntimeEnvironment>
94 CreateApplicationResult& WithRuntimeEnvironment(RuntimeEnvironmentT&& value) {
95 SetRuntimeEnvironment(std::forward<RuntimeEnvironmentT>(value));
96 return *this;
97 }
99
101
105 inline const Aws::String& GetExecutablePath() const { return m_executablePath; }
106 template <typename ExecutablePathT = Aws::String>
107 void SetExecutablePath(ExecutablePathT&& value) {
108 m_executablePathHasBeenSet = true;
109 m_executablePath = std::forward<ExecutablePathT>(value);
110 }
111 template <typename ExecutablePathT = Aws::String>
112 CreateApplicationResult& WithExecutablePath(ExecutablePathT&& value) {
113 SetExecutablePath(std::forward<ExecutablePathT>(value));
114 return *this;
115 }
117
119
127 inline const Aws::Vector<Aws::String>& GetApplicationLogPaths() const { return m_applicationLogPaths; }
128 template <typename ApplicationLogPathsT = Aws::Vector<Aws::String>>
129 void SetApplicationLogPaths(ApplicationLogPathsT&& value) {
130 m_applicationLogPathsHasBeenSet = true;
131 m_applicationLogPaths = std::forward<ApplicationLogPathsT>(value);
132 }
133 template <typename ApplicationLogPathsT = Aws::Vector<Aws::String>>
134 CreateApplicationResult& WithApplicationLogPaths(ApplicationLogPathsT&& value) {
135 SetApplicationLogPaths(std::forward<ApplicationLogPathsT>(value));
136 return *this;
137 }
138 template <typename ApplicationLogPathsT = Aws::String>
139 CreateApplicationResult& AddApplicationLogPaths(ApplicationLogPathsT&& value) {
140 m_applicationLogPathsHasBeenSet = true;
141 m_applicationLogPaths.emplace_back(std::forward<ApplicationLogPathsT>(value));
142 return *this;
143 }
145
147
152 inline const Aws::String& GetApplicationLogOutputUri() const { return m_applicationLogOutputUri; }
153 template <typename ApplicationLogOutputUriT = Aws::String>
154 void SetApplicationLogOutputUri(ApplicationLogOutputUriT&& value) {
155 m_applicationLogOutputUriHasBeenSet = true;
156 m_applicationLogOutputUri = std::forward<ApplicationLogOutputUriT>(value);
157 }
158 template <typename ApplicationLogOutputUriT = Aws::String>
159 CreateApplicationResult& WithApplicationLogOutputUri(ApplicationLogOutputUriT&& value) {
160 SetApplicationLogOutputUri(std::forward<ApplicationLogOutputUriT>(value));
161 return *this;
162 }
164
166
170 inline const Aws::String& GetApplicationSourceUri() const { return m_applicationSourceUri; }
171 template <typename ApplicationSourceUriT = Aws::String>
172 void SetApplicationSourceUri(ApplicationSourceUriT&& value) {
173 m_applicationSourceUriHasBeenSet = true;
174 m_applicationSourceUri = std::forward<ApplicationSourceUriT>(value);
175 }
176 template <typename ApplicationSourceUriT = Aws::String>
177 CreateApplicationResult& WithApplicationSourceUri(ApplicationSourceUriT&& value) {
178 SetApplicationSourceUri(std::forward<ApplicationSourceUriT>(value));
179 return *this;
180 }
182
184
188 inline const Aws::String& GetId() const { return m_id; }
189 template <typename IdT = Aws::String>
190 void SetId(IdT&& value) {
191 m_idHasBeenSet = true;
192 m_id = std::forward<IdT>(value);
193 }
194 template <typename IdT = Aws::String>
196 SetId(std::forward<IdT>(value));
197 return *this;
198 }
200
202
215 inline ApplicationStatus GetStatus() const { return m_status; }
216 inline void SetStatus(ApplicationStatus value) {
217 m_statusHasBeenSet = true;
218 m_status = value;
219 }
221 SetStatus(value);
222 return *this;
223 }
225
227
231 inline ApplicationStatusReason GetStatusReason() const { return m_statusReason; }
233 m_statusReasonHasBeenSet = true;
234 m_statusReason = value;
235 }
237 SetStatusReason(value);
238 return *this;
239 }
241
243
246 inline const Aws::Vector<ReplicationStatus>& GetReplicationStatuses() const { return m_replicationStatuses; }
247 template <typename ReplicationStatusesT = Aws::Vector<ReplicationStatus>>
248 void SetReplicationStatuses(ReplicationStatusesT&& value) {
249 m_replicationStatusesHasBeenSet = true;
250 m_replicationStatuses = std::forward<ReplicationStatusesT>(value);
251 }
252 template <typename ReplicationStatusesT = Aws::Vector<ReplicationStatus>>
253 CreateApplicationResult& WithReplicationStatuses(ReplicationStatusesT&& value) {
254 SetReplicationStatuses(std::forward<ReplicationStatusesT>(value));
255 return *this;
256 }
257 template <typename ReplicationStatusesT = ReplicationStatus>
258 CreateApplicationResult& AddReplicationStatuses(ReplicationStatusesT&& value) {
259 m_replicationStatusesHasBeenSet = true;
260 m_replicationStatuses.emplace_back(std::forward<ReplicationStatusesT>(value));
261 return *this;
262 }
264
266
271 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
272 template <typename CreatedAtT = Aws::Utils::DateTime>
273 void SetCreatedAt(CreatedAtT&& value) {
274 m_createdAtHasBeenSet = true;
275 m_createdAt = std::forward<CreatedAtT>(value);
276 }
277 template <typename CreatedAtT = Aws::Utils::DateTime>
279 SetCreatedAt(std::forward<CreatedAtT>(value));
280 return *this;
281 }
283
285
290 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
291 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
292 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
293 m_lastUpdatedAtHasBeenSet = true;
294 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
295 }
296 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
298 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
299 return *this;
300 }
302
304
308 inline const Aws::Vector<Aws::String>& GetAssociatedStreamGroups() const { return m_associatedStreamGroups; }
309 template <typename AssociatedStreamGroupsT = Aws::Vector<Aws::String>>
310 void SetAssociatedStreamGroups(AssociatedStreamGroupsT&& value) {
311 m_associatedStreamGroupsHasBeenSet = true;
312 m_associatedStreamGroups = std::forward<AssociatedStreamGroupsT>(value);
313 }
314 template <typename AssociatedStreamGroupsT = Aws::Vector<Aws::String>>
315 CreateApplicationResult& WithAssociatedStreamGroups(AssociatedStreamGroupsT&& value) {
316 SetAssociatedStreamGroups(std::forward<AssociatedStreamGroupsT>(value));
317 return *this;
318 }
319 template <typename AssociatedStreamGroupsT = Aws::String>
320 CreateApplicationResult& AddAssociatedStreamGroups(AssociatedStreamGroupsT&& value) {
321 m_associatedStreamGroupsHasBeenSet = true;
322 m_associatedStreamGroups.emplace_back(std::forward<AssociatedStreamGroupsT>(value));
323 return *this;
324 }
326
328
329 inline const Aws::String& GetRequestId() const { return m_requestId; }
330 template <typename RequestIdT = Aws::String>
331 void SetRequestId(RequestIdT&& value) {
332 m_requestIdHasBeenSet = true;
333 m_requestId = std::forward<RequestIdT>(value);
334 }
335 template <typename RequestIdT = Aws::String>
337 SetRequestId(std::forward<RequestIdT>(value));
338 return *this;
339 }
341 private:
342 Aws::String m_arn;
343
344 Aws::String m_description;
345
346 RuntimeEnvironment m_runtimeEnvironment;
347
348 Aws::String m_executablePath;
349
350 Aws::Vector<Aws::String> m_applicationLogPaths;
351
352 Aws::String m_applicationLogOutputUri;
353
354 Aws::String m_applicationSourceUri;
355
356 Aws::String m_id;
357
359
361
362 Aws::Vector<ReplicationStatus> m_replicationStatuses;
363
364 Aws::Utils::DateTime m_createdAt{};
365
366 Aws::Utils::DateTime m_lastUpdatedAt{};
367
368 Aws::Vector<Aws::String> m_associatedStreamGroups;
369
370 Aws::String m_requestId;
371 bool m_arnHasBeenSet = false;
372 bool m_descriptionHasBeenSet = false;
373 bool m_runtimeEnvironmentHasBeenSet = false;
374 bool m_executablePathHasBeenSet = false;
375 bool m_applicationLogPathsHasBeenSet = false;
376 bool m_applicationLogOutputUriHasBeenSet = false;
377 bool m_applicationSourceUriHasBeenSet = false;
378 bool m_idHasBeenSet = false;
379 bool m_statusHasBeenSet = false;
380 bool m_statusReasonHasBeenSet = false;
381 bool m_replicationStatusesHasBeenSet = false;
382 bool m_createdAtHasBeenSet = false;
383 bool m_lastUpdatedAtHasBeenSet = false;
384 bool m_associatedStreamGroupsHasBeenSet = false;
385 bool m_requestIdHasBeenSet = false;
386};
387
388} // namespace Model
389} // namespace GameLiftStreams
390} // namespace Aws
CreateApplicationResult & WithApplicationLogPaths(ApplicationLogPathsT &&value)
CreateApplicationResult & WithApplicationSourceUri(ApplicationSourceUriT &&value)
CreateApplicationResult & WithStatus(ApplicationStatus value)
CreateApplicationResult & WithRequestId(RequestIdT &&value)
CreateApplicationResult & AddApplicationLogPaths(ApplicationLogPathsT &&value)
CreateApplicationResult & WithCreatedAt(CreatedAtT &&value)
const Aws::Vector< Aws::String > & GetAssociatedStreamGroups() const
CreateApplicationResult & WithExecutablePath(ExecutablePathT &&value)
const Aws::Vector< Aws::String > & GetApplicationLogPaths() const
CreateApplicationResult & WithRuntimeEnvironment(RuntimeEnvironmentT &&value)
const Aws::Vector< ReplicationStatus > & GetReplicationStatuses() const
AWS_GAMELIFTSTREAMS_API CreateApplicationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateApplicationResult & WithAssociatedStreamGroups(AssociatedStreamGroupsT &&value)
CreateApplicationResult & WithStatusReason(ApplicationStatusReason value)
CreateApplicationResult & AddReplicationStatuses(ReplicationStatusesT &&value)
AWS_GAMELIFTSTREAMS_API CreateApplicationResult()=default
CreateApplicationResult & WithApplicationLogOutputUri(ApplicationLogOutputUriT &&value)
CreateApplicationResult & WithDescription(DescriptionT &&value)
CreateApplicationResult & WithReplicationStatuses(ReplicationStatusesT &&value)
CreateApplicationResult & WithLastUpdatedAt(LastUpdatedAtT &&value)
AWS_GAMELIFTSTREAMS_API CreateApplicationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetAssociatedStreamGroups(AssociatedStreamGroupsT &&value)
void SetApplicationLogOutputUri(ApplicationLogOutputUriT &&value)
CreateApplicationResult & AddAssociatedStreamGroups(AssociatedStreamGroupsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue