AWS SDK for C++

AWS SDK for C++ Version 1.11.764

Loading...
Searching...
No Matches
StreamInfo.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/iot/IoT_EXPORTS.h>
11#include <aws/iot/model/StreamFile.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoT {
23namespace Model {
24
31 public:
32 AWS_IOT_API StreamInfo() = default;
33 AWS_IOT_API StreamInfo(Aws::Utils::Json::JsonView jsonValue);
36
38
41 inline const Aws::String& GetStreamId() const { return m_streamId; }
42 inline bool StreamIdHasBeenSet() const { return m_streamIdHasBeenSet; }
43 template <typename StreamIdT = Aws::String>
44 void SetStreamId(StreamIdT&& value) {
45 m_streamIdHasBeenSet = true;
46 m_streamId = std::forward<StreamIdT>(value);
47 }
48 template <typename StreamIdT = Aws::String>
49 StreamInfo& WithStreamId(StreamIdT&& value) {
50 SetStreamId(std::forward<StreamIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetStreamArn() const { return m_streamArn; }
60 inline bool StreamArnHasBeenSet() const { return m_streamArnHasBeenSet; }
61 template <typename StreamArnT = Aws::String>
62 void SetStreamArn(StreamArnT&& value) {
63 m_streamArnHasBeenSet = true;
64 m_streamArn = std::forward<StreamArnT>(value);
65 }
66 template <typename StreamArnT = Aws::String>
67 StreamInfo& WithStreamArn(StreamArnT&& value) {
68 SetStreamArn(std::forward<StreamArnT>(value));
69 return *this;
70 }
72
74
77 inline int GetStreamVersion() const { return m_streamVersion; }
78 inline bool StreamVersionHasBeenSet() const { return m_streamVersionHasBeenSet; }
79 inline void SetStreamVersion(int value) {
80 m_streamVersionHasBeenSet = true;
81 m_streamVersion = value;
82 }
83 inline StreamInfo& WithStreamVersion(int value) {
84 SetStreamVersion(value);
85 return *this;
86 }
88
90
93 inline const Aws::String& GetDescription() const { return m_description; }
94 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
95 template <typename DescriptionT = Aws::String>
96 void SetDescription(DescriptionT&& value) {
97 m_descriptionHasBeenSet = true;
98 m_description = std::forward<DescriptionT>(value);
99 }
100 template <typename DescriptionT = Aws::String>
101 StreamInfo& WithDescription(DescriptionT&& value) {
102 SetDescription(std::forward<DescriptionT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::Vector<StreamFile>& GetFiles() const { return m_files; }
112 inline bool FilesHasBeenSet() const { return m_filesHasBeenSet; }
113 template <typename FilesT = Aws::Vector<StreamFile>>
114 void SetFiles(FilesT&& value) {
115 m_filesHasBeenSet = true;
116 m_files = std::forward<FilesT>(value);
117 }
118 template <typename FilesT = Aws::Vector<StreamFile>>
119 StreamInfo& WithFiles(FilesT&& value) {
120 SetFiles(std::forward<FilesT>(value));
121 return *this;
122 }
123 template <typename FilesT = StreamFile>
124 StreamInfo& AddFiles(FilesT&& value) {
125 m_filesHasBeenSet = true;
126 m_files.emplace_back(std::forward<FilesT>(value));
127 return *this;
128 }
130
132
135 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
136 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
137 template <typename CreatedAtT = Aws::Utils::DateTime>
138 void SetCreatedAt(CreatedAtT&& value) {
139 m_createdAtHasBeenSet = true;
140 m_createdAt = std::forward<CreatedAtT>(value);
141 }
142 template <typename CreatedAtT = Aws::Utils::DateTime>
143 StreamInfo& WithCreatedAt(CreatedAtT&& value) {
144 SetCreatedAt(std::forward<CreatedAtT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
154 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
155 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
156 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
157 m_lastUpdatedAtHasBeenSet = true;
158 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
159 }
160 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
161 StreamInfo& WithLastUpdatedAt(LastUpdatedAtT&& value) {
162 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
163 return *this;
164 }
166
168
171 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
172 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
173 template <typename RoleArnT = Aws::String>
174 void SetRoleArn(RoleArnT&& value) {
175 m_roleArnHasBeenSet = true;
176 m_roleArn = std::forward<RoleArnT>(value);
177 }
178 template <typename RoleArnT = Aws::String>
179 StreamInfo& WithRoleArn(RoleArnT&& value) {
180 SetRoleArn(std::forward<RoleArnT>(value));
181 return *this;
182 }
184 private:
185 Aws::String m_streamId;
186
187 Aws::String m_streamArn;
188
189 int m_streamVersion{0};
190
191 Aws::String m_description;
192
194
195 Aws::Utils::DateTime m_createdAt{};
196
197 Aws::Utils::DateTime m_lastUpdatedAt{};
198
199 Aws::String m_roleArn;
200 bool m_streamIdHasBeenSet = false;
201 bool m_streamArnHasBeenSet = false;
202 bool m_streamVersionHasBeenSet = false;
203 bool m_descriptionHasBeenSet = false;
204 bool m_filesHasBeenSet = false;
205 bool m_createdAtHasBeenSet = false;
206 bool m_lastUpdatedAtHasBeenSet = false;
207 bool m_roleArnHasBeenSet = false;
208};
209
210} // namespace Model
211} // namespace IoT
212} // namespace Aws
bool StreamVersionHasBeenSet() const
Definition StreamInfo.h:78
StreamInfo & WithDescription(DescriptionT &&value)
Definition StreamInfo.h:101
AWS_IOT_API StreamInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCreatedAt(CreatedAtT &&value)
Definition StreamInfo.h:138
StreamInfo & WithFiles(FilesT &&value)
Definition StreamInfo.h:119
void SetFiles(FilesT &&value)
Definition StreamInfo.h:114
void SetStreamVersion(int value)
Definition StreamInfo.h:79
void SetDescription(DescriptionT &&value)
Definition StreamInfo.h:96
StreamInfo & AddFiles(FilesT &&value)
Definition StreamInfo.h:124
AWS_IOT_API StreamInfo()=default
StreamInfo & WithStreamId(StreamIdT &&value)
Definition StreamInfo.h:49
const Aws::Vector< StreamFile > & GetFiles() const
Definition StreamInfo.h:111
StreamInfo & WithStreamVersion(int value)
Definition StreamInfo.h:83
bool LastUpdatedAtHasBeenSet() const
Definition StreamInfo.h:154
const Aws::Utils::DateTime & GetLastUpdatedAt() const
Definition StreamInfo.h:153
const Aws::String & GetRoleArn() const
Definition StreamInfo.h:171
bool CreatedAtHasBeenSet() const
Definition StreamInfo.h:136
bool DescriptionHasBeenSet() const
Definition StreamInfo.h:94
const Aws::String & GetStreamId() const
Definition StreamInfo.h:41
AWS_IOT_API StreamInfo(Aws::Utils::Json::JsonView jsonValue)
void SetLastUpdatedAt(LastUpdatedAtT &&value)
Definition StreamInfo.h:156
StreamInfo & WithCreatedAt(CreatedAtT &&value)
Definition StreamInfo.h:143
bool StreamArnHasBeenSet() const
Definition StreamInfo.h:60
void SetStreamId(StreamIdT &&value)
Definition StreamInfo.h:44
void SetRoleArn(RoleArnT &&value)
Definition StreamInfo.h:174
void SetStreamArn(StreamArnT &&value)
Definition StreamInfo.h:62
const Aws::Utils::DateTime & GetCreatedAt() const
Definition StreamInfo.h:135
StreamInfo & WithRoleArn(RoleArnT &&value)
Definition StreamInfo.h:179
StreamInfo & WithLastUpdatedAt(LastUpdatedAtT &&value)
Definition StreamInfo.h:161
const Aws::String & GetDescription() const
Definition StreamInfo.h:93
bool StreamIdHasBeenSet() const
Definition StreamInfo.h:42
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetStreamArn() const
Definition StreamInfo.h:59
StreamInfo & WithStreamArn(StreamArnT &&value)
Definition StreamInfo.h:67
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue