AWS SDK for C++

AWS SDK for C++ Version 1.11.830

Loading...
Searching...
No Matches
GetApplicationResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/gameliftstreams/GameLiftStreams_EXPORTS.h>
12#include <aws/gameliftstreams/model/ApplicationStatus.h>
13#include <aws/gameliftstreams/model/ApplicationStatusReason.h>
14#include <aws/gameliftstreams/model/ReplicationStatus.h>
15#include <aws/gameliftstreams/model/RuntimeEnvironment.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace GameLiftStreams {
29namespace Model {
31 public:
32 AWS_GAMELIFTSTREAMS_API GetApplicationResult() = default;
35
37
45 inline const Aws::String& GetArn() const { return m_arn; }
46 template <typename ArnT = Aws::String>
47 void SetArn(ArnT&& value) {
48 m_arnHasBeenSet = true;
49 m_arn = std::forward<ArnT>(value);
50 }
51 template <typename ArnT = Aws::String>
53 SetArn(std::forward<ArnT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetDescription() const { return m_description; }
63 template <typename DescriptionT = Aws::String>
64 void SetDescription(DescriptionT&& value) {
65 m_descriptionHasBeenSet = true;
66 m_description = std::forward<DescriptionT>(value);
67 }
68 template <typename DescriptionT = Aws::String>
69 GetApplicationResult& WithDescription(DescriptionT&& value) {
70 SetDescription(std::forward<DescriptionT>(value));
71 return *this;
72 }
74
76
89 inline const RuntimeEnvironment& GetRuntimeEnvironment() const { return m_runtimeEnvironment; }
90 template <typename RuntimeEnvironmentT = RuntimeEnvironment>
91 void SetRuntimeEnvironment(RuntimeEnvironmentT&& value) {
92 m_runtimeEnvironmentHasBeenSet = true;
93 m_runtimeEnvironment = std::forward<RuntimeEnvironmentT>(value);
94 }
95 template <typename RuntimeEnvironmentT = RuntimeEnvironment>
96 GetApplicationResult& WithRuntimeEnvironment(RuntimeEnvironmentT&& value) {
97 SetRuntimeEnvironment(std::forward<RuntimeEnvironmentT>(value));
98 return *this;
99 }
101
103
107 inline const Aws::String& GetExecutablePath() const { return m_executablePath; }
108 template <typename ExecutablePathT = Aws::String>
109 void SetExecutablePath(ExecutablePathT&& value) {
110 m_executablePathHasBeenSet = true;
111 m_executablePath = std::forward<ExecutablePathT>(value);
112 }
113 template <typename ExecutablePathT = Aws::String>
114 GetApplicationResult& WithExecutablePath(ExecutablePathT&& value) {
115 SetExecutablePath(std::forward<ExecutablePathT>(value));
116 return *this;
117 }
119
121
129 inline const Aws::Vector<Aws::String>& GetApplicationLogPaths() const { return m_applicationLogPaths; }
130 template <typename ApplicationLogPathsT = Aws::Vector<Aws::String>>
131 void SetApplicationLogPaths(ApplicationLogPathsT&& value) {
132 m_applicationLogPathsHasBeenSet = true;
133 m_applicationLogPaths = std::forward<ApplicationLogPathsT>(value);
134 }
135 template <typename ApplicationLogPathsT = Aws::Vector<Aws::String>>
136 GetApplicationResult& WithApplicationLogPaths(ApplicationLogPathsT&& value) {
137 SetApplicationLogPaths(std::forward<ApplicationLogPathsT>(value));
138 return *this;
139 }
140 template <typename ApplicationLogPathsT = Aws::String>
141 GetApplicationResult& AddApplicationLogPaths(ApplicationLogPathsT&& value) {
142 m_applicationLogPathsHasBeenSet = true;
143 m_applicationLogPaths.emplace_back(std::forward<ApplicationLogPathsT>(value));
144 return *this;
145 }
147
149
154 inline const Aws::String& GetApplicationLogOutputUri() const { return m_applicationLogOutputUri; }
155 template <typename ApplicationLogOutputUriT = Aws::String>
156 void SetApplicationLogOutputUri(ApplicationLogOutputUriT&& value) {
157 m_applicationLogOutputUriHasBeenSet = true;
158 m_applicationLogOutputUri = std::forward<ApplicationLogOutputUriT>(value);
159 }
160 template <typename ApplicationLogOutputUriT = Aws::String>
161 GetApplicationResult& WithApplicationLogOutputUri(ApplicationLogOutputUriT&& value) {
162 SetApplicationLogOutputUri(std::forward<ApplicationLogOutputUriT>(value));
163 return *this;
164 }
166
168
172 inline const Aws::String& GetApplicationSourceUri() const { return m_applicationSourceUri; }
173 template <typename ApplicationSourceUriT = Aws::String>
174 void SetApplicationSourceUri(ApplicationSourceUriT&& value) {
175 m_applicationSourceUriHasBeenSet = true;
176 m_applicationSourceUri = std::forward<ApplicationSourceUriT>(value);
177 }
178 template <typename ApplicationSourceUriT = Aws::String>
179 GetApplicationResult& WithApplicationSourceUri(ApplicationSourceUriT&& value) {
180 SetApplicationSourceUri(std::forward<ApplicationSourceUriT>(value));
181 return *this;
182 }
184
186
190 inline const Aws::String& GetId() const { return m_id; }
191 template <typename IdT = Aws::String>
192 void SetId(IdT&& value) {
193 m_idHasBeenSet = true;
194 m_id = std::forward<IdT>(value);
195 }
196 template <typename IdT = Aws::String>
198 SetId(std::forward<IdT>(value));
199 return *this;
200 }
202
204
217 inline ApplicationStatus GetStatus() const { return m_status; }
218 inline void SetStatus(ApplicationStatus value) {
219 m_statusHasBeenSet = true;
220 m_status = value;
221 }
223 SetStatus(value);
224 return *this;
225 }
227
229
233 inline ApplicationStatusReason GetStatusReason() const { return m_statusReason; }
235 m_statusReasonHasBeenSet = true;
236 m_statusReason = value;
237 }
239 SetStatusReason(value);
240 return *this;
241 }
243
245
248 inline const Aws::Vector<ReplicationStatus>& GetReplicationStatuses() const { return m_replicationStatuses; }
249 template <typename ReplicationStatusesT = Aws::Vector<ReplicationStatus>>
250 void SetReplicationStatuses(ReplicationStatusesT&& value) {
251 m_replicationStatusesHasBeenSet = true;
252 m_replicationStatuses = std::forward<ReplicationStatusesT>(value);
253 }
254 template <typename ReplicationStatusesT = Aws::Vector<ReplicationStatus>>
255 GetApplicationResult& WithReplicationStatuses(ReplicationStatusesT&& value) {
256 SetReplicationStatuses(std::forward<ReplicationStatusesT>(value));
257 return *this;
258 }
259 template <typename ReplicationStatusesT = ReplicationStatus>
260 GetApplicationResult& AddReplicationStatuses(ReplicationStatusesT&& value) {
261 m_replicationStatusesHasBeenSet = true;
262 m_replicationStatuses.emplace_back(std::forward<ReplicationStatusesT>(value));
263 return *this;
264 }
266
268
273 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
274 template <typename CreatedAtT = Aws::Utils::DateTime>
275 void SetCreatedAt(CreatedAtT&& value) {
276 m_createdAtHasBeenSet = true;
277 m_createdAt = std::forward<CreatedAtT>(value);
278 }
279 template <typename CreatedAtT = Aws::Utils::DateTime>
280 GetApplicationResult& WithCreatedAt(CreatedAtT&& value) {
281 SetCreatedAt(std::forward<CreatedAtT>(value));
282 return *this;
283 }
285
287
292 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
293 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
294 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
295 m_lastUpdatedAtHasBeenSet = true;
296 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
297 }
298 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
299 GetApplicationResult& WithLastUpdatedAt(LastUpdatedAtT&& value) {
300 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
301 return *this;
302 }
304
306
316 inline const Aws::Vector<Aws::String>& GetAssociatedStreamGroups() const { return m_associatedStreamGroups; }
317 template <typename AssociatedStreamGroupsT = Aws::Vector<Aws::String>>
318 void SetAssociatedStreamGroups(AssociatedStreamGroupsT&& value) {
319 m_associatedStreamGroupsHasBeenSet = true;
320 m_associatedStreamGroups = std::forward<AssociatedStreamGroupsT>(value);
321 }
322 template <typename AssociatedStreamGroupsT = Aws::Vector<Aws::String>>
323 GetApplicationResult& WithAssociatedStreamGroups(AssociatedStreamGroupsT&& value) {
324 SetAssociatedStreamGroups(std::forward<AssociatedStreamGroupsT>(value));
325 return *this;
326 }
327 template <typename AssociatedStreamGroupsT = Aws::String>
328 GetApplicationResult& AddAssociatedStreamGroups(AssociatedStreamGroupsT&& value) {
329 m_associatedStreamGroupsHasBeenSet = true;
330 m_associatedStreamGroups.emplace_back(std::forward<AssociatedStreamGroupsT>(value));
331 return *this;
332 }
334
336
337 inline const Aws::String& GetRequestId() const { return m_requestId; }
338 template <typename RequestIdT = Aws::String>
339 void SetRequestId(RequestIdT&& value) {
340 m_requestIdHasBeenSet = true;
341 m_requestId = std::forward<RequestIdT>(value);
342 }
343 template <typename RequestIdT = Aws::String>
344 GetApplicationResult& WithRequestId(RequestIdT&& value) {
345 SetRequestId(std::forward<RequestIdT>(value));
346 return *this;
347 }
349 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
350
351 private:
352 Aws::String m_arn;
353
354 Aws::String m_description;
355
356 RuntimeEnvironment m_runtimeEnvironment;
357
358 Aws::String m_executablePath;
359
360 Aws::Vector<Aws::String> m_applicationLogPaths;
361
362 Aws::String m_applicationLogOutputUri;
363
364 Aws::String m_applicationSourceUri;
365
366 Aws::String m_id;
367
369
371
372 Aws::Vector<ReplicationStatus> m_replicationStatuses;
373
374 Aws::Utils::DateTime m_createdAt{};
375
376 Aws::Utils::DateTime m_lastUpdatedAt{};
377
378 Aws::Vector<Aws::String> m_associatedStreamGroups;
379
380 Aws::String m_requestId;
381 Aws::Http::HttpResponseCode m_HttpResponseCode;
382 bool m_arnHasBeenSet = false;
383 bool m_descriptionHasBeenSet = false;
384 bool m_runtimeEnvironmentHasBeenSet = false;
385 bool m_executablePathHasBeenSet = false;
386 bool m_applicationLogPathsHasBeenSet = false;
387 bool m_applicationLogOutputUriHasBeenSet = false;
388 bool m_applicationSourceUriHasBeenSet = false;
389 bool m_idHasBeenSet = false;
390 bool m_statusHasBeenSet = false;
391 bool m_statusReasonHasBeenSet = false;
392 bool m_replicationStatusesHasBeenSet = false;
393 bool m_createdAtHasBeenSet = false;
394 bool m_lastUpdatedAtHasBeenSet = false;
395 bool m_associatedStreamGroupsHasBeenSet = false;
396 bool m_requestIdHasBeenSet = false;
397};
398
399} // namespace Model
400} // namespace GameLiftStreams
401} // namespace Aws
const Aws::Vector< Aws::String > & GetAssociatedStreamGroups() const
AWS_GAMELIFTSTREAMS_API GetApplicationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const RuntimeEnvironment & GetRuntimeEnvironment() const
GetApplicationResult & WithApplicationLogPaths(ApplicationLogPathsT &&value)
GetApplicationResult & AddAssociatedStreamGroups(AssociatedStreamGroupsT &&value)
GetApplicationResult & WithAssociatedStreamGroups(AssociatedStreamGroupsT &&value)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
void SetApplicationLogPaths(ApplicationLogPathsT &&value)
void SetApplicationLogOutputUri(ApplicationLogOutputUriT &&value)
void SetReplicationStatuses(ReplicationStatusesT &&value)
const Aws::Vector< Aws::String > & GetApplicationLogPaths() const
AWS_GAMELIFTSTREAMS_API GetApplicationResult()=default
GetApplicationResult & WithStatusReason(ApplicationStatusReason value)
GetApplicationResult & AddApplicationLogPaths(ApplicationLogPathsT &&value)
GetApplicationResult & WithRequestId(RequestIdT &&value)
GetApplicationResult & WithStatus(ApplicationStatus value)
const Aws::Vector< ReplicationStatus > & GetReplicationStatuses() const
GetApplicationResult & WithApplicationSourceUri(ApplicationSourceUriT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetRuntimeEnvironment(RuntimeEnvironmentT &&value)
GetApplicationResult & WithReplicationStatuses(ReplicationStatusesT &&value)
void SetApplicationSourceUri(ApplicationSourceUriT &&value)
GetApplicationResult & WithRuntimeEnvironment(RuntimeEnvironmentT &&value)
void SetStatusReason(ApplicationStatusReason value)
GetApplicationResult & WithExecutablePath(ExecutablePathT &&value)
GetApplicationResult & AddReplicationStatuses(ReplicationStatusesT &&value)
void SetAssociatedStreamGroups(AssociatedStreamGroupsT &&value)
AWS_GAMELIFTSTREAMS_API GetApplicationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetApplicationResult & WithDescription(DescriptionT &&value)
GetApplicationResult & WithLastUpdatedAt(LastUpdatedAtT &&value)
GetApplicationResult & WithApplicationLogOutputUri(ApplicationLogOutputUriT &&value)
GetApplicationResult & WithCreatedAt(CreatedAtT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue