AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
45 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
46 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
47 inline CreateApiDestinationRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
48 inline CreateApiDestinationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
49 inline CreateApiDestinationRequest& WithName(const char* value) { SetName(value); return *this;}
51
53
56 inline const Aws::String& GetDescription() const{ return m_description; }
57 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
58 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
59 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
60 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
61 inline CreateApiDestinationRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
62 inline CreateApiDestinationRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
63 inline CreateApiDestinationRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
65
67
71 inline const Aws::String& GetConnectionArn() const{ return m_connectionArn; }
72 inline bool ConnectionArnHasBeenSet() const { return m_connectionArnHasBeenSet; }
73 inline void SetConnectionArn(const Aws::String& value) { m_connectionArnHasBeenSet = true; m_connectionArn = value; }
74 inline void SetConnectionArn(Aws::String&& value) { m_connectionArnHasBeenSet = true; m_connectionArn = std::move(value); }
75 inline void SetConnectionArn(const char* value) { m_connectionArnHasBeenSet = true; m_connectionArn.assign(value); }
76 inline CreateApiDestinationRequest& WithConnectionArn(const Aws::String& value) { SetConnectionArn(value); return *this;}
77 inline CreateApiDestinationRequest& WithConnectionArn(Aws::String&& value) { SetConnectionArn(std::move(value)); return *this;}
78 inline CreateApiDestinationRequest& WithConnectionArn(const char* value) { SetConnectionArn(value); return *this;}
80
82
85 inline const Aws::String& GetInvocationEndpoint() const{ return m_invocationEndpoint; }
86 inline bool InvocationEndpointHasBeenSet() const { return m_invocationEndpointHasBeenSet; }
87 inline void SetInvocationEndpoint(const Aws::String& value) { m_invocationEndpointHasBeenSet = true; m_invocationEndpoint = value; }
88 inline void SetInvocationEndpoint(Aws::String&& value) { m_invocationEndpointHasBeenSet = true; m_invocationEndpoint = std::move(value); }
89 inline void SetInvocationEndpoint(const char* value) { m_invocationEndpointHasBeenSet = true; m_invocationEndpoint.assign(value); }
91 inline CreateApiDestinationRequest& WithInvocationEndpoint(Aws::String&& value) { SetInvocationEndpoint(std::move(value)); return *this;}
92 inline CreateApiDestinationRequest& WithInvocationEndpoint(const char* value) { SetInvocationEndpoint(value); return *this;}
94
96
99 inline const ApiDestinationHttpMethod& GetHttpMethod() const{ return m_httpMethod; }
100 inline bool HttpMethodHasBeenSet() const { return m_httpMethodHasBeenSet; }
101 inline void SetHttpMethod(const ApiDestinationHttpMethod& value) { m_httpMethodHasBeenSet = true; m_httpMethod = value; }
102 inline void SetHttpMethod(ApiDestinationHttpMethod&& value) { m_httpMethodHasBeenSet = true; m_httpMethod = std::move(value); }
104 inline CreateApiDestinationRequest& WithHttpMethod(ApiDestinationHttpMethod&& value) { SetHttpMethod(std::move(value)); return *this;}
106
108
112 inline int GetInvocationRateLimitPerSecond() const{ return m_invocationRateLimitPerSecond; }
113 inline bool InvocationRateLimitPerSecondHasBeenSet() const { return m_invocationRateLimitPerSecondHasBeenSet; }
114 inline void SetInvocationRateLimitPerSecond(int value) { m_invocationRateLimitPerSecondHasBeenSet = true; m_invocationRateLimitPerSecond = value; }
117 private:
118
119 Aws::String m_name;
120 bool m_nameHasBeenSet = false;
121
122 Aws::String m_description;
123 bool m_descriptionHasBeenSet = false;
124
125 Aws::String m_connectionArn;
126 bool m_connectionArnHasBeenSet = false;
127
128 Aws::String m_invocationEndpoint;
129 bool m_invocationEndpointHasBeenSet = false;
130
131 ApiDestinationHttpMethod m_httpMethod;
132 bool m_httpMethodHasBeenSet = false;
133
134 int m_invocationRateLimitPerSecond;
135 bool m_invocationRateLimitPerSecondHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace EventBridge
140} // namespace Aws
CreateApiDestinationRequest & WithConnectionArn(Aws::String &&value)
void SetHttpMethod(const ApiDestinationHttpMethod &value)
CreateApiDestinationRequest & WithHttpMethod(const ApiDestinationHttpMethod &value)
CreateApiDestinationRequest & WithConnectionArn(const char *value)
CreateApiDestinationRequest & WithDescription(const char *value)
CreateApiDestinationRequest & WithConnectionArn(const Aws::String &value)
CreateApiDestinationRequest & WithHttpMethod(ApiDestinationHttpMethod &&value)
CreateApiDestinationRequest & WithInvocationEndpoint(Aws::String &&value)
CreateApiDestinationRequest & WithDescription(Aws::String &&value)
CreateApiDestinationRequest & WithName(Aws::String &&value)
CreateApiDestinationRequest & WithDescription(const Aws::String &value)
AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override
CreateApiDestinationRequest & WithInvocationRateLimitPerSecond(int value)
AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateApiDestinationRequest & WithName(const Aws::String &value)
CreateApiDestinationRequest & WithName(const char *value)
CreateApiDestinationRequest & WithInvocationEndpoint(const Aws::String &value)
CreateApiDestinationRequest & WithInvocationEndpoint(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String