AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UpdateApiDestinationRequest.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 UpdateApiDestinationRequest() = 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 "UpdateApiDestination"; }
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
74 inline const Aws::String& GetConnectionArn() const { return m_connectionArn; }
75 inline bool ConnectionArnHasBeenSet() const { return m_connectionArnHasBeenSet; }
76 template <typename ConnectionArnT = Aws::String>
77 void SetConnectionArn(ConnectionArnT&& value) {
78 m_connectionArnHasBeenSet = true;
79 m_connectionArn = std::forward<ConnectionArnT>(value);
80 }
81 template <typename ConnectionArnT = Aws::String>
83 SetConnectionArn(std::forward<ConnectionArnT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetInvocationEndpoint() const { return m_invocationEndpoint; }
93 inline bool InvocationEndpointHasBeenSet() const { return m_invocationEndpointHasBeenSet; }
94 template <typename InvocationEndpointT = Aws::String>
95 void SetInvocationEndpoint(InvocationEndpointT&& value) {
96 m_invocationEndpointHasBeenSet = true;
97 m_invocationEndpoint = std::forward<InvocationEndpointT>(value);
98 }
99 template <typename InvocationEndpointT = Aws::String>
101 SetInvocationEndpoint(std::forward<InvocationEndpointT>(value));
102 return *this;
103 }
105
107
110 inline ApiDestinationHttpMethod GetHttpMethod() const { return m_httpMethod; }
111 inline bool HttpMethodHasBeenSet() const { return m_httpMethodHasBeenSet; }
113 m_httpMethodHasBeenSet = true;
114 m_httpMethod = value;
115 }
117 SetHttpMethod(value);
118 return *this;
119 }
121
123
127 inline int GetInvocationRateLimitPerSecond() const { return m_invocationRateLimitPerSecond; }
128 inline bool InvocationRateLimitPerSecondHasBeenSet() const { return m_invocationRateLimitPerSecondHasBeenSet; }
129 inline void SetInvocationRateLimitPerSecond(int value) {
130 m_invocationRateLimitPerSecondHasBeenSet = true;
131 m_invocationRateLimitPerSecond = value;
132 }
135 return *this;
136 }
138 private:
139 Aws::String m_name;
140
141 Aws::String m_description;
142
143 Aws::String m_connectionArn;
144
145 Aws::String m_invocationEndpoint;
146
148
149 int m_invocationRateLimitPerSecond{0};
150 bool m_nameHasBeenSet = false;
151 bool m_descriptionHasBeenSet = false;
152 bool m_connectionArnHasBeenSet = false;
153 bool m_invocationEndpointHasBeenSet = false;
154 bool m_httpMethodHasBeenSet = false;
155 bool m_invocationRateLimitPerSecondHasBeenSet = false;
156};
157
158} // namespace Model
159} // namespace EventBridge
160} // namespace Aws
UpdateApiDestinationRequest & WithName(NameT &&value)
AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateApiDestinationRequest & WithConnectionArn(ConnectionArnT &&value)
UpdateApiDestinationRequest & WithInvocationEndpoint(InvocationEndpointT &&value)
UpdateApiDestinationRequest & WithHttpMethod(ApiDestinationHttpMethod value)
UpdateApiDestinationRequest & WithDescription(DescriptionT &&value)
AWS_EVENTBRIDGE_API UpdateApiDestinationRequest()=default
UpdateApiDestinationRequest & WithInvocationRateLimitPerSecond(int value)
AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String