AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AwsApiGatewayV2ApiDetails.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/securityhub/model/AwsCorsConfiguration.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SecurityHub
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SECURITYHUB_API AwsApiGatewayV2ApiDetails() = default;
39 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
49 inline const Aws::String& GetApiEndpoint() const { return m_apiEndpoint; }
50 inline bool ApiEndpointHasBeenSet() const { return m_apiEndpointHasBeenSet; }
51 template<typename ApiEndpointT = Aws::String>
52 void SetApiEndpoint(ApiEndpointT&& value) { m_apiEndpointHasBeenSet = true; m_apiEndpoint = std::forward<ApiEndpointT>(value); }
53 template<typename ApiEndpointT = Aws::String>
54 AwsApiGatewayV2ApiDetails& WithApiEndpoint(ApiEndpointT&& value) { SetApiEndpoint(std::forward<ApiEndpointT>(value)); return *this;}
56
58
61 inline const Aws::String& GetApiId() const { return m_apiId; }
62 inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
63 template<typename ApiIdT = Aws::String>
64 void SetApiId(ApiIdT&& value) { m_apiIdHasBeenSet = true; m_apiId = std::forward<ApiIdT>(value); }
65 template<typename ApiIdT = Aws::String>
66 AwsApiGatewayV2ApiDetails& WithApiId(ApiIdT&& value) { SetApiId(std::forward<ApiIdT>(value)); return *this;}
68
70
73 inline const Aws::String& GetApiKeySelectionExpression() const { return m_apiKeySelectionExpression; }
74 inline bool ApiKeySelectionExpressionHasBeenSet() const { return m_apiKeySelectionExpressionHasBeenSet; }
75 template<typename ApiKeySelectionExpressionT = Aws::String>
76 void SetApiKeySelectionExpression(ApiKeySelectionExpressionT&& value) { m_apiKeySelectionExpressionHasBeenSet = true; m_apiKeySelectionExpression = std::forward<ApiKeySelectionExpressionT>(value); }
77 template<typename ApiKeySelectionExpressionT = Aws::String>
78 AwsApiGatewayV2ApiDetails& WithApiKeySelectionExpression(ApiKeySelectionExpressionT&& value) { SetApiKeySelectionExpression(std::forward<ApiKeySelectionExpressionT>(value)); return *this;}
80
82
87 inline const Aws::String& GetCreatedDate() const { return m_createdDate; }
88 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
89 template<typename CreatedDateT = Aws::String>
90 void SetCreatedDate(CreatedDateT&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::forward<CreatedDateT>(value); }
91 template<typename CreatedDateT = Aws::String>
92 AwsApiGatewayV2ApiDetails& WithCreatedDate(CreatedDateT&& value) { SetCreatedDate(std::forward<CreatedDateT>(value)); return *this;}
94
96
99 inline const Aws::String& GetDescription() const { return m_description; }
100 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
101 template<typename DescriptionT = Aws::String>
102 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
103 template<typename DescriptionT = Aws::String>
104 AwsApiGatewayV2ApiDetails& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
106
108
111 inline const Aws::String& GetVersion() const { return m_version; }
112 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
113 template<typename VersionT = Aws::String>
114 void SetVersion(VersionT&& value) { m_versionHasBeenSet = true; m_version = std::forward<VersionT>(value); }
115 template<typename VersionT = Aws::String>
116 AwsApiGatewayV2ApiDetails& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
118
120
123 inline const Aws::String& GetName() const { return m_name; }
124 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
125 template<typename NameT = Aws::String>
126 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
127 template<typename NameT = Aws::String>
128 AwsApiGatewayV2ApiDetails& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
130
132
136 inline const Aws::String& GetProtocolType() const { return m_protocolType; }
137 inline bool ProtocolTypeHasBeenSet() const { return m_protocolTypeHasBeenSet; }
138 template<typename ProtocolTypeT = Aws::String>
139 void SetProtocolType(ProtocolTypeT&& value) { m_protocolTypeHasBeenSet = true; m_protocolType = std::forward<ProtocolTypeT>(value); }
140 template<typename ProtocolTypeT = Aws::String>
141 AwsApiGatewayV2ApiDetails& WithProtocolType(ProtocolTypeT&& value) { SetProtocolType(std::forward<ProtocolTypeT>(value)); return *this;}
143
145
150 inline const Aws::String& GetRouteSelectionExpression() const { return m_routeSelectionExpression; }
151 inline bool RouteSelectionExpressionHasBeenSet() const { return m_routeSelectionExpressionHasBeenSet; }
152 template<typename RouteSelectionExpressionT = Aws::String>
153 void SetRouteSelectionExpression(RouteSelectionExpressionT&& value) { m_routeSelectionExpressionHasBeenSet = true; m_routeSelectionExpression = std::forward<RouteSelectionExpressionT>(value); }
154 template<typename RouteSelectionExpressionT = Aws::String>
155 AwsApiGatewayV2ApiDetails& WithRouteSelectionExpression(RouteSelectionExpressionT&& value) { SetRouteSelectionExpression(std::forward<RouteSelectionExpressionT>(value)); return *this;}
157
159
163 inline const AwsCorsConfiguration& GetCorsConfiguration() const { return m_corsConfiguration; }
164 inline bool CorsConfigurationHasBeenSet() const { return m_corsConfigurationHasBeenSet; }
165 template<typename CorsConfigurationT = AwsCorsConfiguration>
166 void SetCorsConfiguration(CorsConfigurationT&& value) { m_corsConfigurationHasBeenSet = true; m_corsConfiguration = std::forward<CorsConfigurationT>(value); }
167 template<typename CorsConfigurationT = AwsCorsConfiguration>
168 AwsApiGatewayV2ApiDetails& WithCorsConfiguration(CorsConfigurationT&& value) { SetCorsConfiguration(std::forward<CorsConfigurationT>(value)); return *this;}
170 private:
171
172 Aws::String m_apiEndpoint;
173 bool m_apiEndpointHasBeenSet = false;
174
175 Aws::String m_apiId;
176 bool m_apiIdHasBeenSet = false;
177
178 Aws::String m_apiKeySelectionExpression;
179 bool m_apiKeySelectionExpressionHasBeenSet = false;
180
181 Aws::String m_createdDate;
182 bool m_createdDateHasBeenSet = false;
183
184 Aws::String m_description;
185 bool m_descriptionHasBeenSet = false;
186
187 Aws::String m_version;
188 bool m_versionHasBeenSet = false;
189
190 Aws::String m_name;
191 bool m_nameHasBeenSet = false;
192
193 Aws::String m_protocolType;
194 bool m_protocolTypeHasBeenSet = false;
195
196 Aws::String m_routeSelectionExpression;
197 bool m_routeSelectionExpressionHasBeenSet = false;
198
199 AwsCorsConfiguration m_corsConfiguration;
200 bool m_corsConfigurationHasBeenSet = false;
201 };
202
203} // namespace Model
204} // namespace SecurityHub
205} // namespace Aws
AWS_SECURITYHUB_API AwsApiGatewayV2ApiDetails()=default
AwsApiGatewayV2ApiDetails & WithVersion(VersionT &&value)
AwsApiGatewayV2ApiDetails & WithCreatedDate(CreatedDateT &&value)
void SetRouteSelectionExpression(RouteSelectionExpressionT &&value)
AwsApiGatewayV2ApiDetails & WithApiKeySelectionExpression(ApiKeySelectionExpressionT &&value)
AWS_SECURITYHUB_API AwsApiGatewayV2ApiDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsApiGatewayV2ApiDetails & WithApiEndpoint(ApiEndpointT &&value)
AWS_SECURITYHUB_API AwsApiGatewayV2ApiDetails(Aws::Utils::Json::JsonView jsonValue)
AwsApiGatewayV2ApiDetails & WithDescription(DescriptionT &&value)
AwsApiGatewayV2ApiDetails & WithProtocolType(ProtocolTypeT &&value)
AwsApiGatewayV2ApiDetails & WithCorsConfiguration(CorsConfigurationT &&value)
AwsApiGatewayV2ApiDetails & WithRouteSelectionExpression(RouteSelectionExpressionT &&value)
AwsApiGatewayV2ApiDetails & WithName(NameT &&value)
void SetApiKeySelectionExpression(ApiKeySelectionExpressionT &&value)
AwsApiGatewayV2ApiDetails & WithApiId(ApiIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue