AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
EventStreamSummary.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/DestinationSummary.h>
12#include <aws/customer-profiles/model/EventStreamState.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CustomerProfiles {
24namespace Model {
25
33 public:
34 AWS_CUSTOMERPROFILES_API EventStreamSummary() = default;
35 AWS_CUSTOMERPROFILES_API EventStreamSummary(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CUSTOMERPROFILES_API EventStreamSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetDomainName() const { return m_domainName; }
44 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
45 template <typename DomainNameT = Aws::String>
46 void SetDomainName(DomainNameT&& value) {
47 m_domainNameHasBeenSet = true;
48 m_domainName = std::forward<DomainNameT>(value);
49 }
50 template <typename DomainNameT = Aws::String>
51 EventStreamSummary& WithDomainName(DomainNameT&& value) {
52 SetDomainName(std::forward<DomainNameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetEventStreamName() const { return m_eventStreamName; }
62 inline bool EventStreamNameHasBeenSet() const { return m_eventStreamNameHasBeenSet; }
63 template <typename EventStreamNameT = Aws::String>
64 void SetEventStreamName(EventStreamNameT&& value) {
65 m_eventStreamNameHasBeenSet = true;
66 m_eventStreamName = std::forward<EventStreamNameT>(value);
67 }
68 template <typename EventStreamNameT = Aws::String>
69 EventStreamSummary& WithEventStreamName(EventStreamNameT&& value) {
70 SetEventStreamName(std::forward<EventStreamNameT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetEventStreamArn() const { return m_eventStreamArn; }
80 inline bool EventStreamArnHasBeenSet() const { return m_eventStreamArnHasBeenSet; }
81 template <typename EventStreamArnT = Aws::String>
82 void SetEventStreamArn(EventStreamArnT&& value) {
83 m_eventStreamArnHasBeenSet = true;
84 m_eventStreamArn = std::forward<EventStreamArnT>(value);
85 }
86 template <typename EventStreamArnT = Aws::String>
87 EventStreamSummary& WithEventStreamArn(EventStreamArnT&& value) {
88 SetEventStreamArn(std::forward<EventStreamArnT>(value));
89 return *this;
90 }
92
94
97 inline EventStreamState GetState() const { return m_state; }
98 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
99 inline void SetState(EventStreamState value) {
100 m_stateHasBeenSet = true;
101 m_state = value;
102 }
104 SetState(value);
105 return *this;
106 }
108
110
114 inline const Aws::Utils::DateTime& GetStoppedSince() const { return m_stoppedSince; }
115 inline bool StoppedSinceHasBeenSet() const { return m_stoppedSinceHasBeenSet; }
116 template <typename StoppedSinceT = Aws::Utils::DateTime>
117 void SetStoppedSince(StoppedSinceT&& value) {
118 m_stoppedSinceHasBeenSet = true;
119 m_stoppedSince = std::forward<StoppedSinceT>(value);
120 }
121 template <typename StoppedSinceT = Aws::Utils::DateTime>
122 EventStreamSummary& WithStoppedSince(StoppedSinceT&& value) {
123 SetStoppedSince(std::forward<StoppedSinceT>(value));
124 return *this;
125 }
127
129
132 inline const DestinationSummary& GetDestinationSummary() const { return m_destinationSummary; }
133 inline bool DestinationSummaryHasBeenSet() const { return m_destinationSummaryHasBeenSet; }
134 template <typename DestinationSummaryT = DestinationSummary>
135 void SetDestinationSummary(DestinationSummaryT&& value) {
136 m_destinationSummaryHasBeenSet = true;
137 m_destinationSummary = std::forward<DestinationSummaryT>(value);
138 }
139 template <typename DestinationSummaryT = DestinationSummary>
140 EventStreamSummary& WithDestinationSummary(DestinationSummaryT&& value) {
141 SetDestinationSummary(std::forward<DestinationSummaryT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
151 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
152 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
153 void SetTags(TagsT&& value) {
154 m_tagsHasBeenSet = true;
155 m_tags = std::forward<TagsT>(value);
156 }
157 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
158 EventStreamSummary& WithTags(TagsT&& value) {
159 SetTags(std::forward<TagsT>(value));
160 return *this;
161 }
162 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
163 EventStreamSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
164 m_tagsHasBeenSet = true;
165 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
166 return *this;
167 }
169 private:
170 Aws::String m_domainName;
171 bool m_domainNameHasBeenSet = false;
172
173 Aws::String m_eventStreamName;
174 bool m_eventStreamNameHasBeenSet = false;
175
176 Aws::String m_eventStreamArn;
177 bool m_eventStreamArnHasBeenSet = false;
178
180 bool m_stateHasBeenSet = false;
181
182 Aws::Utils::DateTime m_stoppedSince{};
183 bool m_stoppedSinceHasBeenSet = false;
184
185 DestinationSummary m_destinationSummary;
186 bool m_destinationSummaryHasBeenSet = false;
187
189 bool m_tagsHasBeenSet = false;
190};
191
192} // namespace Model
193} // namespace CustomerProfiles
194} // namespace Aws
EventStreamSummary & WithDomainName(DomainNameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
EventStreamSummary & WithEventStreamArn(EventStreamArnT &&value)
EventStreamSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_CUSTOMERPROFILES_API EventStreamSummary()=default
EventStreamSummary & WithState(EventStreamState value)
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
EventStreamSummary & WithStoppedSince(StoppedSinceT &&value)
EventStreamSummary & WithEventStreamName(EventStreamNameT &&value)
AWS_CUSTOMERPROFILES_API EventStreamSummary(Aws::Utils::Json::JsonView jsonValue)
EventStreamSummary & WithTags(TagsT &&value)
AWS_CUSTOMERPROFILES_API EventStreamSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDestinationSummary(DestinationSummaryT &&value)
const DestinationSummary & GetDestinationSummary() const
EventStreamSummary & WithDestinationSummary(DestinationSummaryT &&value)
const Aws::Utils::DateTime & GetStoppedSince() const
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