AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateApiDestinationRequest.h
1
6#pragma once
7#include <aws/events/CloudWatchEvents_EXPORTS.h>
8#include <aws/events/CloudWatchEventsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/events/model/ApiDestinationHttpMethod.h>
11#include <utility>
12
13namespace Aws
14{
15namespace CloudWatchEvents
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CLOUDWATCHEVENTS_API UpdateApiDestinationRequest();
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 "UpdateApiDestination"; }
32
33 AWS_CLOUDWATCHEVENTS_API Aws::String SerializePayload() const override;
34
35 AWS_CLOUDWATCHEVENTS_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 UpdateApiDestinationRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
48 inline UpdateApiDestinationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
49 inline UpdateApiDestinationRequest& 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 UpdateApiDestinationRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
62 inline UpdateApiDestinationRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
63 inline UpdateApiDestinationRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
65
67
70 inline const Aws::String& GetConnectionArn() const{ return m_connectionArn; }
71 inline bool ConnectionArnHasBeenSet() const { return m_connectionArnHasBeenSet; }
72 inline void SetConnectionArn(const Aws::String& value) { m_connectionArnHasBeenSet = true; m_connectionArn = value; }
73 inline void SetConnectionArn(Aws::String&& value) { m_connectionArnHasBeenSet = true; m_connectionArn = std::move(value); }
74 inline void SetConnectionArn(const char* value) { m_connectionArnHasBeenSet = true; m_connectionArn.assign(value); }
75 inline UpdateApiDestinationRequest& WithConnectionArn(const Aws::String& value) { SetConnectionArn(value); return *this;}
76 inline UpdateApiDestinationRequest& WithConnectionArn(Aws::String&& value) { SetConnectionArn(std::move(value)); return *this;}
77 inline UpdateApiDestinationRequest& WithConnectionArn(const char* value) { SetConnectionArn(value); return *this;}
79
81
84 inline const Aws::String& GetInvocationEndpoint() const{ return m_invocationEndpoint; }
85 inline bool InvocationEndpointHasBeenSet() const { return m_invocationEndpointHasBeenSet; }
86 inline void SetInvocationEndpoint(const Aws::String& value) { m_invocationEndpointHasBeenSet = true; m_invocationEndpoint = value; }
87 inline void SetInvocationEndpoint(Aws::String&& value) { m_invocationEndpointHasBeenSet = true; m_invocationEndpoint = std::move(value); }
88 inline void SetInvocationEndpoint(const char* value) { m_invocationEndpointHasBeenSet = true; m_invocationEndpoint.assign(value); }
90 inline UpdateApiDestinationRequest& WithInvocationEndpoint(Aws::String&& value) { SetInvocationEndpoint(std::move(value)); return *this;}
91 inline UpdateApiDestinationRequest& WithInvocationEndpoint(const char* value) { SetInvocationEndpoint(value); return *this;}
93
95
98 inline const ApiDestinationHttpMethod& GetHttpMethod() const{ return m_httpMethod; }
99 inline bool HttpMethodHasBeenSet() const { return m_httpMethodHasBeenSet; }
100 inline void SetHttpMethod(const ApiDestinationHttpMethod& value) { m_httpMethodHasBeenSet = true; m_httpMethod = value; }
101 inline void SetHttpMethod(ApiDestinationHttpMethod&& value) { m_httpMethodHasBeenSet = true; m_httpMethod = std::move(value); }
103 inline UpdateApiDestinationRequest& WithHttpMethod(ApiDestinationHttpMethod&& value) { SetHttpMethod(std::move(value)); return *this;}
105
107
111 inline int GetInvocationRateLimitPerSecond() const{ return m_invocationRateLimitPerSecond; }
112 inline bool InvocationRateLimitPerSecondHasBeenSet() const { return m_invocationRateLimitPerSecondHasBeenSet; }
113 inline void SetInvocationRateLimitPerSecond(int value) { m_invocationRateLimitPerSecondHasBeenSet = true; m_invocationRateLimitPerSecond = value; }
116 private:
117
118 Aws::String m_name;
119 bool m_nameHasBeenSet = false;
120
121 Aws::String m_description;
122 bool m_descriptionHasBeenSet = false;
123
124 Aws::String m_connectionArn;
125 bool m_connectionArnHasBeenSet = false;
126
127 Aws::String m_invocationEndpoint;
128 bool m_invocationEndpointHasBeenSet = false;
129
130 ApiDestinationHttpMethod m_httpMethod;
131 bool m_httpMethodHasBeenSet = false;
132
133 int m_invocationRateLimitPerSecond;
134 bool m_invocationRateLimitPerSecondHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace CloudWatchEvents
139} // namespace Aws
UpdateApiDestinationRequest & WithConnectionArn(const Aws::String &value)
UpdateApiDestinationRequest & WithName(Aws::String &&value)
UpdateApiDestinationRequest & WithHttpMethod(const ApiDestinationHttpMethod &value)
UpdateApiDestinationRequest & WithHttpMethod(ApiDestinationHttpMethod &&value)
UpdateApiDestinationRequest & WithDescription(Aws::String &&value)
UpdateApiDestinationRequest & WithInvocationEndpoint(const char *value)
UpdateApiDestinationRequest & WithInvocationRateLimitPerSecond(int value)
UpdateApiDestinationRequest & WithName(const Aws::String &value)
UpdateApiDestinationRequest & WithConnectionArn(Aws::String &&value)
AWS_CLOUDWATCHEVENTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateApiDestinationRequest & WithInvocationEndpoint(Aws::String &&value)
UpdateApiDestinationRequest & WithConnectionArn(const char *value)
UpdateApiDestinationRequest & WithDescription(const char *value)
UpdateApiDestinationRequest & WithDescription(const Aws::String &value)
UpdateApiDestinationRequest & WithName(const char *value)
AWS_CLOUDWATCHEVENTS_API Aws::String SerializePayload() const override
UpdateApiDestinationRequest & WithInvocationEndpoint(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String