AWS SDK for C++

AWS SDK for C++ Version 1.11.637

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/gameliftstreams/model/StreamSessionStatus.h>
10#include <aws/gameliftstreams/model/Protocol.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/gameliftstreams/model/ExportFilesMetadata.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& GetArn() const { return m_arn; }
57 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
58 template<typename ArnT = Aws::String>
59 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
60 template<typename ArnT = Aws::String>
61 StreamSessionSummary& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
63
65
68 inline const Aws::String& GetUserId() const { return m_userId; }
69 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
70 template<typename UserIdT = Aws::String>
71 void SetUserId(UserIdT&& value) { m_userIdHasBeenSet = true; m_userId = std::forward<UserIdT>(value); }
72 template<typename UserIdT = Aws::String>
73 StreamSessionSummary& WithUserId(UserIdT&& value) { SetUserId(std::forward<UserIdT>(value)); return *this;}
75
77
103 inline StreamSessionStatus GetStatus() const { return m_status; }
104 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
105 inline void SetStatus(StreamSessionStatus value) { m_statusHasBeenSet = true; m_status = value; }
106 inline StreamSessionSummary& WithStatus(StreamSessionStatus value) { SetStatus(value); return *this;}
108
110
113 inline Protocol GetProtocol() const { return m_protocol; }
114 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
115 inline void SetProtocol(Protocol value) { m_protocolHasBeenSet = true; m_protocol = value; }
116 inline StreamSessionSummary& WithProtocol(Protocol value) { SetProtocol(value); return *this;}
118
120
125 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
126 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
127 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
128 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
129 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
130 StreamSessionSummary& WithLastUpdatedAt(LastUpdatedAtT&& value) { SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value)); return *this;}
132
134
139 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
140 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
141 template<typename CreatedAtT = Aws::Utils::DateTime>
142 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
143 template<typename CreatedAtT = Aws::Utils::DateTime>
144 StreamSessionSummary& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
146
148
156 inline const Aws::String& GetApplicationArn() const { return m_applicationArn; }
157 inline bool ApplicationArnHasBeenSet() const { return m_applicationArnHasBeenSet; }
158 template<typename ApplicationArnT = Aws::String>
159 void SetApplicationArn(ApplicationArnT&& value) { m_applicationArnHasBeenSet = true; m_applicationArn = std::forward<ApplicationArnT>(value); }
160 template<typename ApplicationArnT = Aws::String>
161 StreamSessionSummary& WithApplicationArn(ApplicationArnT&& value) { SetApplicationArn(std::forward<ApplicationArnT>(value)); return *this;}
163
165
168 inline const ExportFilesMetadata& GetExportFilesMetadata() const { return m_exportFilesMetadata; }
169 inline bool ExportFilesMetadataHasBeenSet() const { return m_exportFilesMetadataHasBeenSet; }
170 template<typename ExportFilesMetadataT = ExportFilesMetadata>
171 void SetExportFilesMetadata(ExportFilesMetadataT&& value) { m_exportFilesMetadataHasBeenSet = true; m_exportFilesMetadata = std::forward<ExportFilesMetadataT>(value); }
172 template<typename ExportFilesMetadataT = ExportFilesMetadata>
173 StreamSessionSummary& WithExportFilesMetadata(ExportFilesMetadataT&& value) { SetExportFilesMetadata(std::forward<ExportFilesMetadataT>(value)); return *this;}
175
177
185 inline const Aws::String& GetLocation() const { return m_location; }
186 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
187 template<typename LocationT = Aws::String>
188 void SetLocation(LocationT&& value) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
189 template<typename LocationT = Aws::String>
190 StreamSessionSummary& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
192 private:
193
194 Aws::String m_arn;
195 bool m_arnHasBeenSet = false;
196
197 Aws::String m_userId;
198 bool m_userIdHasBeenSet = false;
199
201 bool m_statusHasBeenSet = false;
202
203 Protocol m_protocol{Protocol::NOT_SET};
204 bool m_protocolHasBeenSet = false;
205
206 Aws::Utils::DateTime m_lastUpdatedAt{};
207 bool m_lastUpdatedAtHasBeenSet = false;
208
209 Aws::Utils::DateTime m_createdAt{};
210 bool m_createdAtHasBeenSet = false;
211
212 Aws::String m_applicationArn;
213 bool m_applicationArnHasBeenSet = false;
214
215 ExportFilesMetadata m_exportFilesMetadata;
216 bool m_exportFilesMetadataHasBeenSet = false;
217
218 Aws::String m_location;
219 bool m_locationHasBeenSet = false;
220 };
221
222} // namespace Model
223} // namespace GameLiftStreams
224} // 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