AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateApiDestinationRequest.h
1
6#pragma once
7#include <aws/eventbridge/EventBridge_EXPORTS.h>
8#include <aws/eventbridge/EventBridgeRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/eventbridge/model/ApiDestinationHttpMethod.h>
11#include <utility>
12
13namespace Aws
14{
15namespace EventBridge
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_EVENTBRIDGE_API CreateApiDestinationRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateApiDestination"; }
32
33 AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override;
34
35 AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template<typename NameT = Aws::String>
45 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
46 template<typename NameT = Aws::String>
47 CreateApiDestinationRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
49
51
54 inline const Aws::String& GetDescription() const { return m_description; }
55 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
56 template<typename DescriptionT = Aws::String>
57 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
58 template<typename DescriptionT = Aws::String>
59 CreateApiDestinationRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
61
63
67 inline const Aws::String& GetConnectionArn() const { return m_connectionArn; }
68 inline bool ConnectionArnHasBeenSet() const { return m_connectionArnHasBeenSet; }
69 template<typename ConnectionArnT = Aws::String>
70 void SetConnectionArn(ConnectionArnT&& value) { m_connectionArnHasBeenSet = true; m_connectionArn = std::forward<ConnectionArnT>(value); }
71 template<typename ConnectionArnT = Aws::String>
72 CreateApiDestinationRequest& WithConnectionArn(ConnectionArnT&& value) { SetConnectionArn(std::forward<ConnectionArnT>(value)); return *this;}
74
76
79 inline const Aws::String& GetInvocationEndpoint() const { return m_invocationEndpoint; }
80 inline bool InvocationEndpointHasBeenSet() const { return m_invocationEndpointHasBeenSet; }
81 template<typename InvocationEndpointT = Aws::String>
82 void SetInvocationEndpoint(InvocationEndpointT&& value) { m_invocationEndpointHasBeenSet = true; m_invocationEndpoint = std::forward<InvocationEndpointT>(value); }
83 template<typename InvocationEndpointT = Aws::String>
84 CreateApiDestinationRequest& WithInvocationEndpoint(InvocationEndpointT&& value) { SetInvocationEndpoint(std::forward<InvocationEndpointT>(value)); return *this;}
86
88
91 inline ApiDestinationHttpMethod GetHttpMethod() const { return m_httpMethod; }
92 inline bool HttpMethodHasBeenSet() const { return m_httpMethodHasBeenSet; }
93 inline void SetHttpMethod(ApiDestinationHttpMethod value) { m_httpMethodHasBeenSet = true; m_httpMethod = value; }
96
98
102 inline int GetInvocationRateLimitPerSecond() const { return m_invocationRateLimitPerSecond; }
103 inline bool InvocationRateLimitPerSecondHasBeenSet() const { return m_invocationRateLimitPerSecondHasBeenSet; }
104 inline void SetInvocationRateLimitPerSecond(int value) { m_invocationRateLimitPerSecondHasBeenSet = true; m_invocationRateLimitPerSecond = value; }
107 private:
108
109 Aws::String m_name;
110 bool m_nameHasBeenSet = false;
111
112 Aws::String m_description;
113 bool m_descriptionHasBeenSet = false;
114
115 Aws::String m_connectionArn;
116 bool m_connectionArnHasBeenSet = false;
117
118 Aws::String m_invocationEndpoint;
119 bool m_invocationEndpointHasBeenSet = false;
120
122 bool m_httpMethodHasBeenSet = false;
123
124 int m_invocationRateLimitPerSecond{0};
125 bool m_invocationRateLimitPerSecondHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace EventBridge
130} // 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