AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateApiDestinationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/eventbridge/EventBridgeRequest.h>
9#include <aws/eventbridge/EventBridge_EXPORTS.h>
10#include <aws/eventbridge/model/ApiDestinationHttpMethod.h>
11
12#include <utility>
13
14namespace Aws {
15namespace EventBridge {
16namespace Model {
17
21 public:
22 AWS_EVENTBRIDGE_API CreateApiDestinationRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreateApiDestination"; }
29
30 AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override;
31
32 AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
38 inline const Aws::String& GetName() const { return m_name; }
39 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
40 template <typename NameT = Aws::String>
41 void SetName(NameT&& value) {
42 m_nameHasBeenSet = true;
43 m_name = std::forward<NameT>(value);
44 }
45 template <typename NameT = Aws::String>
47 SetName(std::forward<NameT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetDescription() const { return m_description; }
57 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
58 template <typename DescriptionT = Aws::String>
59 void SetDescription(DescriptionT&& value) {
60 m_descriptionHasBeenSet = true;
61 m_description = std::forward<DescriptionT>(value);
62 }
63 template <typename DescriptionT = Aws::String>
65 SetDescription(std::forward<DescriptionT>(value));
66 return *this;
67 }
69
71
75 inline const Aws::String& GetConnectionArn() const { return m_connectionArn; }
76 inline bool ConnectionArnHasBeenSet() const { return m_connectionArnHasBeenSet; }
77 template <typename ConnectionArnT = Aws::String>
78 void SetConnectionArn(ConnectionArnT&& value) {
79 m_connectionArnHasBeenSet = true;
80 m_connectionArn = std::forward<ConnectionArnT>(value);
81 }
82 template <typename ConnectionArnT = Aws::String>
84 SetConnectionArn(std::forward<ConnectionArnT>(value));
85 return *this;
86 }
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) {
97 m_invocationEndpointHasBeenSet = true;
98 m_invocationEndpoint = std::forward<InvocationEndpointT>(value);
99 }
100 template <typename InvocationEndpointT = Aws::String>
102 SetInvocationEndpoint(std::forward<InvocationEndpointT>(value));
103 return *this;
104 }
106
108
111 inline ApiDestinationHttpMethod GetHttpMethod() const { return m_httpMethod; }
112 inline bool HttpMethodHasBeenSet() const { return m_httpMethodHasBeenSet; }
114 m_httpMethodHasBeenSet = true;
115 m_httpMethod = value;
116 }
118 SetHttpMethod(value);
119 return *this;
120 }
122
124
128 inline int GetInvocationRateLimitPerSecond() const { return m_invocationRateLimitPerSecond; }
129 inline bool InvocationRateLimitPerSecondHasBeenSet() const { return m_invocationRateLimitPerSecondHasBeenSet; }
130 inline void SetInvocationRateLimitPerSecond(int value) {
131 m_invocationRateLimitPerSecondHasBeenSet = true;
132 m_invocationRateLimitPerSecond = value;
133 }
136 return *this;
137 }
139 private:
140 Aws::String m_name;
141
142 Aws::String m_description;
143
144 Aws::String m_connectionArn;
145
146 Aws::String m_invocationEndpoint;
147
149
150 int m_invocationRateLimitPerSecond{0};
151 bool m_nameHasBeenSet = false;
152 bool m_descriptionHasBeenSet = false;
153 bool m_connectionArnHasBeenSet = false;
154 bool m_invocationEndpointHasBeenSet = false;
155 bool m_httpMethodHasBeenSet = false;
156 bool m_invocationRateLimitPerSecondHasBeenSet = false;
157};
158
159} // namespace Model
160} // namespace EventBridge
161} // namespace Aws
CreateApiDestinationRequest & WithName(NameT &&value)
CreateApiDestinationRequest & WithInvocationEndpoint(InvocationEndpointT &&value)
CreateApiDestinationRequest & WithDescription(DescriptionT &&value)
CreateApiDestinationRequest & WithConnectionArn(ConnectionArnT &&value)
AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override
CreateApiDestinationRequest & WithInvocationRateLimitPerSecond(int value)
AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_EVENTBRIDGE_API CreateApiDestinationRequest()=default
CreateApiDestinationRequest & WithHttpMethod(ApiDestinationHttpMethod value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String