AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Stream.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/keyspacesstreams/KeyspacesStreams_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace KeyspacesStreams {
20namespace Model {
21
28class Stream {
29 public:
30 AWS_KEYSPACESSTREAMS_API Stream() = default;
31 AWS_KEYSPACESSTREAMS_API Stream(Aws::Utils::Json::JsonView jsonValue);
32 AWS_KEYSPACESSTREAMS_API Stream& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_KEYSPACESSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetStreamArn() const { return m_streamArn; }
40 inline bool StreamArnHasBeenSet() const { return m_streamArnHasBeenSet; }
41 template <typename StreamArnT = Aws::String>
42 void SetStreamArn(StreamArnT&& value) {
43 m_streamArnHasBeenSet = true;
44 m_streamArn = std::forward<StreamArnT>(value);
45 }
46 template <typename StreamArnT = Aws::String>
47 Stream& WithStreamArn(StreamArnT&& value) {
48 SetStreamArn(std::forward<StreamArnT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetKeyspaceName() const { return m_keyspaceName; }
59 inline bool KeyspaceNameHasBeenSet() const { return m_keyspaceNameHasBeenSet; }
60 template <typename KeyspaceNameT = Aws::String>
61 void SetKeyspaceName(KeyspaceNameT&& value) {
62 m_keyspaceNameHasBeenSet = true;
63 m_keyspaceName = std::forward<KeyspaceNameT>(value);
64 }
65 template <typename KeyspaceNameT = Aws::String>
66 Stream& WithKeyspaceName(KeyspaceNameT&& value) {
67 SetKeyspaceName(std::forward<KeyspaceNameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetTableName() const { return m_tableName; }
77 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
78 template <typename TableNameT = Aws::String>
79 void SetTableName(TableNameT&& value) {
80 m_tableNameHasBeenSet = true;
81 m_tableName = std::forward<TableNameT>(value);
82 }
83 template <typename TableNameT = Aws::String>
84 Stream& WithTableName(TableNameT&& value) {
85 SetTableName(std::forward<TableNameT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::String& GetStreamLabel() const { return m_streamLabel; }
96 inline bool StreamLabelHasBeenSet() const { return m_streamLabelHasBeenSet; }
97 template <typename StreamLabelT = Aws::String>
98 void SetStreamLabel(StreamLabelT&& value) {
99 m_streamLabelHasBeenSet = true;
100 m_streamLabel = std::forward<StreamLabelT>(value);
101 }
102 template <typename StreamLabelT = Aws::String>
103 Stream& WithStreamLabel(StreamLabelT&& value) {
104 SetStreamLabel(std::forward<StreamLabelT>(value));
105 return *this;
106 }
108 private:
109 Aws::String m_streamArn;
110
111 Aws::String m_keyspaceName;
112
113 Aws::String m_tableName;
114
115 Aws::String m_streamLabel;
116 bool m_streamArnHasBeenSet = false;
117 bool m_keyspaceNameHasBeenSet = false;
118 bool m_tableNameHasBeenSet = false;
119 bool m_streamLabelHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace KeyspacesStreams
124} // namespace Aws
const Aws::String & GetKeyspaceName() const
Definition Stream.h:58
Stream & WithStreamArn(StreamArnT &&value)
Definition Stream.h:47
const Aws::String & GetTableName() const
Definition Stream.h:76
AWS_KEYSPACESSTREAMS_API Stream()=default
void SetKeyspaceName(KeyspaceNameT &&value)
Definition Stream.h:61
AWS_KEYSPACESSTREAMS_API Stream & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetStreamLabel() const
Definition Stream.h:95
Stream & WithTableName(TableNameT &&value)
Definition Stream.h:84
AWS_KEYSPACESSTREAMS_API Stream(Aws::Utils::Json::JsonView jsonValue)
Stream & WithStreamLabel(StreamLabelT &&value)
Definition Stream.h:103
void SetStreamArn(StreamArnT &&value)
Definition Stream.h:42
void SetTableName(TableNameT &&value)
Definition Stream.h:79
Stream & WithKeyspaceName(KeyspaceNameT &&value)
Definition Stream.h:66
const Aws::String & GetStreamArn() const
Definition Stream.h:39
AWS_KEYSPACESSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStreamLabel(StreamLabelT &&value)
Definition Stream.h:98
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue