AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
GetApplicationResult.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 GetApplicationResult() = 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>
68 GetApplicationResult& WithDescription(DescriptionT&& value) {
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 GetApplicationResult& 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 GetApplicationResult& 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 GetApplicationResult& WithApplicationLogPaths(ApplicationLogPathsT&& value) {
135 SetApplicationLogPaths(std::forward<ApplicationLogPathsT>(value));
136 return *this;
137 }
138 template <typename ApplicationLogPathsT = Aws::String>
139 GetApplicationResult& 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 GetApplicationResult& 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 GetApplicationResult& 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 GetApplicationResult& WithReplicationStatuses(ReplicationStatusesT&& value) {
254 SetReplicationStatuses(std::forward<ReplicationStatusesT>(value));
255 return *this;
256 }
257 template <typename ReplicationStatusesT = ReplicationStatus>
258 GetApplicationResult& 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>
278 GetApplicationResult& WithCreatedAt(CreatedAtT&& value) {
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>
297 GetApplicationResult& WithLastUpdatedAt(LastUpdatedAtT&& value) {
298 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
299 return *this;
300 }
302
304
314 inline const Aws::Vector<Aws::String>& GetAssociatedStreamGroups() const { return m_associatedStreamGroups; }
315 template <typename AssociatedStreamGroupsT = Aws::Vector<Aws::String>>
316 void SetAssociatedStreamGroups(AssociatedStreamGroupsT&& value) {
317 m_associatedStreamGroupsHasBeenSet = true;
318 m_associatedStreamGroups = std::forward<AssociatedStreamGroupsT>(value);
319 }
320 template <typename AssociatedStreamGroupsT = Aws::Vector<Aws::String>>
321 GetApplicationResult& WithAssociatedStreamGroups(AssociatedStreamGroupsT&& value) {
322 SetAssociatedStreamGroups(std::forward<AssociatedStreamGroupsT>(value));
323 return *this;
324 }
325 template <typename AssociatedStreamGroupsT = Aws::String>
326 GetApplicationResult& AddAssociatedStreamGroups(AssociatedStreamGroupsT&& value) {
327 m_associatedStreamGroupsHasBeenSet = true;
328 m_associatedStreamGroups.emplace_back(std::forward<AssociatedStreamGroupsT>(value));
329 return *this;
330 }
332
334
335 inline const Aws::String& GetRequestId() const { return m_requestId; }
336 template <typename RequestIdT = Aws::String>
337 void SetRequestId(RequestIdT&& value) {
338 m_requestIdHasBeenSet = true;
339 m_requestId = std::forward<RequestIdT>(value);
340 }
341 template <typename RequestIdT = Aws::String>
342 GetApplicationResult& WithRequestId(RequestIdT&& value) {
343 SetRequestId(std::forward<RequestIdT>(value));
344 return *this;
345 }
347 private:
348 Aws::String m_arn;
349
350 Aws::String m_description;
351
352 RuntimeEnvironment m_runtimeEnvironment;
353
354 Aws::String m_executablePath;
355
356 Aws::Vector<Aws::String> m_applicationLogPaths;
357
358 Aws::String m_applicationLogOutputUri;
359
360 Aws::String m_applicationSourceUri;
361
362 Aws::String m_id;
363
365
367
368 Aws::Vector<ReplicationStatus> m_replicationStatuses;
369
370 Aws::Utils::DateTime m_createdAt{};
371
372 Aws::Utils::DateTime m_lastUpdatedAt{};
373
374 Aws::Vector<Aws::String> m_associatedStreamGroups;
375
376 Aws::String m_requestId;
377 bool m_arnHasBeenSet = false;
378 bool m_descriptionHasBeenSet = false;
379 bool m_runtimeEnvironmentHasBeenSet = false;
380 bool m_executablePathHasBeenSet = false;
381 bool m_applicationLogPathsHasBeenSet = false;
382 bool m_applicationLogOutputUriHasBeenSet = false;
383 bool m_applicationSourceUriHasBeenSet = false;
384 bool m_idHasBeenSet = false;
385 bool m_statusHasBeenSet = false;
386 bool m_statusReasonHasBeenSet = false;
387 bool m_replicationStatusesHasBeenSet = false;
388 bool m_createdAtHasBeenSet = false;
389 bool m_lastUpdatedAtHasBeenSet = false;
390 bool m_associatedStreamGroupsHasBeenSet = false;
391 bool m_requestIdHasBeenSet = false;
392};
393
394} // namespace Model
395} // namespace GameLiftStreams
396} // 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)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue