AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutMethodResponseRequest.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 <utility>
12
13namespace Aws
14{
15namespace APIGateway
16{
17namespace Model
18{
19
27 {
28 public:
29 AWS_APIGATEWAY_API PutMethodResponseRequest();
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 "PutMethodResponse"; }
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 PutMethodResponseRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
50 inline PutMethodResponseRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(std::move(value)); return *this;}
51 inline PutMethodResponseRequest& 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 PutMethodResponseRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
64 inline PutMethodResponseRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
65 inline PutMethodResponseRequest& 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 PutMethodResponseRequest& WithHttpMethod(const Aws::String& value) { SetHttpMethod(value); return *this;}
78 inline PutMethodResponseRequest& WithHttpMethod(Aws::String&& value) { SetHttpMethod(std::move(value)); return *this;}
79 inline PutMethodResponseRequest& WithHttpMethod(const char* value) { SetHttpMethod(value); return *this;}
81
83
86 inline const Aws::String& GetStatusCode() const{ return m_statusCode; }
87 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
88 inline void SetStatusCode(const Aws::String& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
89 inline void SetStatusCode(Aws::String&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::move(value); }
90 inline void SetStatusCode(const char* value) { m_statusCodeHasBeenSet = true; m_statusCode.assign(value); }
91 inline PutMethodResponseRequest& WithStatusCode(const Aws::String& value) { SetStatusCode(value); return *this;}
92 inline PutMethodResponseRequest& WithStatusCode(Aws::String&& value) { SetStatusCode(std::move(value)); return *this;}
93 inline PutMethodResponseRequest& WithStatusCode(const char* value) { SetStatusCode(value); return *this;}
95
97
113 inline const Aws::Map<Aws::String, bool>& GetResponseParameters() const{ return m_responseParameters; }
114 inline bool ResponseParametersHasBeenSet() const { return m_responseParametersHasBeenSet; }
115 inline void SetResponseParameters(const Aws::Map<Aws::String, bool>& value) { m_responseParametersHasBeenSet = true; m_responseParameters = value; }
116 inline void SetResponseParameters(Aws::Map<Aws::String, bool>&& value) { m_responseParametersHasBeenSet = true; m_responseParameters = std::move(value); }
119 inline PutMethodResponseRequest& AddResponseParameters(const Aws::String& key, bool value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(key, value); return *this; }
120 inline PutMethodResponseRequest& AddResponseParameters(Aws::String&& key, bool value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(std::move(key), value); return *this; }
121 inline PutMethodResponseRequest& AddResponseParameters(const char* key, bool value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(key, value); return *this; }
123
125
130 inline const Aws::Map<Aws::String, Aws::String>& GetResponseModels() const{ return m_responseModels; }
131 inline bool ResponseModelsHasBeenSet() const { return m_responseModelsHasBeenSet; }
132 inline void SetResponseModels(const Aws::Map<Aws::String, Aws::String>& value) { m_responseModelsHasBeenSet = true; m_responseModels = value; }
133 inline void SetResponseModels(Aws::Map<Aws::String, Aws::String>&& value) { m_responseModelsHasBeenSet = true; m_responseModels = std::move(value); }
136 inline PutMethodResponseRequest& AddResponseModels(const Aws::String& key, const Aws::String& value) { m_responseModelsHasBeenSet = true; m_responseModels.emplace(key, value); return *this; }
137 inline PutMethodResponseRequest& AddResponseModels(Aws::String&& key, const Aws::String& value) { m_responseModelsHasBeenSet = true; m_responseModels.emplace(std::move(key), value); return *this; }
138 inline PutMethodResponseRequest& AddResponseModels(const Aws::String& key, Aws::String&& value) { m_responseModelsHasBeenSet = true; m_responseModels.emplace(key, std::move(value)); return *this; }
139 inline PutMethodResponseRequest& AddResponseModels(Aws::String&& key, Aws::String&& value) { m_responseModelsHasBeenSet = true; m_responseModels.emplace(std::move(key), std::move(value)); return *this; }
140 inline PutMethodResponseRequest& AddResponseModels(const char* key, Aws::String&& value) { m_responseModelsHasBeenSet = true; m_responseModels.emplace(key, std::move(value)); return *this; }
141 inline PutMethodResponseRequest& AddResponseModels(Aws::String&& key, const char* value) { m_responseModelsHasBeenSet = true; m_responseModels.emplace(std::move(key), value); return *this; }
142 inline PutMethodResponseRequest& AddResponseModels(const char* key, const char* value) { m_responseModelsHasBeenSet = true; m_responseModels.emplace(key, value); return *this; }
144 private:
145
146 Aws::String m_restApiId;
147 bool m_restApiIdHasBeenSet = false;
148
149 Aws::String m_resourceId;
150 bool m_resourceIdHasBeenSet = false;
151
152 Aws::String m_httpMethod;
153 bool m_httpMethodHasBeenSet = false;
154
155 Aws::String m_statusCode;
156 bool m_statusCodeHasBeenSet = false;
157
158 Aws::Map<Aws::String, bool> m_responseParameters;
159 bool m_responseParametersHasBeenSet = false;
160
161 Aws::Map<Aws::String, Aws::String> m_responseModels;
162 bool m_responseModelsHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace APIGateway
167} // namespace Aws
PutMethodResponseRequest & WithResourceId(Aws::String &&value)
void SetResponseParameters(const Aws::Map< Aws::String, bool > &value)
PutMethodResponseRequest & AddResponseModels(const char *key, const char *value)
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
PutMethodResponseRequest & AddResponseModels(const Aws::String &key, const Aws::String &value)
PutMethodResponseRequest & WithResponseModels(const Aws::Map< Aws::String, Aws::String > &value)
PutMethodResponseRequest & AddResponseModels(Aws::String &&key, const char *value)
PutMethodResponseRequest & WithResponseParameters(const Aws::Map< Aws::String, bool > &value)
PutMethodResponseRequest & WithResourceId(const Aws::String &value)
PutMethodResponseRequest & WithResourceId(const char *value)
void SetResponseModels(Aws::Map< Aws::String, Aws::String > &&value)
void SetResponseModels(const Aws::Map< Aws::String, Aws::String > &value)
PutMethodResponseRequest & AddResponseParameters(Aws::String &&key, bool value)
PutMethodResponseRequest & WithStatusCode(const Aws::String &value)
PutMethodResponseRequest & AddResponseParameters(const char *key, bool value)
PutMethodResponseRequest & WithRestApiId(const Aws::String &value)
const Aws::Map< Aws::String, bool > & GetResponseParameters() const
PutMethodResponseRequest & WithResponseParameters(Aws::Map< Aws::String, bool > &&value)
PutMethodResponseRequest & AddResponseModels(const Aws::String &key, Aws::String &&value)
PutMethodResponseRequest & WithResponseModels(Aws::Map< Aws::String, Aws::String > &&value)
void SetResponseParameters(Aws::Map< Aws::String, bool > &&value)
PutMethodResponseRequest & WithHttpMethod(const Aws::String &value)
PutMethodResponseRequest & WithRestApiId(const char *value)
PutMethodResponseRequest & WithStatusCode(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetResponseModels() const
virtual const char * GetServiceRequestName() const override
PutMethodResponseRequest & AddResponseModels(Aws::String &&key, Aws::String &&value)
PutMethodResponseRequest & WithRestApiId(Aws::String &&value)
PutMethodResponseRequest & AddResponseModels(Aws::String &&key, const Aws::String &value)
PutMethodResponseRequest & AddResponseModels(const char *key, Aws::String &&value)
PutMethodResponseRequest & WithStatusCode(const char *value)
PutMethodResponseRequest & WithHttpMethod(const char *value)
PutMethodResponseRequest & WithHttpMethod(Aws::String &&value)
PutMethodResponseRequest & AddResponseParameters(const Aws::String &key, bool 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