AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
Pipe.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/pipes/Pipes_EXPORTS.h>
10#include <aws/pipes/model/PipeState.h>
11#include <aws/pipes/model/RequestedPipeState.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Pipes {
23namespace Model {
24
32class Pipe {
33 public:
34 AWS_PIPES_API Pipe() = default;
35 AWS_PIPES_API Pipe(Aws::Utils::Json::JsonView jsonValue);
36 AWS_PIPES_API Pipe& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_PIPES_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
51 Pipe& WithName(NameT&& value) {
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetArn() const { return m_arn; }
62 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
63 template <typename ArnT = Aws::String>
64 void SetArn(ArnT&& value) {
65 m_arnHasBeenSet = true;
66 m_arn = std::forward<ArnT>(value);
67 }
68 template <typename ArnT = Aws::String>
69 Pipe& WithArn(ArnT&& value) {
70 SetArn(std::forward<ArnT>(value));
71 return *this;
72 }
74
76
79 inline RequestedPipeState GetDesiredState() const { return m_desiredState; }
80 inline bool DesiredStateHasBeenSet() const { return m_desiredStateHasBeenSet; }
82 m_desiredStateHasBeenSet = true;
83 m_desiredState = value;
84 }
86 SetDesiredState(value);
87 return *this;
88 }
90
92
95 inline PipeState GetCurrentState() const { return m_currentState; }
96 inline bool CurrentStateHasBeenSet() const { return m_currentStateHasBeenSet; }
97 inline void SetCurrentState(PipeState value) {
98 m_currentStateHasBeenSet = true;
99 m_currentState = value;
100 }
102 SetCurrentState(value);
103 return *this;
104 }
106
108
111 inline const Aws::String& GetStateReason() const { return m_stateReason; }
112 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
113 template <typename StateReasonT = Aws::String>
114 void SetStateReason(StateReasonT&& value) {
115 m_stateReasonHasBeenSet = true;
116 m_stateReason = std::forward<StateReasonT>(value);
117 }
118 template <typename StateReasonT = Aws::String>
119 Pipe& WithStateReason(StateReasonT&& value) {
120 SetStateReason(std::forward<StateReasonT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
130 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
131 template <typename CreationTimeT = Aws::Utils::DateTime>
132 void SetCreationTime(CreationTimeT&& value) {
133 m_creationTimeHasBeenSet = true;
134 m_creationTime = std::forward<CreationTimeT>(value);
135 }
136 template <typename CreationTimeT = Aws::Utils::DateTime>
137 Pipe& WithCreationTime(CreationTimeT&& value) {
138 SetCreationTime(std::forward<CreationTimeT>(value));
139 return *this;
140 }
142
144
149 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
150 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
151 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
152 void SetLastModifiedTime(LastModifiedTimeT&& value) {
153 m_lastModifiedTimeHasBeenSet = true;
154 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
155 }
156 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
157 Pipe& WithLastModifiedTime(LastModifiedTimeT&& value) {
158 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
159 return *this;
160 }
162
164
167 inline const Aws::String& GetSource() const { return m_source; }
168 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
169 template <typename SourceT = Aws::String>
170 void SetSource(SourceT&& value) {
171 m_sourceHasBeenSet = true;
172 m_source = std::forward<SourceT>(value);
173 }
174 template <typename SourceT = Aws::String>
175 Pipe& WithSource(SourceT&& value) {
176 SetSource(std::forward<SourceT>(value));
177 return *this;
178 }
180
182
185 inline const Aws::String& GetTarget() const { return m_target; }
186 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
187 template <typename TargetT = Aws::String>
188 void SetTarget(TargetT&& value) {
189 m_targetHasBeenSet = true;
190 m_target = std::forward<TargetT>(value);
191 }
192 template <typename TargetT = Aws::String>
193 Pipe& WithTarget(TargetT&& value) {
194 SetTarget(std::forward<TargetT>(value));
195 return *this;
196 }
198
200
203 inline const Aws::String& GetEnrichment() const { return m_enrichment; }
204 inline bool EnrichmentHasBeenSet() const { return m_enrichmentHasBeenSet; }
205 template <typename EnrichmentT = Aws::String>
206 void SetEnrichment(EnrichmentT&& value) {
207 m_enrichmentHasBeenSet = true;
208 m_enrichment = std::forward<EnrichmentT>(value);
209 }
210 template <typename EnrichmentT = Aws::String>
211 Pipe& WithEnrichment(EnrichmentT&& value) {
212 SetEnrichment(std::forward<EnrichmentT>(value));
213 return *this;
214 }
216 private:
217 Aws::String m_name;
218
219 Aws::String m_arn;
220
222
223 PipeState m_currentState{PipeState::NOT_SET};
224
225 Aws::String m_stateReason;
226
227 Aws::Utils::DateTime m_creationTime{};
228
229 Aws::Utils::DateTime m_lastModifiedTime{};
230
231 Aws::String m_source;
232
233 Aws::String m_target;
234
235 Aws::String m_enrichment;
236 bool m_nameHasBeenSet = false;
237 bool m_arnHasBeenSet = false;
238 bool m_desiredStateHasBeenSet = false;
239 bool m_currentStateHasBeenSet = false;
240 bool m_stateReasonHasBeenSet = false;
241 bool m_creationTimeHasBeenSet = false;
242 bool m_lastModifiedTimeHasBeenSet = false;
243 bool m_sourceHasBeenSet = false;
244 bool m_targetHasBeenSet = false;
245 bool m_enrichmentHasBeenSet = false;
246};
247
248} // namespace Model
249} // namespace Pipes
250} // namespace Aws
const Aws::Utils::DateTime & GetCreationTime() const
Definition Pipe.h:129
bool CurrentStateHasBeenSet() const
Definition Pipe.h:96
AWS_PIPES_API Pipe()=default
bool SourceHasBeenSet() const
Definition Pipe.h:168
const Aws::String & GetName() const
Definition Pipe.h:43
void SetCreationTime(CreationTimeT &&value)
Definition Pipe.h:132
const Aws::String & GetEnrichment() const
Definition Pipe.h:203
Pipe & WithEnrichment(EnrichmentT &&value)
Definition Pipe.h:211
AWS_PIPES_API Pipe & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCurrentState(PipeState value)
Definition Pipe.h:97
bool ArnHasBeenSet() const
Definition Pipe.h:62
Pipe & WithName(NameT &&value)
Definition Pipe.h:51
Pipe & WithLastModifiedTime(LastModifiedTimeT &&value)
Definition Pipe.h:157
bool EnrichmentHasBeenSet() const
Definition Pipe.h:204
bool DesiredStateHasBeenSet() const
Definition Pipe.h:80
Pipe & WithDesiredState(RequestedPipeState value)
Definition Pipe.h:85
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition Pipe.h:149
PipeState GetCurrentState() const
Definition Pipe.h:95
Pipe & WithCurrentState(PipeState value)
Definition Pipe.h:101
const Aws::String & GetStateReason() const
Definition Pipe.h:111
void SetLastModifiedTime(LastModifiedTimeT &&value)
Definition Pipe.h:152
void SetArn(ArnT &&value)
Definition Pipe.h:64
Pipe & WithTarget(TargetT &&value)
Definition Pipe.h:193
AWS_PIPES_API Pipe(Aws::Utils::Json::JsonView jsonValue)
bool TargetHasBeenSet() const
Definition Pipe.h:186
Pipe & WithSource(SourceT &&value)
Definition Pipe.h:175
Pipe & WithStateReason(StateReasonT &&value)
Definition Pipe.h:119
void SetTarget(TargetT &&value)
Definition Pipe.h:188
bool NameHasBeenSet() const
Definition Pipe.h:44
void SetSource(SourceT &&value)
Definition Pipe.h:170
void SetEnrichment(EnrichmentT &&value)
Definition Pipe.h:206
void SetName(NameT &&value)
Definition Pipe.h:46
Pipe & WithCreationTime(CreationTimeT &&value)
Definition Pipe.h:137
void SetDesiredState(RequestedPipeState value)
Definition Pipe.h:81
const Aws::String & GetArn() const
Definition Pipe.h:61
const Aws::String & GetTarget() const
Definition Pipe.h:185
AWS_PIPES_API Aws::Utils::Json::JsonValue Jsonize() const
bool CreationTimeHasBeenSet() const
Definition Pipe.h:130
RequestedPipeState GetDesiredState() const
Definition Pipe.h:79
Pipe & WithArn(ArnT &&value)
Definition Pipe.h:69
void SetStateReason(StateReasonT &&value)
Definition Pipe.h:114
const Aws::String & GetSource() const
Definition Pipe.h:167
bool StateReasonHasBeenSet() const
Definition Pipe.h:112
bool LastModifiedTimeHasBeenSet() const
Definition Pipe.h:150
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue