AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutIntegrationResponseRequest.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/apigateway/APIGatewayRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/apigateway/model/ContentHandlingStrategy.h>
12#include <utility>
13
14namespace Aws
15{
16namespace APIGateway
17{
18namespace Model
19{
20
27 {
28 public:
29 AWS_APIGATEWAY_API PutIntegrationResponseRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "PutIntegrationResponse"; }
36
37 AWS_APIGATEWAY_API Aws::String SerializePayload() const override;
38
39
41
44 inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
45 inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
46 inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
47 inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::move(value); }
48 inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
49 inline PutIntegrationResponseRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
50 inline PutIntegrationResponseRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(std::move(value)); return *this;}
51 inline PutIntegrationResponseRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
53
55
58 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
59 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
60 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
61 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
62 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
63 inline PutIntegrationResponseRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
64 inline PutIntegrationResponseRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
65 inline PutIntegrationResponseRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
67
69
72 inline const Aws::String& GetHttpMethod() const{ return m_httpMethod; }
73 inline bool HttpMethodHasBeenSet() const { return m_httpMethodHasBeenSet; }
74 inline void SetHttpMethod(const Aws::String& value) { m_httpMethodHasBeenSet = true; m_httpMethod = value; }
75 inline void SetHttpMethod(Aws::String&& value) { m_httpMethodHasBeenSet = true; m_httpMethod = std::move(value); }
76 inline void SetHttpMethod(const char* value) { m_httpMethodHasBeenSet = true; m_httpMethod.assign(value); }
77 inline PutIntegrationResponseRequest& WithHttpMethod(const Aws::String& value) { SetHttpMethod(value); return *this;}
78 inline PutIntegrationResponseRequest& WithHttpMethod(Aws::String&& value) { SetHttpMethod(std::move(value)); return *this;}
79 inline PutIntegrationResponseRequest& WithHttpMethod(const char* value) { SetHttpMethod(value); return *this;}
81
83
87 inline const Aws::String& GetStatusCode() const{ return m_statusCode; }
88 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
89 inline void SetStatusCode(const Aws::String& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
90 inline void SetStatusCode(Aws::String&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::move(value); }
91 inline void SetStatusCode(const char* value) { m_statusCodeHasBeenSet = true; m_statusCode.assign(value); }
92 inline PutIntegrationResponseRequest& WithStatusCode(const Aws::String& value) { SetStatusCode(value); return *this;}
93 inline PutIntegrationResponseRequest& WithStatusCode(Aws::String&& value) { SetStatusCode(std::move(value)); return *this;}
94 inline PutIntegrationResponseRequest& WithStatusCode(const char* value) { SetStatusCode(value); return *this;}
96
98
101 inline const Aws::String& GetSelectionPattern() const{ return m_selectionPattern; }
102 inline bool SelectionPatternHasBeenSet() const { return m_selectionPatternHasBeenSet; }
103 inline void SetSelectionPattern(const Aws::String& value) { m_selectionPatternHasBeenSet = true; m_selectionPattern = value; }
104 inline void SetSelectionPattern(Aws::String&& value) { m_selectionPatternHasBeenSet = true; m_selectionPattern = std::move(value); }
105 inline void SetSelectionPattern(const char* value) { m_selectionPatternHasBeenSet = true; m_selectionPattern.assign(value); }
107 inline PutIntegrationResponseRequest& WithSelectionPattern(Aws::String&& value) { SetSelectionPattern(std::move(value)); return *this;}
108 inline PutIntegrationResponseRequest& WithSelectionPattern(const char* value) { SetSelectionPattern(value); return *this;}
110
112
126 inline const Aws::Map<Aws::String, Aws::String>& GetResponseParameters() const{ return m_responseParameters; }
127 inline bool ResponseParametersHasBeenSet() const { return m_responseParametersHasBeenSet; }
128 inline void SetResponseParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_responseParametersHasBeenSet = true; m_responseParameters = value; }
129 inline void SetResponseParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_responseParametersHasBeenSet = true; m_responseParameters = std::move(value); }
132 inline PutIntegrationResponseRequest& AddResponseParameters(const Aws::String& key, const Aws::String& value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(key, value); return *this; }
133 inline PutIntegrationResponseRequest& AddResponseParameters(Aws::String&& key, const Aws::String& value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(std::move(key), value); return *this; }
134 inline PutIntegrationResponseRequest& AddResponseParameters(const Aws::String& key, Aws::String&& value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(key, std::move(value)); return *this; }
135 inline PutIntegrationResponseRequest& AddResponseParameters(Aws::String&& key, Aws::String&& value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(std::move(key), std::move(value)); return *this; }
136 inline PutIntegrationResponseRequest& AddResponseParameters(const char* key, Aws::String&& value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(key, std::move(value)); return *this; }
137 inline PutIntegrationResponseRequest& AddResponseParameters(Aws::String&& key, const char* value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(std::move(key), value); return *this; }
138 inline PutIntegrationResponseRequest& AddResponseParameters(const char* key, const char* value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(key, value); return *this; }
140
142
145 inline const Aws::Map<Aws::String, Aws::String>& GetResponseTemplates() const{ return m_responseTemplates; }
146 inline bool ResponseTemplatesHasBeenSet() const { return m_responseTemplatesHasBeenSet; }
147 inline void SetResponseTemplates(const Aws::Map<Aws::String, Aws::String>& value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates = value; }
148 inline void SetResponseTemplates(Aws::Map<Aws::String, Aws::String>&& value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates = std::move(value); }
151 inline PutIntegrationResponseRequest& AddResponseTemplates(const Aws::String& key, const Aws::String& value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates.emplace(key, value); return *this; }
152 inline PutIntegrationResponseRequest& AddResponseTemplates(Aws::String&& key, const Aws::String& value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates.emplace(std::move(key), value); return *this; }
153 inline PutIntegrationResponseRequest& AddResponseTemplates(const Aws::String& key, Aws::String&& value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates.emplace(key, std::move(value)); return *this; }
154 inline PutIntegrationResponseRequest& AddResponseTemplates(Aws::String&& key, Aws::String&& value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates.emplace(std::move(key), std::move(value)); return *this; }
155 inline PutIntegrationResponseRequest& AddResponseTemplates(const char* key, Aws::String&& value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates.emplace(key, std::move(value)); return *this; }
156 inline PutIntegrationResponseRequest& AddResponseTemplates(Aws::String&& key, const char* value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates.emplace(std::move(key), value); return *this; }
157 inline PutIntegrationResponseRequest& AddResponseTemplates(const char* key, const char* value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates.emplace(key, value); return *this; }
159
161
168 inline const ContentHandlingStrategy& GetContentHandling() const{ return m_contentHandling; }
169 inline bool ContentHandlingHasBeenSet() const { return m_contentHandlingHasBeenSet; }
170 inline void SetContentHandling(const ContentHandlingStrategy& value) { m_contentHandlingHasBeenSet = true; m_contentHandling = value; }
171 inline void SetContentHandling(ContentHandlingStrategy&& value) { m_contentHandlingHasBeenSet = true; m_contentHandling = std::move(value); }
175 private:
176
177 Aws::String m_restApiId;
178 bool m_restApiIdHasBeenSet = false;
179
180 Aws::String m_resourceId;
181 bool m_resourceIdHasBeenSet = false;
182
183 Aws::String m_httpMethod;
184 bool m_httpMethodHasBeenSet = false;
185
186 Aws::String m_statusCode;
187 bool m_statusCodeHasBeenSet = false;
188
189 Aws::String m_selectionPattern;
190 bool m_selectionPatternHasBeenSet = false;
191
192 Aws::Map<Aws::String, Aws::String> m_responseParameters;
193 bool m_responseParametersHasBeenSet = false;
194
195 Aws::Map<Aws::String, Aws::String> m_responseTemplates;
196 bool m_responseTemplatesHasBeenSet = false;
197
198 ContentHandlingStrategy m_contentHandling;
199 bool m_contentHandlingHasBeenSet = false;
200 };
201
202} // namespace Model
203} // namespace APIGateway
204} // namespace Aws
PutIntegrationResponseRequest & WithResponseTemplates(const Aws::Map< Aws::String, Aws::String > &value)
PutIntegrationResponseRequest & AddResponseTemplates(Aws::String &&key, Aws::String &&value)
PutIntegrationResponseRequest & WithContentHandling(ContentHandlingStrategy &&value)
PutIntegrationResponseRequest & WithResourceId(Aws::String &&value)
PutIntegrationResponseRequest & WithStatusCode(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetResponseTemplates() const
PutIntegrationResponseRequest & AddResponseParameters(const char *key, const char *value)
PutIntegrationResponseRequest & WithRestApiId(const Aws::String &value)
PutIntegrationResponseRequest & WithContentHandling(const ContentHandlingStrategy &value)
PutIntegrationResponseRequest & WithResponseParameters(Aws::Map< Aws::String, Aws::String > &&value)
PutIntegrationResponseRequest & AddResponseParameters(const char *key, Aws::String &&value)
PutIntegrationResponseRequest & AddResponseTemplates(Aws::String &&key, const char *value)
PutIntegrationResponseRequest & WithRestApiId(const char *value)
PutIntegrationResponseRequest & AddResponseTemplates(const char *key, Aws::String &&value)
PutIntegrationResponseRequest & AddResponseTemplates(const Aws::String &key, Aws::String &&value)
PutIntegrationResponseRequest & WithSelectionPattern(Aws::String &&value)
PutIntegrationResponseRequest & WithResourceId(const char *value)
PutIntegrationResponseRequest & AddResponseTemplates(const Aws::String &key, const Aws::String &value)
PutIntegrationResponseRequest & WithSelectionPattern(const char *value)
PutIntegrationResponseRequest & AddResponseTemplates(const char *key, const char *value)
PutIntegrationResponseRequest & WithResourceId(const Aws::String &value)
PutIntegrationResponseRequest & WithResponseParameters(const Aws::Map< Aws::String, Aws::String > &value)
PutIntegrationResponseRequest & WithResponseTemplates(Aws::Map< Aws::String, Aws::String > &&value)
PutIntegrationResponseRequest & AddResponseParameters(const Aws::String &key, const Aws::String &value)
PutIntegrationResponseRequest & WithSelectionPattern(const Aws::String &value)
PutIntegrationResponseRequest & WithHttpMethod(Aws::String &&value)
void SetResponseTemplates(Aws::Map< Aws::String, Aws::String > &&value)
PutIntegrationResponseRequest & AddResponseTemplates(Aws::String &&key, const Aws::String &value)
PutIntegrationResponseRequest & WithStatusCode(const Aws::String &value)
PutIntegrationResponseRequest & WithStatusCode(Aws::String &&value)
PutIntegrationResponseRequest & WithHttpMethod(const char *value)
PutIntegrationResponseRequest & AddResponseParameters(Aws::String &&key, const char *value)
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
PutIntegrationResponseRequest & WithHttpMethod(const Aws::String &value)
void SetResponseParameters(Aws::Map< Aws::String, Aws::String > &&value)
PutIntegrationResponseRequest & WithRestApiId(Aws::String &&value)
void SetResponseParameters(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetResponseParameters() const
void SetResponseTemplates(const Aws::Map< Aws::String, Aws::String > &value)
void SetContentHandling(const ContentHandlingStrategy &value)
PutIntegrationResponseRequest & AddResponseParameters(Aws::String &&key, const Aws::String &value)
PutIntegrationResponseRequest & AddResponseParameters(Aws::String &&key, Aws::String &&value)
PutIntegrationResponseRequest & AddResponseParameters(const Aws::String &key, Aws::String &&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