AWS SDK for C++

AWS SDK for C++ Version 1.11.788

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
88 inline const RuntimeEnvironment& GetRuntimeEnvironment() const { return m_runtimeEnvironment; }
89 template <typename RuntimeEnvironmentT = RuntimeEnvironment>
90 void SetRuntimeEnvironment(RuntimeEnvironmentT&& value) {
91 m_runtimeEnvironmentHasBeenSet = true;
92 m_runtimeEnvironment = std::forward<RuntimeEnvironmentT>(value);
93 }
94 template <typename RuntimeEnvironmentT = RuntimeEnvironment>
95 GetApplicationResult& WithRuntimeEnvironment(RuntimeEnvironmentT&& value) {
96 SetRuntimeEnvironment(std::forward<RuntimeEnvironmentT>(value));
97 return *this;
98 }
100
102
106 inline const Aws::String& GetExecutablePath() const { return m_executablePath; }
107 template <typename ExecutablePathT = Aws::String>
108 void SetExecutablePath(ExecutablePathT&& value) {
109 m_executablePathHasBeenSet = true;
110 m_executablePath = std::forward<ExecutablePathT>(value);
111 }
112 template <typename ExecutablePathT = Aws::String>
113 GetApplicationResult& WithExecutablePath(ExecutablePathT&& value) {
114 SetExecutablePath(std::forward<ExecutablePathT>(value));
115 return *this;
116 }
118
120
128 inline const Aws::Vector<Aws::String>& GetApplicationLogPaths() const { return m_applicationLogPaths; }
129 template <typename ApplicationLogPathsT = Aws::Vector<Aws::String>>
130 void SetApplicationLogPaths(ApplicationLogPathsT&& value) {
131 m_applicationLogPathsHasBeenSet = true;
132 m_applicationLogPaths = std::forward<ApplicationLogPathsT>(value);
133 }
134 template <typename ApplicationLogPathsT = Aws::Vector<Aws::String>>
135 GetApplicationResult& WithApplicationLogPaths(ApplicationLogPathsT&& value) {
136 SetApplicationLogPaths(std::forward<ApplicationLogPathsT>(value));
137 return *this;
138 }
139 template <typename ApplicationLogPathsT = Aws::String>
140 GetApplicationResult& AddApplicationLogPaths(ApplicationLogPathsT&& value) {
141 m_applicationLogPathsHasBeenSet = true;
142 m_applicationLogPaths.emplace_back(std::forward<ApplicationLogPathsT>(value));
143 return *this;
144 }
146
148
153 inline const Aws::String& GetApplicationLogOutputUri() const { return m_applicationLogOutputUri; }
154 template <typename ApplicationLogOutputUriT = Aws::String>
155 void SetApplicationLogOutputUri(ApplicationLogOutputUriT&& value) {
156 m_applicationLogOutputUriHasBeenSet = true;
157 m_applicationLogOutputUri = std::forward<ApplicationLogOutputUriT>(value);
158 }
159 template <typename ApplicationLogOutputUriT = Aws::String>
160 GetApplicationResult& WithApplicationLogOutputUri(ApplicationLogOutputUriT&& value) {
161 SetApplicationLogOutputUri(std::forward<ApplicationLogOutputUriT>(value));
162 return *this;
163 }
165
167
171 inline const Aws::String& GetApplicationSourceUri() const { return m_applicationSourceUri; }
172 template <typename ApplicationSourceUriT = Aws::String>
173 void SetApplicationSourceUri(ApplicationSourceUriT&& value) {
174 m_applicationSourceUriHasBeenSet = true;
175 m_applicationSourceUri = std::forward<ApplicationSourceUriT>(value);
176 }
177 template <typename ApplicationSourceUriT = Aws::String>
178 GetApplicationResult& WithApplicationSourceUri(ApplicationSourceUriT&& value) {
179 SetApplicationSourceUri(std::forward<ApplicationSourceUriT>(value));
180 return *this;
181 }
183
185
189 inline const Aws::String& GetId() const { return m_id; }
190 template <typename IdT = Aws::String>
191 void SetId(IdT&& value) {
192 m_idHasBeenSet = true;
193 m_id = std::forward<IdT>(value);
194 }
195 template <typename IdT = Aws::String>
197 SetId(std::forward<IdT>(value));
198 return *this;
199 }
201
203
216 inline ApplicationStatus GetStatus() const { return m_status; }
217 inline void SetStatus(ApplicationStatus value) {
218 m_statusHasBeenSet = true;
219 m_status = value;
220 }
222 SetStatus(value);
223 return *this;
224 }
226
228
232 inline ApplicationStatusReason GetStatusReason() const { return m_statusReason; }
234 m_statusReasonHasBeenSet = true;
235 m_statusReason = value;
236 }
238 SetStatusReason(value);
239 return *this;
240 }
242
244
247 inline const Aws::Vector<ReplicationStatus>& GetReplicationStatuses() const { return m_replicationStatuses; }
248 template <typename ReplicationStatusesT = Aws::Vector<ReplicationStatus>>
249 void SetReplicationStatuses(ReplicationStatusesT&& value) {
250 m_replicationStatusesHasBeenSet = true;
251 m_replicationStatuses = std::forward<ReplicationStatusesT>(value);
252 }
253 template <typename ReplicationStatusesT = Aws::Vector<ReplicationStatus>>
254 GetApplicationResult& WithReplicationStatuses(ReplicationStatusesT&& value) {
255 SetReplicationStatuses(std::forward<ReplicationStatusesT>(value));
256 return *this;
257 }
258 template <typename ReplicationStatusesT = ReplicationStatus>
259 GetApplicationResult& AddReplicationStatuses(ReplicationStatusesT&& value) {
260 m_replicationStatusesHasBeenSet = true;
261 m_replicationStatuses.emplace_back(std::forward<ReplicationStatusesT>(value));
262 return *this;
263 }
265
267
272 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
273 template <typename CreatedAtT = Aws::Utils::DateTime>
274 void SetCreatedAt(CreatedAtT&& value) {
275 m_createdAtHasBeenSet = true;
276 m_createdAt = std::forward<CreatedAtT>(value);
277 }
278 template <typename CreatedAtT = Aws::Utils::DateTime>
279 GetApplicationResult& WithCreatedAt(CreatedAtT&& value) {
280 SetCreatedAt(std::forward<CreatedAtT>(value));
281 return *this;
282 }
284
286
291 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
292 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
293 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
294 m_lastUpdatedAtHasBeenSet = true;
295 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
296 }
297 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
298 GetApplicationResult& WithLastUpdatedAt(LastUpdatedAtT&& value) {
299 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
300 return *this;
301 }
303
305
315 inline const Aws::Vector<Aws::String>& GetAssociatedStreamGroups() const { return m_associatedStreamGroups; }
316 template <typename AssociatedStreamGroupsT = Aws::Vector<Aws::String>>
317 void SetAssociatedStreamGroups(AssociatedStreamGroupsT&& value) {
318 m_associatedStreamGroupsHasBeenSet = true;
319 m_associatedStreamGroups = std::forward<AssociatedStreamGroupsT>(value);
320 }
321 template <typename AssociatedStreamGroupsT = Aws::Vector<Aws::String>>
322 GetApplicationResult& WithAssociatedStreamGroups(AssociatedStreamGroupsT&& value) {
323 SetAssociatedStreamGroups(std::forward<AssociatedStreamGroupsT>(value));
324 return *this;
325 }
326 template <typename AssociatedStreamGroupsT = Aws::String>
327 GetApplicationResult& AddAssociatedStreamGroups(AssociatedStreamGroupsT&& value) {
328 m_associatedStreamGroupsHasBeenSet = true;
329 m_associatedStreamGroups.emplace_back(std::forward<AssociatedStreamGroupsT>(value));
330 return *this;
331 }
333
335
336 inline const Aws::String& GetRequestId() const { return m_requestId; }
337 template <typename RequestIdT = Aws::String>
338 void SetRequestId(RequestIdT&& value) {
339 m_requestIdHasBeenSet = true;
340 m_requestId = std::forward<RequestIdT>(value);
341 }
342 template <typename RequestIdT = Aws::String>
343 GetApplicationResult& WithRequestId(RequestIdT&& value) {
344 SetRequestId(std::forward<RequestIdT>(value));
345 return *this;
346 }
348 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
349
350 private:
351 Aws::String m_arn;
352
353 Aws::String m_description;
354
355 RuntimeEnvironment m_runtimeEnvironment;
356
357 Aws::String m_executablePath;
358
359 Aws::Vector<Aws::String> m_applicationLogPaths;
360
361 Aws::String m_applicationLogOutputUri;
362
363 Aws::String m_applicationSourceUri;
364
365 Aws::String m_id;
366
368
370
371 Aws::Vector<ReplicationStatus> m_replicationStatuses;
372
373 Aws::Utils::DateTime m_createdAt{};
374
375 Aws::Utils::DateTime m_lastUpdatedAt{};
376
377 Aws::Vector<Aws::String> m_associatedStreamGroups;
378
379 Aws::String m_requestId;
380 Aws::Http::HttpResponseCode m_HttpResponseCode;
381 bool m_arnHasBeenSet = false;
382 bool m_descriptionHasBeenSet = false;
383 bool m_runtimeEnvironmentHasBeenSet = false;
384 bool m_executablePathHasBeenSet = false;
385 bool m_applicationLogPathsHasBeenSet = false;
386 bool m_applicationLogOutputUriHasBeenSet = false;
387 bool m_applicationSourceUriHasBeenSet = false;
388 bool m_idHasBeenSet = false;
389 bool m_statusHasBeenSet = false;
390 bool m_statusReasonHasBeenSet = false;
391 bool m_replicationStatusesHasBeenSet = false;
392 bool m_createdAtHasBeenSet = false;
393 bool m_lastUpdatedAtHasBeenSet = false;
394 bool m_associatedStreamGroupsHasBeenSet = false;
395 bool m_requestIdHasBeenSet = false;
396};
397
398} // namespace Model
399} // namespace GameLiftStreams
400} // 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