AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
GetLineageEventResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/Array.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/stream/ResponseStream.h>
12#include <aws/datazone/DataZone_EXPORTS.h>
13#include <aws/datazone/model/LineageEventProcessingStatus.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace DataZone {
22namespace Model {
24 public:
25 AWS_DATAZONE_API GetLineageEventResult() = default;
26 AWS_DATAZONE_API GetLineageEventResult(GetLineageEventResult&&) = default;
28 // we delete these because Microsoft doesn't handle move generation correctly
29 // and we therefore don't trust them to get it right here either.
32
35
37
40 inline const Aws::String& GetDomainId() const { return m_domainId; }
41 template <typename DomainIdT = Aws::String>
42 void SetDomainId(DomainIdT&& value) {
43 m_domainIdHasBeenSet = true;
44 m_domainId = std::forward<DomainIdT>(value);
45 }
46 template <typename DomainIdT = Aws::String>
47 GetLineageEventResult& WithDomainId(DomainIdT&& value) {
48 SetDomainId(std::forward<DomainIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetId() const { return m_id; }
58 template <typename IdT = Aws::String>
59 void SetId(IdT&& value) {
60 m_idHasBeenSet = true;
61 m_id = std::forward<IdT>(value);
62 }
63 template <typename IdT = Aws::String>
65 SetId(std::forward<IdT>(value));
66 return *this;
67 }
69
71
74 inline Aws::IOStream& GetEvent() const { return m_event.GetUnderlyingStream(); }
75 inline void ReplaceBody(Aws::IOStream* body) { m_event = Aws::Utils::Stream::ResponseStream(body); }
76
78
80
83 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
84 template <typename CreatedByT = Aws::String>
85 void SetCreatedBy(CreatedByT&& value) {
86 m_createdByHasBeenSet = true;
87 m_createdBy = std::forward<CreatedByT>(value);
88 }
89 template <typename CreatedByT = Aws::String>
90 GetLineageEventResult& WithCreatedBy(CreatedByT&& value) {
91 SetCreatedBy(std::forward<CreatedByT>(value));
92 return *this;
93 }
95
97
100 inline LineageEventProcessingStatus GetProcessingStatus() const { return m_processingStatus; }
102 m_processingStatusHasBeenSet = true;
103 m_processingStatus = value;
104 }
106 SetProcessingStatus(value);
107 return *this;
108 }
110
112
115 inline const Aws::Utils::DateTime& GetEventTime() const { return m_eventTime; }
116 template <typename EventTimeT = Aws::Utils::DateTime>
117 void SetEventTime(EventTimeT&& value) {
118 m_eventTimeHasBeenSet = true;
119 m_eventTime = std::forward<EventTimeT>(value);
120 }
121 template <typename EventTimeT = Aws::Utils::DateTime>
123 SetEventTime(std::forward<EventTimeT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
133 template <typename CreatedAtT = Aws::Utils::DateTime>
134 void SetCreatedAt(CreatedAtT&& value) {
135 m_createdAtHasBeenSet = true;
136 m_createdAt = std::forward<CreatedAtT>(value);
137 }
138 template <typename CreatedAtT = Aws::Utils::DateTime>
140 SetCreatedAt(std::forward<CreatedAtT>(value));
141 return *this;
142 }
144
146
147 inline const Aws::String& GetRequestId() const { return m_requestId; }
148 template <typename RequestIdT = Aws::String>
149 void SetRequestId(RequestIdT&& value) {
150 m_requestIdHasBeenSet = true;
151 m_requestId = std::forward<RequestIdT>(value);
152 }
153 template <typename RequestIdT = Aws::String>
155 SetRequestId(std::forward<RequestIdT>(value));
156 return *this;
157 }
159 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
160
161 private:
162 Aws::String m_domainId;
163
164 Aws::String m_id;
165
167
168 Aws::String m_createdBy;
169
171
172 Aws::Utils::DateTime m_eventTime{};
173
174 Aws::Utils::DateTime m_createdAt{};
175
176 Aws::String m_requestId;
177 Aws::Http::HttpResponseCode m_HttpResponseCode;
178 bool m_domainIdHasBeenSet = false;
179 bool m_idHasBeenSet = false;
180 bool m_eventHasBeenSet = false;
181 bool m_createdByHasBeenSet = false;
182 bool m_processingStatusHasBeenSet = false;
183 bool m_eventTimeHasBeenSet = false;
184 bool m_createdAtHasBeenSet = false;
185 bool m_requestIdHasBeenSet = false;
186};
187
188} // namespace Model
189} // namespace DataZone
190} // namespace Aws
GetLineageEventResult & WithProcessingStatus(LineageEventProcessingStatus value)
const Aws::Utils::DateTime & GetEventTime() const
AWS_DATAZONE_API GetLineageEventResult()=default
GetLineageEventResult & operator=(const GetLineageEventResult &)=delete
GetLineageEventResult(const GetLineageEventResult &)=delete
GetLineageEventResult & WithId(IdT &&value)
LineageEventProcessingStatus GetProcessingStatus() const
AWS_DATAZONE_API GetLineageEventResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
GetLineageEventResult & WithCreatedAt(CreatedAtT &&value)
GetLineageEventResult & WithCreatedBy(CreatedByT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_DATAZONE_API GetLineageEventResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
AWS_DATAZONE_API GetLineageEventResult(GetLineageEventResult &&)=default
AWS_DATAZONE_API GetLineageEventResult & operator=(GetLineageEventResult &&)=default
void SetProcessingStatus(LineageEventProcessingStatus value)
GetLineageEventResult & WithEventTime(EventTimeT &&value)
GetLineageEventResult & WithRequestId(RequestIdT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
GetLineageEventResult & WithDomainId(DomainIdT &&value)
Aws::IOStream & GetUnderlyingStream() const
std::basic_iostream< char, std::char_traits< char > > IOStream
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String