AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
IngestionStreamSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
10#include <aws/opensearchserverless/model/IngestionStreamStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace OpenSearchServerless {
22namespace Model {
23
30 public:
31 AWS_OPENSEARCHSERVERLESS_API IngestionStreamSummary() = default;
32 AWS_OPENSEARCHSERVERLESS_API IngestionStreamSummary(Aws::Utils::Json::JsonView jsonValue);
33 AWS_OPENSEARCHSERVERLESS_API IngestionStreamSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetIngestionStreamId() const { return m_ingestionStreamId; }
41 inline bool IngestionStreamIdHasBeenSet() const { return m_ingestionStreamIdHasBeenSet; }
42 template <typename IngestionStreamIdT = Aws::String>
43 void SetIngestionStreamId(IngestionStreamIdT&& value) {
44 m_ingestionStreamIdHasBeenSet = true;
45 m_ingestionStreamId = std::forward<IngestionStreamIdT>(value);
46 }
47 template <typename IngestionStreamIdT = Aws::String>
48 IngestionStreamSummary& WithIngestionStreamId(IngestionStreamIdT&& value) {
49 SetIngestionStreamId(std::forward<IngestionStreamIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetArn() const { return m_arn; }
59 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
60 template <typename ArnT = Aws::String>
61 void SetArn(ArnT&& value) {
62 m_arnHasBeenSet = true;
63 m_arn = std::forward<ArnT>(value);
64 }
65 template <typename ArnT = Aws::String>
67 SetArn(std::forward<ArnT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetIngestionStreamName() const { return m_ingestionStreamName; }
77 inline bool IngestionStreamNameHasBeenSet() const { return m_ingestionStreamNameHasBeenSet; }
78 template <typename IngestionStreamNameT = Aws::String>
79 void SetIngestionStreamName(IngestionStreamNameT&& value) {
80 m_ingestionStreamNameHasBeenSet = true;
81 m_ingestionStreamName = std::forward<IngestionStreamNameT>(value);
82 }
83 template <typename IngestionStreamNameT = Aws::String>
84 IngestionStreamSummary& WithIngestionStreamName(IngestionStreamNameT&& value) {
85 SetIngestionStreamName(std::forward<IngestionStreamNameT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetIndexName() const { return m_indexName; }
95 inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; }
96 template <typename IndexNameT = Aws::String>
97 void SetIndexName(IndexNameT&& value) {
98 m_indexNameHasBeenSet = true;
99 m_indexName = std::forward<IndexNameT>(value);
100 }
101 template <typename IndexNameT = Aws::String>
103 SetIndexName(std::forward<IndexNameT>(value));
104 return *this;
105 }
107
109
112 inline IngestionStreamStatus GetStatus() const { return m_status; }
113 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
114 inline void SetStatus(IngestionStreamStatus value) {
115 m_statusHasBeenSet = true;
116 m_status = value;
117 }
119 SetStatus(value);
120 return *this;
121 }
123
125
128 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
129 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
130 template <typename CreatedAtT = Aws::Utils::DateTime>
131 void SetCreatedAt(CreatedAtT&& value) {
132 m_createdAtHasBeenSet = true;
133 m_createdAt = std::forward<CreatedAtT>(value);
134 }
135 template <typename CreatedAtT = Aws::Utils::DateTime>
137 SetCreatedAt(std::forward<CreatedAtT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
147 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
148 template <typename UpdatedAtT = Aws::Utils::DateTime>
149 void SetUpdatedAt(UpdatedAtT&& value) {
150 m_updatedAtHasBeenSet = true;
151 m_updatedAt = std::forward<UpdatedAtT>(value);
152 }
153 template <typename UpdatedAtT = Aws::Utils::DateTime>
155 SetUpdatedAt(std::forward<UpdatedAtT>(value));
156 return *this;
157 }
159 private:
160 Aws::String m_ingestionStreamId;
161
162 Aws::String m_arn;
163
164 Aws::String m_ingestionStreamName;
165
166 Aws::String m_indexName;
167
169
170 Aws::Utils::DateTime m_createdAt{};
171
172 Aws::Utils::DateTime m_updatedAt{};
173 bool m_ingestionStreamIdHasBeenSet = false;
174 bool m_arnHasBeenSet = false;
175 bool m_ingestionStreamNameHasBeenSet = false;
176 bool m_indexNameHasBeenSet = false;
177 bool m_statusHasBeenSet = false;
178 bool m_createdAtHasBeenSet = false;
179 bool m_updatedAtHasBeenSet = false;
180};
181
182} // namespace Model
183} // namespace OpenSearchServerless
184} // namespace Aws
IngestionStreamSummary & WithStatus(IngestionStreamStatus value)
IngestionStreamSummary & WithCreatedAt(CreatedAtT &&value)
AWS_OPENSEARCHSERVERLESS_API IngestionStreamSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVERLESS_API IngestionStreamSummary(Aws::Utils::Json::JsonView jsonValue)
IngestionStreamSummary & WithUpdatedAt(UpdatedAtT &&value)
AWS_OPENSEARCHSERVERLESS_API IngestionStreamSummary()=default
IngestionStreamSummary & WithIngestionStreamName(IngestionStreamNameT &&value)
IngestionStreamSummary & WithIndexName(IndexNameT &&value)
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
IngestionStreamSummary & WithIngestionStreamId(IngestionStreamIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue