AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
GetEventStreamResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
11#include <aws/customer-profiles/model/EventStreamDestinationDetails.h>
12#include <aws/customer-profiles/model/EventStreamState.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace CustomerProfiles {
26namespace Model {
28 public:
29 AWS_CUSTOMERPROFILES_API GetEventStreamResult() = default;
32
34
37 inline const Aws::String& GetDomainName() const { return m_domainName; }
38 template <typename DomainNameT = Aws::String>
39 void SetDomainName(DomainNameT&& value) {
40 m_domainNameHasBeenSet = true;
41 m_domainName = std::forward<DomainNameT>(value);
42 }
43 template <typename DomainNameT = Aws::String>
44 GetEventStreamResult& WithDomainName(DomainNameT&& value) {
45 SetDomainName(std::forward<DomainNameT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetEventStreamArn() const { return m_eventStreamArn; }
55 template <typename EventStreamArnT = Aws::String>
56 void SetEventStreamArn(EventStreamArnT&& value) {
57 m_eventStreamArnHasBeenSet = true;
58 m_eventStreamArn = std::forward<EventStreamArnT>(value);
59 }
60 template <typename EventStreamArnT = Aws::String>
61 GetEventStreamResult& WithEventStreamArn(EventStreamArnT&& value) {
62 SetEventStreamArn(std::forward<EventStreamArnT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
72 template <typename CreatedAtT = Aws::Utils::DateTime>
73 void SetCreatedAt(CreatedAtT&& value) {
74 m_createdAtHasBeenSet = true;
75 m_createdAt = std::forward<CreatedAtT>(value);
76 }
77 template <typename CreatedAtT = Aws::Utils::DateTime>
78 GetEventStreamResult& WithCreatedAt(CreatedAtT&& value) {
79 SetCreatedAt(std::forward<CreatedAtT>(value));
80 return *this;
81 }
83
85
88 inline EventStreamState GetState() const { return m_state; }
89 inline void SetState(EventStreamState value) {
90 m_stateHasBeenSet = true;
91 m_state = value;
92 }
94 SetState(value);
95 return *this;
96 }
98
100
104 inline const Aws::Utils::DateTime& GetStoppedSince() const { return m_stoppedSince; }
105 template <typename StoppedSinceT = Aws::Utils::DateTime>
106 void SetStoppedSince(StoppedSinceT&& value) {
107 m_stoppedSinceHasBeenSet = true;
108 m_stoppedSince = std::forward<StoppedSinceT>(value);
109 }
110 template <typename StoppedSinceT = Aws::Utils::DateTime>
111 GetEventStreamResult& WithStoppedSince(StoppedSinceT&& value) {
112 SetStoppedSince(std::forward<StoppedSinceT>(value));
113 return *this;
114 }
116
118
121 inline const EventStreamDestinationDetails& GetDestinationDetails() const { return m_destinationDetails; }
122 template <typename DestinationDetailsT = EventStreamDestinationDetails>
123 void SetDestinationDetails(DestinationDetailsT&& value) {
124 m_destinationDetailsHasBeenSet = true;
125 m_destinationDetails = std::forward<DestinationDetailsT>(value);
126 }
127 template <typename DestinationDetailsT = EventStreamDestinationDetails>
128 GetEventStreamResult& WithDestinationDetails(DestinationDetailsT&& value) {
129 SetDestinationDetails(std::forward<DestinationDetailsT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
139 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
140 void SetTags(TagsT&& value) {
141 m_tagsHasBeenSet = true;
142 m_tags = std::forward<TagsT>(value);
143 }
144 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
146 SetTags(std::forward<TagsT>(value));
147 return *this;
148 }
149 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
150 GetEventStreamResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
151 m_tagsHasBeenSet = true;
152 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
153 return *this;
154 }
156
158
159 inline const Aws::String& GetRequestId() const { return m_requestId; }
160 template <typename RequestIdT = Aws::String>
161 void SetRequestId(RequestIdT&& value) {
162 m_requestIdHasBeenSet = true;
163 m_requestId = std::forward<RequestIdT>(value);
164 }
165 template <typename RequestIdT = Aws::String>
166 GetEventStreamResult& WithRequestId(RequestIdT&& value) {
167 SetRequestId(std::forward<RequestIdT>(value));
168 return *this;
169 }
171 private:
172 Aws::String m_domainName;
173
174 Aws::String m_eventStreamArn;
175
176 Aws::Utils::DateTime m_createdAt{};
177
179
180 Aws::Utils::DateTime m_stoppedSince{};
181
182 EventStreamDestinationDetails m_destinationDetails;
183
185
186 Aws::String m_requestId;
187 bool m_domainNameHasBeenSet = false;
188 bool m_eventStreamArnHasBeenSet = false;
189 bool m_createdAtHasBeenSet = false;
190 bool m_stateHasBeenSet = false;
191 bool m_stoppedSinceHasBeenSet = false;
192 bool m_destinationDetailsHasBeenSet = false;
193 bool m_tagsHasBeenSet = false;
194 bool m_requestIdHasBeenSet = false;
195};
196
197} // namespace Model
198} // namespace CustomerProfiles
199} // 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)
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