AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
CreateStreamGroupResult.h
1
6#pragma once
7#include <aws/gameliftstreams/GameLiftStreams_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/gameliftstreams/model/DefaultApplication.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/gameliftstreams/model/StreamClass.h>
12#include <aws/gameliftstreams/model/StreamGroupStatus.h>
13#include <aws/gameliftstreams/model/StreamGroupStatusReason.h>
14#include <aws/core/utils/DateTime.h>
15#include <aws/gameliftstreams/model/LocationState.h>
16#include <utility>
17
18namespace Aws
19{
20template<typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils
24{
25namespace Json
26{
27 class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace GameLiftStreams
31{
32namespace Model
33{
35 {
36 public:
37 AWS_GAMELIFTSTREAMS_API CreateStreamGroupResult() = default;
40
41
43
51 inline const Aws::String& GetArn() const { return m_arn; }
52 template<typename ArnT = Aws::String>
53 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
54 template<typename ArnT = Aws::String>
55 CreateStreamGroupResult& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
57
59
62 inline const Aws::String& GetDescription() const { return m_description; }
63 template<typename DescriptionT = Aws::String>
64 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
65 template<typename DescriptionT = Aws::String>
66 CreateStreamGroupResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
68
70
74 inline const DefaultApplication& GetDefaultApplication() const { return m_defaultApplication; }
75 template<typename DefaultApplicationT = DefaultApplication>
76 void SetDefaultApplication(DefaultApplicationT&& value) { m_defaultApplicationHasBeenSet = true; m_defaultApplication = std::forward<DefaultApplicationT>(value); }
77 template<typename DefaultApplicationT = DefaultApplication>
78 CreateStreamGroupResult& WithDefaultApplication(DefaultApplicationT&& value) { SetDefaultApplication(std::forward<DefaultApplicationT>(value)); return *this;}
80
82
96 inline const Aws::Vector<LocationState>& GetLocationStates() const { return m_locationStates; }
97 template<typename LocationStatesT = Aws::Vector<LocationState>>
98 void SetLocationStates(LocationStatesT&& value) { m_locationStatesHasBeenSet = true; m_locationStates = std::forward<LocationStatesT>(value); }
99 template<typename LocationStatesT = Aws::Vector<LocationState>>
100 CreateStreamGroupResult& WithLocationStates(LocationStatesT&& value) { SetLocationStates(std::forward<LocationStatesT>(value)); return *this;}
101 template<typename LocationStatesT = LocationState>
102 CreateStreamGroupResult& AddLocationStates(LocationStatesT&& value) { m_locationStatesHasBeenSet = true; m_locationStates.emplace_back(std::forward<LocationStatesT>(value)); return *this; }
104
106
147 inline StreamClass GetStreamClass() const { return m_streamClass; }
148 inline void SetStreamClass(StreamClass value) { m_streamClassHasBeenSet = true; m_streamClass = value; }
151
153
157 inline const Aws::String& GetId() const { return m_id; }
158 template<typename IdT = Aws::String>
159 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
160 template<typename IdT = Aws::String>
161 CreateStreamGroupResult& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
163
165
179 inline StreamGroupStatus GetStatus() const { return m_status; }
180 inline void SetStatus(StreamGroupStatus value) { m_statusHasBeenSet = true; m_status = value; }
181 inline CreateStreamGroupResult& WithStatus(StreamGroupStatus value) { SetStatus(value); return *this;}
183
185
196 inline StreamGroupStatusReason GetStatusReason() const { return m_statusReason; }
197 inline void SetStatusReason(StreamGroupStatusReason value) { m_statusReasonHasBeenSet = true; m_statusReason = value; }
200
202
207 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
208 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
209 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
210 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
211 CreateStreamGroupResult& WithLastUpdatedAt(LastUpdatedAtT&& value) { SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value)); return *this;}
213
215
220 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
221 template<typename CreatedAtT = Aws::Utils::DateTime>
222 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
223 template<typename CreatedAtT = Aws::Utils::DateTime>
224 CreateStreamGroupResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
226
228
238 inline const Aws::Vector<Aws::String>& GetAssociatedApplications() const { return m_associatedApplications; }
239 template<typename AssociatedApplicationsT = Aws::Vector<Aws::String>>
240 void SetAssociatedApplications(AssociatedApplicationsT&& value) { m_associatedApplicationsHasBeenSet = true; m_associatedApplications = std::forward<AssociatedApplicationsT>(value); }
241 template<typename AssociatedApplicationsT = Aws::Vector<Aws::String>>
242 CreateStreamGroupResult& WithAssociatedApplications(AssociatedApplicationsT&& value) { SetAssociatedApplications(std::forward<AssociatedApplicationsT>(value)); return *this;}
243 template<typename AssociatedApplicationsT = Aws::String>
244 CreateStreamGroupResult& AddAssociatedApplications(AssociatedApplicationsT&& value) { m_associatedApplicationsHasBeenSet = true; m_associatedApplications.emplace_back(std::forward<AssociatedApplicationsT>(value)); return *this; }
246
248
249 inline const Aws::String& GetRequestId() const { return m_requestId; }
250 template<typename RequestIdT = Aws::String>
251 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
252 template<typename RequestIdT = Aws::String>
253 CreateStreamGroupResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
255 private:
256
257 Aws::String m_arn;
258 bool m_arnHasBeenSet = false;
259
260 Aws::String m_description;
261 bool m_descriptionHasBeenSet = false;
262
263 DefaultApplication m_defaultApplication;
264 bool m_defaultApplicationHasBeenSet = false;
265
266 Aws::Vector<LocationState> m_locationStates;
267 bool m_locationStatesHasBeenSet = false;
268
269 StreamClass m_streamClass{StreamClass::NOT_SET};
270 bool m_streamClassHasBeenSet = false;
271
272 Aws::String m_id;
273 bool m_idHasBeenSet = false;
274
276 bool m_statusHasBeenSet = false;
277
279 bool m_statusReasonHasBeenSet = false;
280
281 Aws::Utils::DateTime m_lastUpdatedAt{};
282 bool m_lastUpdatedAtHasBeenSet = false;
283
284 Aws::Utils::DateTime m_createdAt{};
285 bool m_createdAtHasBeenSet = false;
286
287 Aws::Vector<Aws::String> m_associatedApplications;
288 bool m_associatedApplicationsHasBeenSet = false;
289
290 Aws::String m_requestId;
291 bool m_requestIdHasBeenSet = false;
292 };
293
294} // namespace Model
295} // namespace GameLiftStreams
296} // namespace Aws
CreateStreamGroupResult & WithStreamClass(StreamClass value)
const Aws::Vector< LocationState > & GetLocationStates() const
const Aws::Vector< Aws::String > & GetAssociatedApplications() const
CreateStreamGroupResult & WithLastUpdatedAt(LastUpdatedAtT &&value)
AWS_GAMELIFTSTREAMS_API CreateStreamGroupResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetAssociatedApplications(AssociatedApplicationsT &&value)
CreateStreamGroupResult & WithLocationStates(LocationStatesT &&value)
CreateStreamGroupResult & WithCreatedAt(CreatedAtT &&value)
CreateStreamGroupResult & AddAssociatedApplications(AssociatedApplicationsT &&value)
CreateStreamGroupResult & WithStatusReason(StreamGroupStatusReason value)
CreateStreamGroupResult & AddLocationStates(LocationStatesT &&value)
AWS_GAMELIFTSTREAMS_API CreateStreamGroupResult()=default
AWS_GAMELIFTSTREAMS_API CreateStreamGroupResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateStreamGroupResult & WithStatus(StreamGroupStatus value)
CreateStreamGroupResult & WithRequestId(RequestIdT &&value)
CreateStreamGroupResult & WithDefaultApplication(DefaultApplicationT &&value)
CreateStreamGroupResult & WithAssociatedApplications(AssociatedApplicationsT &&value)
CreateStreamGroupResult & WithDescription(DescriptionT &&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