AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ApiDestination.h
1
6#pragma once
7#include <aws/eventbridge/EventBridge_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/eventbridge/model/ApiDestinationState.h>
10#include <aws/eventbridge/model/ApiDestinationHttpMethod.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace EventBridge
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_EVENTBRIDGE_API ApiDestination() = default;
38 AWS_EVENTBRIDGE_API ApiDestination(Aws::Utils::Json::JsonView jsonValue);
39 AWS_EVENTBRIDGE_API ApiDestination& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetApiDestinationArn() const { return m_apiDestinationArn; }
48 inline bool ApiDestinationArnHasBeenSet() const { return m_apiDestinationArnHasBeenSet; }
49 template<typename ApiDestinationArnT = Aws::String>
50 void SetApiDestinationArn(ApiDestinationArnT&& value) { m_apiDestinationArnHasBeenSet = true; m_apiDestinationArn = std::forward<ApiDestinationArnT>(value); }
51 template<typename ApiDestinationArnT = Aws::String>
52 ApiDestination& WithApiDestinationArn(ApiDestinationArnT&& value) { SetApiDestinationArn(std::forward<ApiDestinationArnT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
63 template<typename NameT = Aws::String>
64 ApiDestination& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
66
68
71 inline ApiDestinationState GetApiDestinationState() const { return m_apiDestinationState; }
72 inline bool ApiDestinationStateHasBeenSet() const { return m_apiDestinationStateHasBeenSet; }
73 inline void SetApiDestinationState(ApiDestinationState value) { m_apiDestinationStateHasBeenSet = true; m_apiDestinationState = value; }
76
78
81 inline const Aws::String& GetConnectionArn() const { return m_connectionArn; }
82 inline bool ConnectionArnHasBeenSet() const { return m_connectionArnHasBeenSet; }
83 template<typename ConnectionArnT = Aws::String>
84 void SetConnectionArn(ConnectionArnT&& value) { m_connectionArnHasBeenSet = true; m_connectionArn = std::forward<ConnectionArnT>(value); }
85 template<typename ConnectionArnT = Aws::String>
86 ApiDestination& WithConnectionArn(ConnectionArnT&& value) { SetConnectionArn(std::forward<ConnectionArnT>(value)); return *this;}
88
90
93 inline const Aws::String& GetInvocationEndpoint() const { return m_invocationEndpoint; }
94 inline bool InvocationEndpointHasBeenSet() const { return m_invocationEndpointHasBeenSet; }
95 template<typename InvocationEndpointT = Aws::String>
96 void SetInvocationEndpoint(InvocationEndpointT&& value) { m_invocationEndpointHasBeenSet = true; m_invocationEndpoint = std::forward<InvocationEndpointT>(value); }
97 template<typename InvocationEndpointT = Aws::String>
98 ApiDestination& WithInvocationEndpoint(InvocationEndpointT&& value) { SetInvocationEndpoint(std::forward<InvocationEndpointT>(value)); return *this;}
100
102
105 inline ApiDestinationHttpMethod GetHttpMethod() const { return m_httpMethod; }
106 inline bool HttpMethodHasBeenSet() const { return m_httpMethodHasBeenSet; }
107 inline void SetHttpMethod(ApiDestinationHttpMethod value) { m_httpMethodHasBeenSet = true; m_httpMethod = value; }
110
112
116 inline int GetInvocationRateLimitPerSecond() const { return m_invocationRateLimitPerSecond; }
117 inline bool InvocationRateLimitPerSecondHasBeenSet() const { return m_invocationRateLimitPerSecondHasBeenSet; }
118 inline void SetInvocationRateLimitPerSecond(int value) { m_invocationRateLimitPerSecondHasBeenSet = true; m_invocationRateLimitPerSecond = value; }
121
123
126 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
127 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
128 template<typename CreationTimeT = Aws::Utils::DateTime>
129 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
130 template<typename CreationTimeT = Aws::Utils::DateTime>
131 ApiDestination& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
133
135
138 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
139 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
140 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
141 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
142 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
143 ApiDestination& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
145 private:
146
147 Aws::String m_apiDestinationArn;
148 bool m_apiDestinationArnHasBeenSet = false;
149
150 Aws::String m_name;
151 bool m_nameHasBeenSet = false;
152
154 bool m_apiDestinationStateHasBeenSet = false;
155
156 Aws::String m_connectionArn;
157 bool m_connectionArnHasBeenSet = false;
158
159 Aws::String m_invocationEndpoint;
160 bool m_invocationEndpointHasBeenSet = false;
161
163 bool m_httpMethodHasBeenSet = false;
164
165 int m_invocationRateLimitPerSecond{0};
166 bool m_invocationRateLimitPerSecondHasBeenSet = false;
167
168 Aws::Utils::DateTime m_creationTime{};
169 bool m_creationTimeHasBeenSet = false;
170
171 Aws::Utils::DateTime m_lastModifiedTime{};
172 bool m_lastModifiedTimeHasBeenSet = false;
173 };
174
175} // namespace Model
176} // namespace EventBridge
177} // 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