AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
StreamInfo.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/iot/model/StreamFile.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace IoT
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_IOT_API StreamInfo() = default;
38 AWS_IOT_API StreamInfo(Aws::Utils::Json::JsonView jsonValue);
41
42
44
47 inline const Aws::String& GetStreamId() const { return m_streamId; }
48 inline bool StreamIdHasBeenSet() const { return m_streamIdHasBeenSet; }
49 template<typename StreamIdT = Aws::String>
50 void SetStreamId(StreamIdT&& value) { m_streamIdHasBeenSet = true; m_streamId = std::forward<StreamIdT>(value); }
51 template<typename StreamIdT = Aws::String>
52 StreamInfo& WithStreamId(StreamIdT&& value) { SetStreamId(std::forward<StreamIdT>(value)); return *this;}
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) { m_streamArnHasBeenSet = true; m_streamArn = std::forward<StreamArnT>(value); }
63 template<typename StreamArnT = Aws::String>
64 StreamInfo& WithStreamArn(StreamArnT&& value) { SetStreamArn(std::forward<StreamArnT>(value)); return *this;}
66
68
71 inline int GetStreamVersion() const { return m_streamVersion; }
72 inline bool StreamVersionHasBeenSet() const { return m_streamVersionHasBeenSet; }
73 inline void SetStreamVersion(int value) { m_streamVersionHasBeenSet = true; m_streamVersion = value; }
74 inline StreamInfo& WithStreamVersion(int value) { SetStreamVersion(value); return *this;}
76
78
81 inline const Aws::String& GetDescription() const { return m_description; }
82 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
83 template<typename DescriptionT = Aws::String>
84 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
85 template<typename DescriptionT = Aws::String>
86 StreamInfo& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
88
90
93 inline const Aws::Vector<StreamFile>& GetFiles() const { return m_files; }
94 inline bool FilesHasBeenSet() const { return m_filesHasBeenSet; }
95 template<typename FilesT = Aws::Vector<StreamFile>>
96 void SetFiles(FilesT&& value) { m_filesHasBeenSet = true; m_files = std::forward<FilesT>(value); }
97 template<typename FilesT = Aws::Vector<StreamFile>>
98 StreamInfo& WithFiles(FilesT&& value) { SetFiles(std::forward<FilesT>(value)); return *this;}
99 template<typename FilesT = StreamFile>
100 StreamInfo& AddFiles(FilesT&& value) { m_filesHasBeenSet = true; m_files.emplace_back(std::forward<FilesT>(value)); return *this; }
102
104
107 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
108 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
109 template<typename CreatedAtT = Aws::Utils::DateTime>
110 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
111 template<typename CreatedAtT = Aws::Utils::DateTime>
112 StreamInfo& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
114
116
119 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
120 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
121 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
122 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
123 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
124 StreamInfo& WithLastUpdatedAt(LastUpdatedAtT&& value) { SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value)); return *this;}
126
128
131 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
132 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
133 template<typename RoleArnT = Aws::String>
134 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
135 template<typename RoleArnT = Aws::String>
136 StreamInfo& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
138 private:
139
140 Aws::String m_streamId;
141 bool m_streamIdHasBeenSet = false;
142
143 Aws::String m_streamArn;
144 bool m_streamArnHasBeenSet = false;
145
146 int m_streamVersion{0};
147 bool m_streamVersionHasBeenSet = false;
148
149 Aws::String m_description;
150 bool m_descriptionHasBeenSet = false;
151
153 bool m_filesHasBeenSet = false;
154
155 Aws::Utils::DateTime m_createdAt{};
156 bool m_createdAtHasBeenSet = false;
157
158 Aws::Utils::DateTime m_lastUpdatedAt{};
159 bool m_lastUpdatedAtHasBeenSet = false;
160
161 Aws::String m_roleArn;
162 bool m_roleArnHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace IoT
167} // namespace Aws
bool StreamVersionHasBeenSet() const
Definition StreamInfo.h:72
StreamInfo & WithDescription(DescriptionT &&value)
Definition StreamInfo.h:86
AWS_IOT_API StreamInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCreatedAt(CreatedAtT &&value)
Definition StreamInfo.h:110
StreamInfo & WithFiles(FilesT &&value)
Definition StreamInfo.h:98
void SetFiles(FilesT &&value)
Definition StreamInfo.h:96
void SetStreamVersion(int value)
Definition StreamInfo.h:73
void SetDescription(DescriptionT &&value)
Definition StreamInfo.h:84
StreamInfo & AddFiles(FilesT &&value)
Definition StreamInfo.h:100
AWS_IOT_API StreamInfo()=default
StreamInfo & WithStreamId(StreamIdT &&value)
Definition StreamInfo.h:52
const Aws::Vector< StreamFile > & GetFiles() const
Definition StreamInfo.h:93
StreamInfo & WithStreamVersion(int value)
Definition StreamInfo.h:74
bool LastUpdatedAtHasBeenSet() const
Definition StreamInfo.h:120
const Aws::Utils::DateTime & GetLastUpdatedAt() const
Definition StreamInfo.h:119
const Aws::String & GetRoleArn() const
Definition StreamInfo.h:131
bool CreatedAtHasBeenSet() const
Definition StreamInfo.h:108
bool DescriptionHasBeenSet() const
Definition StreamInfo.h:82
const Aws::String & GetStreamId() const
Definition StreamInfo.h:47
AWS_IOT_API StreamInfo(Aws::Utils::Json::JsonView jsonValue)
void SetLastUpdatedAt(LastUpdatedAtT &&value)
Definition StreamInfo.h:122
StreamInfo & WithCreatedAt(CreatedAtT &&value)
Definition StreamInfo.h:112
bool StreamArnHasBeenSet() const
Definition StreamInfo.h:60
void SetStreamId(StreamIdT &&value)
Definition StreamInfo.h:50
void SetRoleArn(RoleArnT &&value)
Definition StreamInfo.h:134
void SetStreamArn(StreamArnT &&value)
Definition StreamInfo.h:62
const Aws::Utils::DateTime & GetCreatedAt() const
Definition StreamInfo.h:107
StreamInfo & WithRoleArn(RoleArnT &&value)
Definition StreamInfo.h:136
StreamInfo & WithLastUpdatedAt(LastUpdatedAtT &&value)
Definition StreamInfo.h:124
const Aws::String & GetDescription() const
Definition StreamInfo.h:81
bool StreamIdHasBeenSet() const
Definition StreamInfo.h:48
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:64
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue