AWS SDK for C++

AWS SDK for C++ Version 1.11.901

Loading...
Searching...
No Matches
SubscriberSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/eventbridgev2/EventBridgeV2_EXPORTS.h>
11#include <aws/eventbridgev2/model/OrderingType.h>
12#include <aws/eventbridgev2/model/SubscriberState.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Cbor {
19class CborValue;
20} // namespace Cbor
21} // namespace Utils
22namespace EventBridgeV2 {
23namespace Model {
24
32 public:
33 AWS_EVENTBRIDGEV2_API SubscriberSummary() = default;
34 AWS_EVENTBRIDGEV2_API SubscriberSummary(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_EVENTBRIDGEV2_API SubscriberSummary& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_EVENTBRIDGEV2_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
37
39
40 inline const Aws::String& GetSubscriberArn() const { return m_subscriberArn; }
41 inline bool SubscriberArnHasBeenSet() const { return m_subscriberArnHasBeenSet; }
42 template <typename SubscriberArnT = Aws::String>
43 void SetSubscriberArn(SubscriberArnT&& value) {
44 m_subscriberArnHasBeenSet = true;
45 m_subscriberArn = std::forward<SubscriberArnT>(value);
46 }
47 template <typename SubscriberArnT = Aws::String>
48 SubscriberSummary& WithSubscriberArn(SubscriberArnT&& value) {
49 SetSubscriberArn(std::forward<SubscriberArnT>(value));
50 return *this;
51 }
53
55
56 inline const Aws::String& GetName() const { return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 template <typename NameT = Aws::String>
59 void SetName(NameT&& value) {
60 m_nameHasBeenSet = true;
61 m_name = std::forward<NameT>(value);
62 }
63 template <typename NameT = Aws::String>
64 SubscriberSummary& WithName(NameT&& value) {
65 SetName(std::forward<NameT>(value));
66 return *this;
67 }
69
71
72 inline const Aws::String& GetEventBusArn() const { return m_eventBusArn; }
73 inline bool EventBusArnHasBeenSet() const { return m_eventBusArnHasBeenSet; }
74 template <typename EventBusArnT = Aws::String>
75 void SetEventBusArn(EventBusArnT&& value) {
76 m_eventBusArnHasBeenSet = true;
77 m_eventBusArn = std::forward<EventBusArnT>(value);
78 }
79 template <typename EventBusArnT = Aws::String>
80 SubscriberSummary& WithEventBusArn(EventBusArnT&& value) {
81 SetEventBusArn(std::forward<EventBusArnT>(value));
82 return *this;
83 }
85
87
88 inline const Aws::String& GetTargetArn() const { return m_targetArn; }
89 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
90 template <typename TargetArnT = Aws::String>
91 void SetTargetArn(TargetArnT&& value) {
92 m_targetArnHasBeenSet = true;
93 m_targetArn = std::forward<TargetArnT>(value);
94 }
95 template <typename TargetArnT = Aws::String>
96 SubscriberSummary& WithTargetArn(TargetArnT&& value) {
97 SetTargetArn(std::forward<TargetArnT>(value));
98 return *this;
99 }
101
103
104 inline OrderingType GetType() const { return m_type; }
105 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
106 inline void SetType(OrderingType value) {
107 m_typeHasBeenSet = true;
108 m_type = value;
109 }
111 SetType(value);
112 return *this;
113 }
115
117
122 inline bool GetRevoked() const { return m_revoked; }
123 inline bool RevokedHasBeenSet() const { return m_revokedHasBeenSet; }
124 inline void SetRevoked(bool value) {
125 m_revokedHasBeenSet = true;
126 m_revoked = value;
127 }
128 inline SubscriberSummary& WithRevoked(bool value) {
129 SetRevoked(value);
130 return *this;
131 }
133
135
136 inline SubscriberState GetState() const { return m_state; }
137 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
138 inline void SetState(SubscriberState value) {
139 m_stateHasBeenSet = true;
140 m_state = value;
141 }
143 SetState(value);
144 return *this;
145 }
147
149
152 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
153 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
154 template <typename CreationTimeT = Aws::Utils::DateTime>
155 void SetCreationTime(CreationTimeT&& value) {
156 m_creationTimeHasBeenSet = true;
157 m_creationTime = std::forward<CreationTimeT>(value);
158 }
159 template <typename CreationTimeT = Aws::Utils::DateTime>
160 SubscriberSummary& WithCreationTime(CreationTimeT&& value) {
161 SetCreationTime(std::forward<CreationTimeT>(value));
162 return *this;
163 }
165
167
170 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
171 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
172 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
173 void SetLastModifiedTime(LastModifiedTimeT&& value) {
174 m_lastModifiedTimeHasBeenSet = true;
175 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
176 }
177 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
178 SubscriberSummary& WithLastModifiedTime(LastModifiedTimeT&& value) {
179 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
180 return *this;
181 }
183
185
186 inline const Aws::String& GetSubscriberAccountId() const { return m_subscriberAccountId; }
187 inline bool SubscriberAccountIdHasBeenSet() const { return m_subscriberAccountIdHasBeenSet; }
188 template <typename SubscriberAccountIdT = Aws::String>
189 void SetSubscriberAccountId(SubscriberAccountIdT&& value) {
190 m_subscriberAccountIdHasBeenSet = true;
191 m_subscriberAccountId = std::forward<SubscriberAccountIdT>(value);
192 }
193 template <typename SubscriberAccountIdT = Aws::String>
194 SubscriberSummary& WithSubscriberAccountId(SubscriberAccountIdT&& value) {
195 SetSubscriberAccountId(std::forward<SubscriberAccountIdT>(value));
196 return *this;
197 }
199 private:
200 Aws::String m_subscriberArn;
201
202 Aws::String m_name;
203
204 Aws::String m_eventBusArn;
205
206 Aws::String m_targetArn;
207
209
210 bool m_revoked{false};
211
213
214 Aws::Utils::DateTime m_creationTime{};
215
216 Aws::Utils::DateTime m_lastModifiedTime{};
217
218 Aws::String m_subscriberAccountId;
219 bool m_subscriberArnHasBeenSet = false;
220 bool m_nameHasBeenSet = false;
221 bool m_eventBusArnHasBeenSet = false;
222 bool m_targetArnHasBeenSet = false;
223 bool m_typeHasBeenSet = false;
224 bool m_revokedHasBeenSet = false;
225 bool m_stateHasBeenSet = false;
226 bool m_creationTimeHasBeenSet = false;
227 bool m_lastModifiedTimeHasBeenSet = false;
228 bool m_subscriberAccountIdHasBeenSet = false;
229};
230
231} // namespace Model
232} // namespace EventBridgeV2
233} // namespace Aws
AWS_EVENTBRIDGEV2_API SubscriberSummary(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
SubscriberSummary & WithType(OrderingType value)
AWS_EVENTBRIDGEV2_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const Aws::String & GetSubscriberAccountId() const
const Aws::Utils::DateTime & GetCreationTime() const
const Aws::Utils::DateTime & GetLastModifiedTime() const
SubscriberSummary & WithRevoked(bool value)
SubscriberSummary & WithSubscriberArn(SubscriberArnT &&value)
void SetSubscriberArn(SubscriberArnT &&value)
SubscriberSummary & WithEventBusArn(EventBusArnT &&value)
void SetSubscriberAccountId(SubscriberAccountIdT &&value)
SubscriberSummary & WithSubscriberAccountId(SubscriberAccountIdT &&value)
SubscriberSummary & WithState(SubscriberState value)
AWS_EVENTBRIDGEV2_API SubscriberSummary()=default
SubscriberSummary & WithCreationTime(CreationTimeT &&value)
void SetLastModifiedTime(LastModifiedTimeT &&value)
SubscriberSummary & WithTargetArn(TargetArnT &&value)
AWS_EVENTBRIDGEV2_API SubscriberSummary & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
SubscriberSummary & WithName(NameT &&value)
SubscriberSummary & WithLastModifiedTime(LastModifiedTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String