AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ApiDestination.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/eventbridge/EventBridge_EXPORTS.h>
10#include <aws/eventbridge/model/ApiDestinationHttpMethod.h>
11#include <aws/eventbridge/model/ApiDestinationState.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace EventBridge {
23namespace Model {
24
31 public:
32 AWS_EVENTBRIDGE_API ApiDestination() = default;
33 AWS_EVENTBRIDGE_API ApiDestination(Aws::Utils::Json::JsonView jsonValue);
34 AWS_EVENTBRIDGE_API ApiDestination& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetApiDestinationArn() const { return m_apiDestinationArn; }
42 inline bool ApiDestinationArnHasBeenSet() const { return m_apiDestinationArnHasBeenSet; }
43 template <typename ApiDestinationArnT = Aws::String>
44 void SetApiDestinationArn(ApiDestinationArnT&& value) {
45 m_apiDestinationArnHasBeenSet = true;
46 m_apiDestinationArn = std::forward<ApiDestinationArnT>(value);
47 }
48 template <typename ApiDestinationArnT = Aws::String>
49 ApiDestination& WithApiDestinationArn(ApiDestinationArnT&& value) {
50 SetApiDestinationArn(std::forward<ApiDestinationArnT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
67 ApiDestination& WithName(NameT&& value) {
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
77 inline ApiDestinationState GetApiDestinationState() const { return m_apiDestinationState; }
78 inline bool ApiDestinationStateHasBeenSet() const { return m_apiDestinationStateHasBeenSet; }
80 m_apiDestinationStateHasBeenSet = true;
81 m_apiDestinationState = value;
82 }
85 return *this;
86 }
88
90
93 inline const Aws::String& GetConnectionArn() const { return m_connectionArn; }
94 inline bool ConnectionArnHasBeenSet() const { return m_connectionArnHasBeenSet; }
95 template <typename ConnectionArnT = Aws::String>
96 void SetConnectionArn(ConnectionArnT&& value) {
97 m_connectionArnHasBeenSet = true;
98 m_connectionArn = std::forward<ConnectionArnT>(value);
99 }
100 template <typename ConnectionArnT = Aws::String>
101 ApiDestination& WithConnectionArn(ConnectionArnT&& value) {
102 SetConnectionArn(std::forward<ConnectionArnT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetInvocationEndpoint() const { return m_invocationEndpoint; }
112 inline bool InvocationEndpointHasBeenSet() const { return m_invocationEndpointHasBeenSet; }
113 template <typename InvocationEndpointT = Aws::String>
114 void SetInvocationEndpoint(InvocationEndpointT&& value) {
115 m_invocationEndpointHasBeenSet = true;
116 m_invocationEndpoint = std::forward<InvocationEndpointT>(value);
117 }
118 template <typename InvocationEndpointT = Aws::String>
119 ApiDestination& WithInvocationEndpoint(InvocationEndpointT&& value) {
120 SetInvocationEndpoint(std::forward<InvocationEndpointT>(value));
121 return *this;
122 }
124
126
129 inline ApiDestinationHttpMethod GetHttpMethod() const { return m_httpMethod; }
130 inline bool HttpMethodHasBeenSet() const { return m_httpMethodHasBeenSet; }
132 m_httpMethodHasBeenSet = true;
133 m_httpMethod = value;
134 }
136 SetHttpMethod(value);
137 return *this;
138 }
140
142
146 inline int GetInvocationRateLimitPerSecond() const { return m_invocationRateLimitPerSecond; }
147 inline bool InvocationRateLimitPerSecondHasBeenSet() const { return m_invocationRateLimitPerSecondHasBeenSet; }
148 inline void SetInvocationRateLimitPerSecond(int value) {
149 m_invocationRateLimitPerSecondHasBeenSet = true;
150 m_invocationRateLimitPerSecond = value;
151 }
154 return *this;
155 }
157
159
162 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
163 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
164 template <typename CreationTimeT = Aws::Utils::DateTime>
165 void SetCreationTime(CreationTimeT&& value) {
166 m_creationTimeHasBeenSet = true;
167 m_creationTime = std::forward<CreationTimeT>(value);
168 }
169 template <typename CreationTimeT = Aws::Utils::DateTime>
170 ApiDestination& WithCreationTime(CreationTimeT&& value) {
171 SetCreationTime(std::forward<CreationTimeT>(value));
172 return *this;
173 }
175
177
180 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
181 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
182 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
183 void SetLastModifiedTime(LastModifiedTimeT&& value) {
184 m_lastModifiedTimeHasBeenSet = true;
185 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
186 }
187 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
188 ApiDestination& WithLastModifiedTime(LastModifiedTimeT&& value) {
189 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
190 return *this;
191 }
193 private:
194 Aws::String m_apiDestinationArn;
195
196 Aws::String m_name;
197
199
200 Aws::String m_connectionArn;
201
202 Aws::String m_invocationEndpoint;
203
205
206 int m_invocationRateLimitPerSecond{0};
207
208 Aws::Utils::DateTime m_creationTime{};
209
210 Aws::Utils::DateTime m_lastModifiedTime{};
211 bool m_apiDestinationArnHasBeenSet = false;
212 bool m_nameHasBeenSet = false;
213 bool m_apiDestinationStateHasBeenSet = false;
214 bool m_connectionArnHasBeenSet = false;
215 bool m_invocationEndpointHasBeenSet = false;
216 bool m_httpMethodHasBeenSet = false;
217 bool m_invocationRateLimitPerSecondHasBeenSet = false;
218 bool m_creationTimeHasBeenSet = false;
219 bool m_lastModifiedTimeHasBeenSet = false;
220};
221
222} // namespace Model
223} // namespace EventBridge
224} // namespace Aws
void SetCreationTime(CreationTimeT &&value)
AWS_EVENTBRIDGE_API ApiDestination()=default
const Aws::Utils::DateTime & GetCreationTime() const
ApiDestinationHttpMethod GetHttpMethod() const
ApiDestination & WithInvocationEndpoint(InvocationEndpointT &&value)
ApiDestination & WithHttpMethod(ApiDestinationHttpMethod value)
void SetConnectionArn(ConnectionArnT &&value)
ApiDestination & WithName(NameT &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
void SetApiDestinationArn(ApiDestinationArnT &&value)
AWS_EVENTBRIDGE_API ApiDestination & operator=(Aws::Utils::Json::JsonView jsonValue)
ApiDestination & WithLastModifiedTime(LastModifiedTimeT &&value)
ApiDestination & WithConnectionArn(ConnectionArnT &&value)
const Aws::String & GetApiDestinationArn() const
AWS_EVENTBRIDGE_API ApiDestination(Aws::Utils::Json::JsonView jsonValue)
ApiDestination & WithApiDestinationArn(ApiDestinationArnT &&value)
const Aws::String & GetConnectionArn() const
ApiDestination & WithApiDestinationState(ApiDestinationState value)
const Aws::String & GetInvocationEndpoint() const
void SetLastModifiedTime(LastModifiedTimeT &&value)
void SetHttpMethod(ApiDestinationHttpMethod value)
ApiDestination & WithInvocationRateLimitPerSecond(int value)
void SetApiDestinationState(ApiDestinationState value)
ApiDestination & WithCreationTime(CreationTimeT &&value)
AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const
ApiDestinationState GetApiDestinationState() const
void SetInvocationEndpoint(InvocationEndpointT &&value)
const Aws::String & GetName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue