AWS SDK for C++

AWS SDK for C++ Version 1.11.775

Loading...
Searching...
No Matches
GetEventStreamResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
12#include <aws/customer-profiles/model/EventStreamDestinationDetails.h>
13#include <aws/customer-profiles/model/EventStreamState.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace CustomerProfiles {
27namespace Model {
29 public:
30 AWS_CUSTOMERPROFILES_API GetEventStreamResult() = default;
33
35
38 inline const Aws::String& GetDomainName() const { return m_domainName; }
39 template <typename DomainNameT = Aws::String>
40 void SetDomainName(DomainNameT&& value) {
41 m_domainNameHasBeenSet = true;
42 m_domainName = std::forward<DomainNameT>(value);
43 }
44 template <typename DomainNameT = Aws::String>
45 GetEventStreamResult& WithDomainName(DomainNameT&& value) {
46 SetDomainName(std::forward<DomainNameT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetEventStreamArn() const { return m_eventStreamArn; }
56 template <typename EventStreamArnT = Aws::String>
57 void SetEventStreamArn(EventStreamArnT&& value) {
58 m_eventStreamArnHasBeenSet = true;
59 m_eventStreamArn = std::forward<EventStreamArnT>(value);
60 }
61 template <typename EventStreamArnT = Aws::String>
62 GetEventStreamResult& WithEventStreamArn(EventStreamArnT&& value) {
63 SetEventStreamArn(std::forward<EventStreamArnT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
73 template <typename CreatedAtT = Aws::Utils::DateTime>
74 void SetCreatedAt(CreatedAtT&& value) {
75 m_createdAtHasBeenSet = true;
76 m_createdAt = std::forward<CreatedAtT>(value);
77 }
78 template <typename CreatedAtT = Aws::Utils::DateTime>
79 GetEventStreamResult& WithCreatedAt(CreatedAtT&& value) {
80 SetCreatedAt(std::forward<CreatedAtT>(value));
81 return *this;
82 }
84
86
89 inline EventStreamState GetState() const { return m_state; }
90 inline void SetState(EventStreamState value) {
91 m_stateHasBeenSet = true;
92 m_state = value;
93 }
95 SetState(value);
96 return *this;
97 }
99
101
105 inline const Aws::Utils::DateTime& GetStoppedSince() const { return m_stoppedSince; }
106 template <typename StoppedSinceT = Aws::Utils::DateTime>
107 void SetStoppedSince(StoppedSinceT&& value) {
108 m_stoppedSinceHasBeenSet = true;
109 m_stoppedSince = std::forward<StoppedSinceT>(value);
110 }
111 template <typename StoppedSinceT = Aws::Utils::DateTime>
112 GetEventStreamResult& WithStoppedSince(StoppedSinceT&& value) {
113 SetStoppedSince(std::forward<StoppedSinceT>(value));
114 return *this;
115 }
117
119
122 inline const EventStreamDestinationDetails& GetDestinationDetails() const { return m_destinationDetails; }
123 template <typename DestinationDetailsT = EventStreamDestinationDetails>
124 void SetDestinationDetails(DestinationDetailsT&& value) {
125 m_destinationDetailsHasBeenSet = true;
126 m_destinationDetails = std::forward<DestinationDetailsT>(value);
127 }
128 template <typename DestinationDetailsT = EventStreamDestinationDetails>
129 GetEventStreamResult& WithDestinationDetails(DestinationDetailsT&& value) {
130 SetDestinationDetails(std::forward<DestinationDetailsT>(value));
131 return *this;
132 }
134
136
139 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
140 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
141 void SetTags(TagsT&& value) {
142 m_tagsHasBeenSet = true;
143 m_tags = std::forward<TagsT>(value);
144 }
145 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
147 SetTags(std::forward<TagsT>(value));
148 return *this;
149 }
150 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
151 GetEventStreamResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
152 m_tagsHasBeenSet = true;
153 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
154 return *this;
155 }
157
159
160 inline const Aws::String& GetRequestId() const { return m_requestId; }
161 template <typename RequestIdT = Aws::String>
162 void SetRequestId(RequestIdT&& value) {
163 m_requestIdHasBeenSet = true;
164 m_requestId = std::forward<RequestIdT>(value);
165 }
166 template <typename RequestIdT = Aws::String>
167 GetEventStreamResult& WithRequestId(RequestIdT&& value) {
168 SetRequestId(std::forward<RequestIdT>(value));
169 return *this;
170 }
172 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
173
174 private:
175 Aws::String m_domainName;
176
177 Aws::String m_eventStreamArn;
178
179 Aws::Utils::DateTime m_createdAt{};
180
182
183 Aws::Utils::DateTime m_stoppedSince{};
184
185 EventStreamDestinationDetails m_destinationDetails;
186
188
189 Aws::String m_requestId;
190 Aws::Http::HttpResponseCode m_HttpResponseCode;
191 bool m_domainNameHasBeenSet = false;
192 bool m_eventStreamArnHasBeenSet = false;
193 bool m_createdAtHasBeenSet = false;
194 bool m_stateHasBeenSet = false;
195 bool m_stoppedSinceHasBeenSet = false;
196 bool m_destinationDetailsHasBeenSet = false;
197 bool m_tagsHasBeenSet = false;
198 bool m_requestIdHasBeenSet = false;
199};
200
201} // namespace Model
202} // namespace CustomerProfiles
203} // namespace Aws
GetEventStreamResult & WithDomainName(DomainNameT &&value)
GetEventStreamResult & WithDestinationDetails(DestinationDetailsT &&value)
GetEventStreamResult & WithEventStreamArn(EventStreamArnT &&value)
GetEventStreamResult & WithState(EventStreamState value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_CUSTOMERPROFILES_API GetEventStreamResult()=default
AWS_CUSTOMERPROFILES_API GetEventStreamResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetEventStreamResult & WithRequestId(RequestIdT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetDestinationDetails(DestinationDetailsT &&value)
GetEventStreamResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetEventStreamResult & WithCreatedAt(CreatedAtT &&value)
AWS_CUSTOMERPROFILES_API GetEventStreamResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetStoppedSince() const
const EventStreamDestinationDetails & GetDestinationDetails() const
GetEventStreamResult & WithStoppedSince(StoppedSinceT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue