AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ApiDestination.h
1
6#pragma once
7#include <aws/events/CloudWatchEvents_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/events/model/ApiDestinationState.h>
10#include <aws/events/model/ApiDestinationHttpMethod.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CloudWatchEvents
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_CLOUDWATCHEVENTS_API ApiDestination();
38 AWS_CLOUDWATCHEVENTS_API ApiDestination(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CLOUDWATCHEVENTS_API ApiDestination& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CLOUDWATCHEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetApiDestinationArn() const{ return m_apiDestinationArn; }
48 inline bool ApiDestinationArnHasBeenSet() const { return m_apiDestinationArnHasBeenSet; }
49 inline void SetApiDestinationArn(const Aws::String& value) { m_apiDestinationArnHasBeenSet = true; m_apiDestinationArn = value; }
50 inline void SetApiDestinationArn(Aws::String&& value) { m_apiDestinationArnHasBeenSet = true; m_apiDestinationArn = std::move(value); }
51 inline void SetApiDestinationArn(const char* value) { m_apiDestinationArnHasBeenSet = true; m_apiDestinationArn.assign(value); }
52 inline ApiDestination& WithApiDestinationArn(const Aws::String& value) { SetApiDestinationArn(value); return *this;}
53 inline ApiDestination& WithApiDestinationArn(Aws::String&& value) { SetApiDestinationArn(std::move(value)); return *this;}
54 inline ApiDestination& WithApiDestinationArn(const char* value) { SetApiDestinationArn(value); return *this;}
56
58
61 inline const Aws::String& GetName() const{ return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
64 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
65 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 inline ApiDestination& WithName(const Aws::String& value) { SetName(value); return *this;}
67 inline ApiDestination& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
68 inline ApiDestination& WithName(const char* value) { SetName(value); return *this;}
70
72
75 inline const ApiDestinationState& GetApiDestinationState() const{ return m_apiDestinationState; }
76 inline bool ApiDestinationStateHasBeenSet() const { return m_apiDestinationStateHasBeenSet; }
77 inline void SetApiDestinationState(const ApiDestinationState& value) { m_apiDestinationStateHasBeenSet = true; m_apiDestinationState = value; }
78 inline void SetApiDestinationState(ApiDestinationState&& value) { m_apiDestinationStateHasBeenSet = true; m_apiDestinationState = std::move(value); }
80 inline ApiDestination& WithApiDestinationState(ApiDestinationState&& value) { SetApiDestinationState(std::move(value)); return *this;}
82
84
87 inline const Aws::String& GetConnectionArn() const{ return m_connectionArn; }
88 inline bool ConnectionArnHasBeenSet() const { return m_connectionArnHasBeenSet; }
89 inline void SetConnectionArn(const Aws::String& value) { m_connectionArnHasBeenSet = true; m_connectionArn = value; }
90 inline void SetConnectionArn(Aws::String&& value) { m_connectionArnHasBeenSet = true; m_connectionArn = std::move(value); }
91 inline void SetConnectionArn(const char* value) { m_connectionArnHasBeenSet = true; m_connectionArn.assign(value); }
92 inline ApiDestination& WithConnectionArn(const Aws::String& value) { SetConnectionArn(value); return *this;}
93 inline ApiDestination& WithConnectionArn(Aws::String&& value) { SetConnectionArn(std::move(value)); return *this;}
94 inline ApiDestination& WithConnectionArn(const char* value) { SetConnectionArn(value); return *this;}
96
98
101 inline const Aws::String& GetInvocationEndpoint() const{ return m_invocationEndpoint; }
102 inline bool InvocationEndpointHasBeenSet() const { return m_invocationEndpointHasBeenSet; }
103 inline void SetInvocationEndpoint(const Aws::String& value) { m_invocationEndpointHasBeenSet = true; m_invocationEndpoint = value; }
104 inline void SetInvocationEndpoint(Aws::String&& value) { m_invocationEndpointHasBeenSet = true; m_invocationEndpoint = std::move(value); }
105 inline void SetInvocationEndpoint(const char* value) { m_invocationEndpointHasBeenSet = true; m_invocationEndpoint.assign(value); }
106 inline ApiDestination& WithInvocationEndpoint(const Aws::String& value) { SetInvocationEndpoint(value); return *this;}
107 inline ApiDestination& WithInvocationEndpoint(Aws::String&& value) { SetInvocationEndpoint(std::move(value)); return *this;}
108 inline ApiDestination& WithInvocationEndpoint(const char* value) { SetInvocationEndpoint(value); return *this;}
110
112
115 inline const ApiDestinationHttpMethod& GetHttpMethod() const{ return m_httpMethod; }
116 inline bool HttpMethodHasBeenSet() const { return m_httpMethodHasBeenSet; }
117 inline void SetHttpMethod(const ApiDestinationHttpMethod& value) { m_httpMethodHasBeenSet = true; m_httpMethod = value; }
118 inline void SetHttpMethod(ApiDestinationHttpMethod&& value) { m_httpMethodHasBeenSet = true; m_httpMethod = std::move(value); }
119 inline ApiDestination& WithHttpMethod(const ApiDestinationHttpMethod& value) { SetHttpMethod(value); return *this;}
120 inline ApiDestination& WithHttpMethod(ApiDestinationHttpMethod&& value) { SetHttpMethod(std::move(value)); return *this;}
122
124
128 inline int GetInvocationRateLimitPerSecond() const{ return m_invocationRateLimitPerSecond; }
129 inline bool InvocationRateLimitPerSecondHasBeenSet() const { return m_invocationRateLimitPerSecondHasBeenSet; }
130 inline void SetInvocationRateLimitPerSecond(int value) { m_invocationRateLimitPerSecondHasBeenSet = true; m_invocationRateLimitPerSecond = value; }
133
135
138 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
139 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
140 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
141 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
142 inline ApiDestination& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
143 inline ApiDestination& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
145
147
150 inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; }
151 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
152 inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
153 inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); }
155 inline ApiDestination& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;}
157 private:
158
159 Aws::String m_apiDestinationArn;
160 bool m_apiDestinationArnHasBeenSet = false;
161
162 Aws::String m_name;
163 bool m_nameHasBeenSet = false;
164
165 ApiDestinationState m_apiDestinationState;
166 bool m_apiDestinationStateHasBeenSet = false;
167
168 Aws::String m_connectionArn;
169 bool m_connectionArnHasBeenSet = false;
170
171 Aws::String m_invocationEndpoint;
172 bool m_invocationEndpointHasBeenSet = false;
173
174 ApiDestinationHttpMethod m_httpMethod;
175 bool m_httpMethodHasBeenSet = false;
176
177 int m_invocationRateLimitPerSecond;
178 bool m_invocationRateLimitPerSecondHasBeenSet = false;
179
180 Aws::Utils::DateTime m_creationTime;
181 bool m_creationTimeHasBeenSet = false;
182
183 Aws::Utils::DateTime m_lastModifiedTime;
184 bool m_lastModifiedTimeHasBeenSet = false;
185 };
186
187} // namespace Model
188} // namespace CloudWatchEvents
189} // namespace Aws
const ApiDestinationState & GetApiDestinationState() const
ApiDestination & WithLastModifiedTime(Aws::Utils::DateTime &&value)
void SetInvocationEndpoint(const Aws::String &value)
AWS_CLOUDWATCHEVENTS_API ApiDestination()
ApiDestination & WithName(const char *value)
const ApiDestinationHttpMethod & GetHttpMethod() const
AWS_CLOUDWATCHEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
ApiDestination & WithName(const Aws::String &value)
const Aws::Utils::DateTime & GetCreationTime() const
const Aws::String & GetConnectionArn() const
const Aws::String & GetApiDestinationArn() const
ApiDestination & WithInvocationRateLimitPerSecond(int value)
ApiDestination & WithInvocationEndpoint(const Aws::String &value)
const Aws::String & GetInvocationEndpoint() const
ApiDestination & WithApiDestinationArn(const Aws::String &value)
void SetInvocationEndpoint(Aws::String &&value)
void SetApiDestinationArn(const Aws::String &value)
ApiDestination & WithInvocationEndpoint(Aws::String &&value)
ApiDestination & WithApiDestinationState(const ApiDestinationState &value)
void SetCreationTime(const Aws::Utils::DateTime &value)
ApiDestination & WithConnectionArn(const Aws::String &value)
AWS_CLOUDWATCHEVENTS_API ApiDestination(Aws::Utils::Json::JsonView jsonValue)
void SetLastModifiedTime(Aws::Utils::DateTime &&value)
ApiDestination & WithApiDestinationState(ApiDestinationState &&value)
AWS_CLOUDWATCHEVENTS_API ApiDestination & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCreationTime(Aws::Utils::DateTime &&value)
ApiDestination & WithCreationTime(const Aws::Utils::DateTime &value)
void SetApiDestinationState(ApiDestinationState &&value)
void SetName(const Aws::String &value)
ApiDestination & WithInvocationEndpoint(const char *value)
ApiDestination & WithLastModifiedTime(const Aws::Utils::DateTime &value)
void SetLastModifiedTime(const Aws::Utils::DateTime &value)
ApiDestination & WithName(Aws::String &&value)
ApiDestination & WithHttpMethod(const ApiDestinationHttpMethod &value)
ApiDestination & WithHttpMethod(ApiDestinationHttpMethod &&value)
ApiDestination & WithConnectionArn(const char *value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
void SetConnectionArn(const Aws::String &value)
ApiDestination & WithCreationTime(Aws::Utils::DateTime &&value)
ApiDestination & WithApiDestinationArn(Aws::String &&value)
void SetApiDestinationArn(Aws::String &&value)
void SetHttpMethod(ApiDestinationHttpMethod &&value)
ApiDestination & WithApiDestinationArn(const char *value)
void SetApiDestinationState(const ApiDestinationState &value)
ApiDestination & WithConnectionArn(Aws::String &&value)
void SetHttpMethod(const ApiDestinationHttpMethod &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue