AWS SDK for C++

AWS SDK for C++ Version 1.11.901

Loading...
Searching...
No Matches
CreateSubscriberResult.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/AWSString.h>
10#include <aws/crt/cbor/Cbor.h>
11#include <aws/eventbridgev2/EventBridgeV2_EXPORTS.h>
12#include <aws/eventbridgev2/model/OrderingType.h>
13#include <aws/eventbridgev2/model/PointInTimeConfiguration.h>
14#include <aws/eventbridgev2/model/StartingPosition.h>
15#include <aws/eventbridgev2/model/SubscriberState.h>
16
17#include <utility>
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Cbor {
24class CborValue;
25} // namespace Cbor
26} // namespace Utils
27namespace EventBridgeV2 {
28namespace Model {
30 public:
31 AWS_EVENTBRIDGEV2_API CreateSubscriberResult() = default;
34
36
37 inline const Aws::String& GetSubscriberArn() const { return m_subscriberArn; }
38 template <typename SubscriberArnT = Aws::String>
39 void SetSubscriberArn(SubscriberArnT&& value) {
40 m_subscriberArnHasBeenSet = true;
41 m_subscriberArn = std::forward<SubscriberArnT>(value);
42 }
43 template <typename SubscriberArnT = Aws::String>
44 CreateSubscriberResult& WithSubscriberArn(SubscriberArnT&& value) {
45 SetSubscriberArn(std::forward<SubscriberArnT>(value));
46 return *this;
47 }
49
51
52 inline const Aws::String& GetName() const { return m_name; }
53 template <typename NameT = Aws::String>
54 void SetName(NameT&& value) {
55 m_nameHasBeenSet = true;
56 m_name = std::forward<NameT>(value);
57 }
58 template <typename NameT = Aws::String>
60 SetName(std::forward<NameT>(value));
61 return *this;
62 }
64
66
67 inline const Aws::String& GetEventBusArn() const { return m_eventBusArn; }
68 template <typename EventBusArnT = Aws::String>
69 void SetEventBusArn(EventBusArnT&& value) {
70 m_eventBusArnHasBeenSet = true;
71 m_eventBusArn = std::forward<EventBusArnT>(value);
72 }
73 template <typename EventBusArnT = Aws::String>
74 CreateSubscriberResult& WithEventBusArn(EventBusArnT&& value) {
75 SetEventBusArn(std::forward<EventBusArnT>(value));
76 return *this;
77 }
79
81
82 inline OrderingType GetType() const { return m_type; }
83 inline void SetType(OrderingType value) {
84 m_typeHasBeenSet = true;
85 m_type = value;
86 }
88 SetType(value);
89 return *this;
90 }
92
94
95 inline StartingPosition GetStartingPosition() const { return m_startingPosition; }
97 m_startingPositionHasBeenSet = true;
98 m_startingPosition = value;
99 }
101 SetStartingPosition(value);
102 return *this;
103 }
105
107
108 inline const PointInTimeConfiguration& GetPointInTimeConfiguration() const { return m_pointInTimeConfiguration; }
109 template <typename PointInTimeConfigurationT = PointInTimeConfiguration>
110 void SetPointInTimeConfiguration(PointInTimeConfigurationT&& value) {
111 m_pointInTimeConfigurationHasBeenSet = true;
112 m_pointInTimeConfiguration = std::forward<PointInTimeConfigurationT>(value);
113 }
114 template <typename PointInTimeConfigurationT = PointInTimeConfiguration>
115 CreateSubscriberResult& WithPointInTimeConfiguration(PointInTimeConfigurationT&& value) {
116 SetPointInTimeConfiguration(std::forward<PointInTimeConfigurationT>(value));
117 return *this;
118 }
120
122
123 inline SubscriberState GetState() const { return m_state; }
124 inline void SetState(SubscriberState value) {
125 m_stateHasBeenSet = true;
126 m_state = value;
127 }
129 SetState(value);
130 return *this;
131 }
133
135
138 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
139 template <typename CreationTimeT = Aws::Utils::DateTime>
140 void SetCreationTime(CreationTimeT&& value) {
141 m_creationTimeHasBeenSet = true;
142 m_creationTime = std::forward<CreationTimeT>(value);
143 }
144 template <typename CreationTimeT = Aws::Utils::DateTime>
145 CreateSubscriberResult& WithCreationTime(CreationTimeT&& value) {
146 SetCreationTime(std::forward<CreationTimeT>(value));
147 return *this;
148 }
150
152
153 inline const Aws::String& GetRequestId() const { return m_requestId; }
154 template <typename RequestIdT = Aws::String>
155 void SetRequestId(RequestIdT&& value) {
156 m_requestIdHasBeenSet = true;
157 m_requestId = std::forward<RequestIdT>(value);
158 }
159 template <typename RequestIdT = Aws::String>
161 SetRequestId(std::forward<RequestIdT>(value));
162 return *this;
163 }
165 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
166
167 private:
168 Aws::String m_subscriberArn;
169
170 Aws::String m_name;
171
172 Aws::String m_eventBusArn;
173
175
177
178 PointInTimeConfiguration m_pointInTimeConfiguration;
179
181
182 Aws::Utils::DateTime m_creationTime{};
183
184 Aws::String m_requestId;
185 Aws::Http::HttpResponseCode m_HttpResponseCode;
186 bool m_subscriberArnHasBeenSet = false;
187 bool m_nameHasBeenSet = false;
188 bool m_eventBusArnHasBeenSet = false;
189 bool m_typeHasBeenSet = false;
190 bool m_startingPositionHasBeenSet = false;
191 bool m_pointInTimeConfigurationHasBeenSet = false;
192 bool m_stateHasBeenSet = false;
193 bool m_creationTimeHasBeenSet = false;
194 bool m_requestIdHasBeenSet = false;
195};
196
197} // namespace Model
198} // namespace EventBridgeV2
199} // namespace Aws
CreateSubscriberResult & WithPointInTimeConfiguration(PointInTimeConfigurationT &&value)
AWS_EVENTBRIDGEV2_API CreateSubscriberResult(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
CreateSubscriberResult & WithEventBusArn(EventBusArnT &&value)
CreateSubscriberResult & WithRequestId(RequestIdT &&value)
AWS_EVENTBRIDGEV2_API CreateSubscriberResult()=default
CreateSubscriberResult & WithState(SubscriberState value)
CreateSubscriberResult & WithType(OrderingType value)
const Aws::Utils::DateTime & GetCreationTime() const
CreateSubscriberResult & WithName(NameT &&value)
CreateSubscriberResult & WithStartingPosition(StartingPosition value)
CreateSubscriberResult & WithSubscriberArn(SubscriberArnT &&value)
const PointInTimeConfiguration & GetPointInTimeConfiguration() const
AWS_EVENTBRIDGEV2_API CreateSubscriberResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
void SetPointInTimeConfiguration(PointInTimeConfigurationT &&value)
CreateSubscriberResult & WithCreationTime(CreationTimeT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String