AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateRouteResponseRequest.h
1
6#pragma once
7#include <aws/apigatewayv2/ApiGatewayV2_EXPORTS.h>
8#include <aws/apigatewayv2/ApiGatewayV2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/apigatewayv2/model/ParameterConstraints.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ApiGatewayV2
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_APIGATEWAYV2_API CreateRouteResponseRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateRouteResponse"; }
37
38 AWS_APIGATEWAYV2_API Aws::String SerializePayload() const override;
39
40
42
45 inline const Aws::String& GetApiId() const{ return m_apiId; }
46 inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
47 inline void SetApiId(const Aws::String& value) { m_apiIdHasBeenSet = true; m_apiId = value; }
48 inline void SetApiId(Aws::String&& value) { m_apiIdHasBeenSet = true; m_apiId = std::move(value); }
49 inline void SetApiId(const char* value) { m_apiIdHasBeenSet = true; m_apiId.assign(value); }
50 inline CreateRouteResponseRequest& WithApiId(const Aws::String& value) { SetApiId(value); return *this;}
51 inline CreateRouteResponseRequest& WithApiId(Aws::String&& value) { SetApiId(std::move(value)); return *this;}
52 inline CreateRouteResponseRequest& WithApiId(const char* value) { SetApiId(value); return *this;}
54
56
60 inline const Aws::String& GetModelSelectionExpression() const{ return m_modelSelectionExpression; }
61 inline bool ModelSelectionExpressionHasBeenSet() const { return m_modelSelectionExpressionHasBeenSet; }
62 inline void SetModelSelectionExpression(const Aws::String& value) { m_modelSelectionExpressionHasBeenSet = true; m_modelSelectionExpression = value; }
63 inline void SetModelSelectionExpression(Aws::String&& value) { m_modelSelectionExpressionHasBeenSet = true; m_modelSelectionExpression = std::move(value); }
64 inline void SetModelSelectionExpression(const char* value) { m_modelSelectionExpressionHasBeenSet = true; m_modelSelectionExpression.assign(value); }
69
71
74 inline const Aws::Map<Aws::String, Aws::String>& GetResponseModels() const{ return m_responseModels; }
75 inline bool ResponseModelsHasBeenSet() const { return m_responseModelsHasBeenSet; }
76 inline void SetResponseModels(const Aws::Map<Aws::String, Aws::String>& value) { m_responseModelsHasBeenSet = true; m_responseModels = value; }
77 inline void SetResponseModels(Aws::Map<Aws::String, Aws::String>&& value) { m_responseModelsHasBeenSet = true; m_responseModels = std::move(value); }
80 inline CreateRouteResponseRequest& AddResponseModels(const Aws::String& key, const Aws::String& value) { m_responseModelsHasBeenSet = true; m_responseModels.emplace(key, value); return *this; }
81 inline CreateRouteResponseRequest& AddResponseModels(Aws::String&& key, const Aws::String& value) { m_responseModelsHasBeenSet = true; m_responseModels.emplace(std::move(key), value); return *this; }
82 inline CreateRouteResponseRequest& AddResponseModels(const Aws::String& key, Aws::String&& value) { m_responseModelsHasBeenSet = true; m_responseModels.emplace(key, std::move(value)); return *this; }
83 inline CreateRouteResponseRequest& AddResponseModels(Aws::String&& key, Aws::String&& value) { m_responseModelsHasBeenSet = true; m_responseModels.emplace(std::move(key), std::move(value)); return *this; }
84 inline CreateRouteResponseRequest& AddResponseModels(const char* key, Aws::String&& value) { m_responseModelsHasBeenSet = true; m_responseModels.emplace(key, std::move(value)); return *this; }
85 inline CreateRouteResponseRequest& AddResponseModels(Aws::String&& key, const char* value) { m_responseModelsHasBeenSet = true; m_responseModels.emplace(std::move(key), value); return *this; }
86 inline CreateRouteResponseRequest& AddResponseModels(const char* key, const char* value) { m_responseModelsHasBeenSet = true; m_responseModels.emplace(key, value); return *this; }
88
90
93 inline const Aws::Map<Aws::String, ParameterConstraints>& GetResponseParameters() const{ return m_responseParameters; }
94 inline bool ResponseParametersHasBeenSet() const { return m_responseParametersHasBeenSet; }
95 inline void SetResponseParameters(const Aws::Map<Aws::String, ParameterConstraints>& value) { m_responseParametersHasBeenSet = true; m_responseParameters = value; }
96 inline void SetResponseParameters(Aws::Map<Aws::String, ParameterConstraints>&& value) { m_responseParametersHasBeenSet = true; m_responseParameters = std::move(value); }
99 inline CreateRouteResponseRequest& AddResponseParameters(const Aws::String& key, const ParameterConstraints& value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(key, value); return *this; }
100 inline CreateRouteResponseRequest& AddResponseParameters(Aws::String&& key, const ParameterConstraints& value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(std::move(key), value); return *this; }
101 inline CreateRouteResponseRequest& AddResponseParameters(const Aws::String& key, ParameterConstraints&& value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(key, std::move(value)); return *this; }
102 inline CreateRouteResponseRequest& AddResponseParameters(Aws::String&& key, ParameterConstraints&& value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(std::move(key), std::move(value)); return *this; }
103 inline CreateRouteResponseRequest& AddResponseParameters(const char* key, ParameterConstraints&& value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(key, std::move(value)); return *this; }
104 inline CreateRouteResponseRequest& AddResponseParameters(const char* key, const ParameterConstraints& value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(key, value); return *this; }
106
108
111 inline const Aws::String& GetRouteId() const{ return m_routeId; }
112 inline bool RouteIdHasBeenSet() const { return m_routeIdHasBeenSet; }
113 inline void SetRouteId(const Aws::String& value) { m_routeIdHasBeenSet = true; m_routeId = value; }
114 inline void SetRouteId(Aws::String&& value) { m_routeIdHasBeenSet = true; m_routeId = std::move(value); }
115 inline void SetRouteId(const char* value) { m_routeIdHasBeenSet = true; m_routeId.assign(value); }
116 inline CreateRouteResponseRequest& WithRouteId(const Aws::String& value) { SetRouteId(value); return *this;}
117 inline CreateRouteResponseRequest& WithRouteId(Aws::String&& value) { SetRouteId(std::move(value)); return *this;}
118 inline CreateRouteResponseRequest& WithRouteId(const char* value) { SetRouteId(value); return *this;}
120
122
125 inline const Aws::String& GetRouteResponseKey() const{ return m_routeResponseKey; }
126 inline bool RouteResponseKeyHasBeenSet() const { return m_routeResponseKeyHasBeenSet; }
127 inline void SetRouteResponseKey(const Aws::String& value) { m_routeResponseKeyHasBeenSet = true; m_routeResponseKey = value; }
128 inline void SetRouteResponseKey(Aws::String&& value) { m_routeResponseKeyHasBeenSet = true; m_routeResponseKey = std::move(value); }
129 inline void SetRouteResponseKey(const char* value) { m_routeResponseKeyHasBeenSet = true; m_routeResponseKey.assign(value); }
131 inline CreateRouteResponseRequest& WithRouteResponseKey(Aws::String&& value) { SetRouteResponseKey(std::move(value)); return *this;}
132 inline CreateRouteResponseRequest& WithRouteResponseKey(const char* value) { SetRouteResponseKey(value); return *this;}
134 private:
135
136 Aws::String m_apiId;
137 bool m_apiIdHasBeenSet = false;
138
139 Aws::String m_modelSelectionExpression;
140 bool m_modelSelectionExpressionHasBeenSet = false;
141
142 Aws::Map<Aws::String, Aws::String> m_responseModels;
143 bool m_responseModelsHasBeenSet = false;
144
146 bool m_responseParametersHasBeenSet = false;
147
148 Aws::String m_routeId;
149 bool m_routeIdHasBeenSet = false;
150
151 Aws::String m_routeResponseKey;
152 bool m_routeResponseKeyHasBeenSet = false;
153 };
154
155} // namespace Model
156} // namespace ApiGatewayV2
157} // namespace Aws
CreateRouteResponseRequest & AddResponseParameters(const char *key, const ParameterConstraints &value)
CreateRouteResponseRequest & AddResponseModels(const char *key, Aws::String &&value)
void SetResponseModels(const Aws::Map< Aws::String, Aws::String > &value)
CreateRouteResponseRequest & WithRouteId(const char *value)
void SetResponseParameters(const Aws::Map< Aws::String, ParameterConstraints > &value)
CreateRouteResponseRequest & WithResponseParameters(const Aws::Map< Aws::String, ParameterConstraints > &value)
CreateRouteResponseRequest & WithRouteId(Aws::String &&value)
CreateRouteResponseRequest & WithResponseParameters(Aws::Map< Aws::String, ParameterConstraints > &&value)
CreateRouteResponseRequest & WithRouteResponseKey(Aws::String &&value)
CreateRouteResponseRequest & WithApiId(Aws::String &&value)
CreateRouteResponseRequest & WithRouteResponseKey(const char *value)
CreateRouteResponseRequest & AddResponseParameters(Aws::String &&key, ParameterConstraints &&value)
CreateRouteResponseRequest & AddResponseModels(const char *key, const char *value)
CreateRouteResponseRequest & AddResponseParameters(const Aws::String &key, ParameterConstraints &&value)
CreateRouteResponseRequest & WithApiId(const Aws::String &value)
CreateRouteResponseRequest & WithApiId(const char *value)
CreateRouteResponseRequest & WithResponseModels(const Aws::Map< Aws::String, Aws::String > &value)
CreateRouteResponseRequest & AddResponseModels(Aws::String &&key, Aws::String &&value)
void SetResponseModels(Aws::Map< Aws::String, Aws::String > &&value)
CreateRouteResponseRequest & AddResponseModels(Aws::String &&key, const Aws::String &value)
const Aws::Map< Aws::String, ParameterConstraints > & GetResponseParameters() const
CreateRouteResponseRequest & AddResponseModels(const Aws::String &key, const Aws::String &value)
void SetResponseParameters(Aws::Map< Aws::String, ParameterConstraints > &&value)
CreateRouteResponseRequest & WithModelSelectionExpression(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetResponseModels() const
CreateRouteResponseRequest & AddResponseParameters(Aws::String &&key, const ParameterConstraints &value)
CreateRouteResponseRequest & WithResponseModels(Aws::Map< Aws::String, Aws::String > &&value)
CreateRouteResponseRequest & WithModelSelectionExpression(const char *value)
CreateRouteResponseRequest & WithRouteId(const Aws::String &value)
CreateRouteResponseRequest & AddResponseParameters(const char *key, ParameterConstraints &&value)
CreateRouteResponseRequest & AddResponseParameters(const Aws::String &key, const ParameterConstraints &value)
CreateRouteResponseRequest & AddResponseModels(const Aws::String &key, Aws::String &&value)
CreateRouteResponseRequest & WithRouteResponseKey(const Aws::String &value)
CreateRouteResponseRequest & WithModelSelectionExpression(Aws::String &&value)
AWS_APIGATEWAYV2_API Aws::String SerializePayload() const override
CreateRouteResponseRequest & AddResponseModels(Aws::String &&key, const char *value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String