AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
Stream.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoT_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace IoT {
20namespace Model {
21
27class Stream {
28 public:
29 AWS_IOT_API Stream() = default;
30 AWS_IOT_API Stream(Aws::Utils::Json::JsonView jsonValue);
33
35
38 inline const Aws::String& GetStreamId() const { return m_streamId; }
39 inline bool StreamIdHasBeenSet() const { return m_streamIdHasBeenSet; }
40 template <typename StreamIdT = Aws::String>
41 void SetStreamId(StreamIdT&& value) {
42 m_streamIdHasBeenSet = true;
43 m_streamId = std::forward<StreamIdT>(value);
44 }
45 template <typename StreamIdT = Aws::String>
46 Stream& WithStreamId(StreamIdT&& value) {
47 SetStreamId(std::forward<StreamIdT>(value));
48 return *this;
49 }
51
53
56 inline int GetFileId() const { return m_fileId; }
57 inline bool FileIdHasBeenSet() const { return m_fileIdHasBeenSet; }
58 inline void SetFileId(int value) {
59 m_fileIdHasBeenSet = true;
60 m_fileId = value;
61 }
62 inline Stream& WithFileId(int value) {
63 SetFileId(value);
64 return *this;
65 }
67 private:
68 Aws::String m_streamId;
69
70 int m_fileId{0};
71 bool m_streamIdHasBeenSet = false;
72 bool m_fileIdHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace IoT
77} // namespace Aws
AWS_IOT_API Stream()=default
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
int GetFileId() const
Definition Stream.h:56
const Aws::String & GetStreamId() const
Definition Stream.h:38
bool StreamIdHasBeenSet() const
Definition Stream.h:39
Stream & WithStreamId(StreamIdT &&value)
Definition Stream.h:46
void SetFileId(int value)
Definition Stream.h:58
Stream & WithFileId(int value)
Definition Stream.h:62
AWS_IOT_API Stream & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStreamId(StreamIdT &&value)
Definition Stream.h:41
bool FileIdHasBeenSet() const
Definition Stream.h:57
AWS_IOT_API Stream(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue