AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
StreamSessionSummary.h
1
6#pragma once
7#include <aws/gameliftstreams/GameLiftStreams_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/gameliftstreams/model/ExportFilesMetadata.h>
11#include <aws/gameliftstreams/model/Protocol.h>
12#include <aws/gameliftstreams/model/StreamSessionStatus.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace GameLiftStreams
26{
27namespace Model
28{
29
39 {
40 public:
41 AWS_GAMELIFTSTREAMS_API StreamSessionSummary() = default;
42 AWS_GAMELIFTSTREAMS_API StreamSessionSummary(Aws::Utils::Json::JsonView jsonValue);
43 AWS_GAMELIFTSTREAMS_API StreamSessionSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_GAMELIFTSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
56 inline const Aws::String& GetApplicationArn() const { return m_applicationArn; }
57 inline bool ApplicationArnHasBeenSet() const { return m_applicationArnHasBeenSet; }
58 template<typename ApplicationArnT = Aws::String>
59 void SetApplicationArn(ApplicationArnT&& value) { m_applicationArnHasBeenSet = true; m_applicationArn = std::forward<ApplicationArnT>(value); }
60 template<typename ApplicationArnT = Aws::String>
61 StreamSessionSummary& WithApplicationArn(ApplicationArnT&& value) { SetApplicationArn(std::forward<ApplicationArnT>(value)); return *this;}
63
65
73 inline const Aws::String& GetArn() const { return m_arn; }
74 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
75 template<typename ArnT = Aws::String>
76 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
77 template<typename ArnT = Aws::String>
78 StreamSessionSummary& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
80
82
87 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
88 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
89 template<typename CreatedAtT = Aws::Utils::DateTime>
90 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
91 template<typename CreatedAtT = Aws::Utils::DateTime>
92 StreamSessionSummary& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
94
96
99 inline const ExportFilesMetadata& GetExportFilesMetadata() const { return m_exportFilesMetadata; }
100 inline bool ExportFilesMetadataHasBeenSet() const { return m_exportFilesMetadataHasBeenSet; }
101 template<typename ExportFilesMetadataT = ExportFilesMetadata>
102 void SetExportFilesMetadata(ExportFilesMetadataT&& value) { m_exportFilesMetadataHasBeenSet = true; m_exportFilesMetadata = std::forward<ExportFilesMetadataT>(value); }
103 template<typename ExportFilesMetadataT = ExportFilesMetadata>
104 StreamSessionSummary& WithExportFilesMetadata(ExportFilesMetadataT&& value) { SetExportFilesMetadata(std::forward<ExportFilesMetadataT>(value)); return *this;}
106
108
113 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
114 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
115 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
116 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
117 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
118 StreamSessionSummary& WithLastUpdatedAt(LastUpdatedAtT&& value) { SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value)); return *this;}
120
122
130 inline const Aws::String& GetLocation() const { return m_location; }
131 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
132 template<typename LocationT = Aws::String>
133 void SetLocation(LocationT&& value) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
134 template<typename LocationT = Aws::String>
135 StreamSessionSummary& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
137
139
142 inline Protocol GetProtocol() const { return m_protocol; }
143 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
144 inline void SetProtocol(Protocol value) { m_protocolHasBeenSet = true; m_protocol = value; }
145 inline StreamSessionSummary& WithProtocol(Protocol value) { SetProtocol(value); return *this;}
147
149
163 inline StreamSessionStatus GetStatus() const { return m_status; }
164 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
165 inline void SetStatus(StreamSessionStatus value) { m_statusHasBeenSet = true; m_status = value; }
166 inline StreamSessionSummary& WithStatus(StreamSessionStatus value) { SetStatus(value); return *this;}
168
170
173 inline const Aws::String& GetUserId() const { return m_userId; }
174 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
175 template<typename UserIdT = Aws::String>
176 void SetUserId(UserIdT&& value) { m_userIdHasBeenSet = true; m_userId = std::forward<UserIdT>(value); }
177 template<typename UserIdT = Aws::String>
178 StreamSessionSummary& WithUserId(UserIdT&& value) { SetUserId(std::forward<UserIdT>(value)); return *this;}
180 private:
181
182 Aws::String m_applicationArn;
183 bool m_applicationArnHasBeenSet = false;
184
185 Aws::String m_arn;
186 bool m_arnHasBeenSet = false;
187
188 Aws::Utils::DateTime m_createdAt{};
189 bool m_createdAtHasBeenSet = false;
190
191 ExportFilesMetadata m_exportFilesMetadata;
192 bool m_exportFilesMetadataHasBeenSet = false;
193
194 Aws::Utils::DateTime m_lastUpdatedAt{};
195 bool m_lastUpdatedAtHasBeenSet = false;
196
197 Aws::String m_location;
198 bool m_locationHasBeenSet = false;
199
200 Protocol m_protocol{Protocol::NOT_SET};
201 bool m_protocolHasBeenSet = false;
202
204 bool m_statusHasBeenSet = false;
205
206 Aws::String m_userId;
207 bool m_userIdHasBeenSet = false;
208 };
209
210} // namespace Model
211} // namespace GameLiftStreams
212} // namespace Aws
const Aws::Utils::DateTime & GetCreatedAt() const
StreamSessionSummary & WithStatus(StreamSessionStatus value)
const ExportFilesMetadata & GetExportFilesMetadata() const
AWS_GAMELIFTSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const
StreamSessionSummary & WithCreatedAt(CreatedAtT &&value)
StreamSessionSummary & WithLastUpdatedAt(LastUpdatedAtT &&value)
AWS_GAMELIFTSTREAMS_API StreamSessionSummary(Aws::Utils::Json::JsonView jsonValue)
StreamSessionSummary & WithLocation(LocationT &&value)
void SetExportFilesMetadata(ExportFilesMetadataT &&value)
StreamSessionSummary & WithProtocol(Protocol value)
AWS_GAMELIFTSTREAMS_API StreamSessionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
StreamSessionSummary & WithExportFilesMetadata(ExportFilesMetadataT &&value)
AWS_GAMELIFTSTREAMS_API StreamSessionSummary()=default
StreamSessionSummary & WithUserId(UserIdT &&value)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
StreamSessionSummary & WithApplicationArn(ApplicationArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue