AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Pipe.h
1
6#pragma once
7#include <aws/pipes/Pipes_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/pipes/model/RequestedPipeState.h>
10#include <aws/pipes/model/PipeState.h>
11#include <aws/core/utils/DateTime.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 Pipes
25{
26namespace Model
27{
28
36 class Pipe
37 {
38 public:
39 AWS_PIPES_API Pipe() = default;
40 AWS_PIPES_API Pipe(Aws::Utils::Json::JsonView jsonValue);
41 AWS_PIPES_API Pipe& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_PIPES_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetName() const { return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 template<typename NameT = Aws::String>
52 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
53 template<typename NameT = Aws::String>
54 Pipe& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
65 template<typename ArnT = Aws::String>
66 Pipe& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
68
70
73 inline RequestedPipeState GetDesiredState() const { return m_desiredState; }
74 inline bool DesiredStateHasBeenSet() const { return m_desiredStateHasBeenSet; }
75 inline void SetDesiredState(RequestedPipeState value) { m_desiredStateHasBeenSet = true; m_desiredState = value; }
76 inline Pipe& WithDesiredState(RequestedPipeState value) { SetDesiredState(value); return *this;}
78
80
83 inline PipeState GetCurrentState() const { return m_currentState; }
84 inline bool CurrentStateHasBeenSet() const { return m_currentStateHasBeenSet; }
85 inline void SetCurrentState(PipeState value) { m_currentStateHasBeenSet = true; m_currentState = value; }
86 inline Pipe& WithCurrentState(PipeState value) { SetCurrentState(value); return *this;}
88
90
93 inline const Aws::String& GetStateReason() const { return m_stateReason; }
94 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
95 template<typename StateReasonT = Aws::String>
96 void SetStateReason(StateReasonT&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::forward<StateReasonT>(value); }
97 template<typename StateReasonT = Aws::String>
98 Pipe& WithStateReason(StateReasonT&& value) { SetStateReason(std::forward<StateReasonT>(value)); return *this;}
100
102
105 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
106 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
107 template<typename CreationTimeT = Aws::Utils::DateTime>
108 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
109 template<typename CreationTimeT = Aws::Utils::DateTime>
110 Pipe& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
112
114
119 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
120 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
121 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
122 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
123 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
124 Pipe& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
126
128
131 inline const Aws::String& GetSource() const { return m_source; }
132 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
133 template<typename SourceT = Aws::String>
134 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
135 template<typename SourceT = Aws::String>
136 Pipe& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
138
140
143 inline const Aws::String& GetTarget() const { return m_target; }
144 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
145 template<typename TargetT = Aws::String>
146 void SetTarget(TargetT&& value) { m_targetHasBeenSet = true; m_target = std::forward<TargetT>(value); }
147 template<typename TargetT = Aws::String>
148 Pipe& WithTarget(TargetT&& value) { SetTarget(std::forward<TargetT>(value)); return *this;}
150
152
155 inline const Aws::String& GetEnrichment() const { return m_enrichment; }
156 inline bool EnrichmentHasBeenSet() const { return m_enrichmentHasBeenSet; }
157 template<typename EnrichmentT = Aws::String>
158 void SetEnrichment(EnrichmentT&& value) { m_enrichmentHasBeenSet = true; m_enrichment = std::forward<EnrichmentT>(value); }
159 template<typename EnrichmentT = Aws::String>
160 Pipe& WithEnrichment(EnrichmentT&& value) { SetEnrichment(std::forward<EnrichmentT>(value)); return *this;}
162 private:
163
164 Aws::String m_name;
165 bool m_nameHasBeenSet = false;
166
167 Aws::String m_arn;
168 bool m_arnHasBeenSet = false;
169
171 bool m_desiredStateHasBeenSet = false;
172
173 PipeState m_currentState{PipeState::NOT_SET};
174 bool m_currentStateHasBeenSet = false;
175
176 Aws::String m_stateReason;
177 bool m_stateReasonHasBeenSet = false;
178
179 Aws::Utils::DateTime m_creationTime{};
180 bool m_creationTimeHasBeenSet = false;
181
182 Aws::Utils::DateTime m_lastModifiedTime{};
183 bool m_lastModifiedTimeHasBeenSet = false;
184
185 Aws::String m_source;
186 bool m_sourceHasBeenSet = false;
187
188 Aws::String m_target;
189 bool m_targetHasBeenSet = false;
190
191 Aws::String m_enrichment;
192 bool m_enrichmentHasBeenSet = false;
193 };
194
195} // namespace Model
196} // namespace Pipes
197} // namespace Aws
const Aws::Utils::DateTime & GetCreationTime() const
Definition Pipe.h:105
bool CurrentStateHasBeenSet() const
Definition Pipe.h:84
AWS_PIPES_API Pipe()=default
bool SourceHasBeenSet() const
Definition Pipe.h:132
const Aws::String & GetName() const
Definition Pipe.h:49
void SetCreationTime(CreationTimeT &&value)
Definition Pipe.h:108
const Aws::String & GetEnrichment() const
Definition Pipe.h:155
Pipe & WithEnrichment(EnrichmentT &&value)
Definition Pipe.h:160
AWS_PIPES_API Pipe & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCurrentState(PipeState value)
Definition Pipe.h:85
bool ArnHasBeenSet() const
Definition Pipe.h:62
Pipe & WithName(NameT &&value)
Definition Pipe.h:54
Pipe & WithLastModifiedTime(LastModifiedTimeT &&value)
Definition Pipe.h:124
bool EnrichmentHasBeenSet() const
Definition Pipe.h:156
bool DesiredStateHasBeenSet() const
Definition Pipe.h:74
Pipe & WithDesiredState(RequestedPipeState value)
Definition Pipe.h:76
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition Pipe.h:119
PipeState GetCurrentState() const
Definition Pipe.h:83
Pipe & WithCurrentState(PipeState value)
Definition Pipe.h:86
const Aws::String & GetStateReason() const
Definition Pipe.h:93
void SetLastModifiedTime(LastModifiedTimeT &&value)
Definition Pipe.h:122
void SetArn(ArnT &&value)
Definition Pipe.h:64
Pipe & WithTarget(TargetT &&value)
Definition Pipe.h:148
AWS_PIPES_API Pipe(Aws::Utils::Json::JsonView jsonValue)
bool TargetHasBeenSet() const
Definition Pipe.h:144
Pipe & WithSource(SourceT &&value)
Definition Pipe.h:136
Pipe & WithStateReason(StateReasonT &&value)
Definition Pipe.h:98
void SetTarget(TargetT &&value)
Definition Pipe.h:146
bool NameHasBeenSet() const
Definition Pipe.h:50
void SetSource(SourceT &&value)
Definition Pipe.h:134
void SetEnrichment(EnrichmentT &&value)
Definition Pipe.h:158
void SetName(NameT &&value)
Definition Pipe.h:52
Pipe & WithCreationTime(CreationTimeT &&value)
Definition Pipe.h:110
void SetDesiredState(RequestedPipeState value)
Definition Pipe.h:75
const Aws::String & GetArn() const
Definition Pipe.h:61
const Aws::String & GetTarget() const
Definition Pipe.h:143
AWS_PIPES_API Aws::Utils::Json::JsonValue Jsonize() const
bool CreationTimeHasBeenSet() const
Definition Pipe.h:106
RequestedPipeState GetDesiredState() const
Definition Pipe.h:73
Pipe & WithArn(ArnT &&value)
Definition Pipe.h:66
void SetStateReason(StateReasonT &&value)
Definition Pipe.h:96
const Aws::String & GetSource() const
Definition Pipe.h:131
bool StateReasonHasBeenSet() const
Definition Pipe.h:94
bool LastModifiedTimeHasBeenSet() const
Definition Pipe.h:120
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue