AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename RestApiIdT = Aws::String>
47 void SetRestApiId(RestApiIdT&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::forward<RestApiIdT>(value); }
48 template<typename RestApiIdT = Aws::String>
49 PutMethodResponseRequest& WithRestApiId(RestApiIdT&& value) { SetRestApiId(std::forward<RestApiIdT>(value)); return *this;}
51
53
56 inline const Aws::String& GetResourceId() const { return m_resourceId; }
57 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
58 template<typename ResourceIdT = Aws::String>
59 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
60 template<typename ResourceIdT = Aws::String>
61 PutMethodResponseRequest& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
63
65
68 inline const Aws::String& GetHttpMethod() const { return m_httpMethod; }
69 inline bool HttpMethodHasBeenSet() const { return m_httpMethodHasBeenSet; }
70 template<typename HttpMethodT = Aws::String>
71 void SetHttpMethod(HttpMethodT&& value) { m_httpMethodHasBeenSet = true; m_httpMethod = std::forward<HttpMethodT>(value); }
72 template<typename HttpMethodT = Aws::String>
73 PutMethodResponseRequest& WithHttpMethod(HttpMethodT&& value) { SetHttpMethod(std::forward<HttpMethodT>(value)); return *this;}
75
77
80 inline const Aws::String& GetStatusCode() const { return m_statusCode; }
81 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
82 template<typename StatusCodeT = Aws::String>
83 void SetStatusCode(StatusCodeT&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::forward<StatusCodeT>(value); }
84 template<typename StatusCodeT = Aws::String>
85 PutMethodResponseRequest& WithStatusCode(StatusCodeT&& value) { SetStatusCode(std::forward<StatusCodeT>(value)); return *this;}
87
89
105 inline const Aws::Map<Aws::String, bool>& GetResponseParameters() const { return m_responseParameters; }
106 inline bool ResponseParametersHasBeenSet() const { return m_responseParametersHasBeenSet; }
107 template<typename ResponseParametersT = Aws::Map<Aws::String, bool>>
108 void SetResponseParameters(ResponseParametersT&& value) { m_responseParametersHasBeenSet = true; m_responseParameters = std::forward<ResponseParametersT>(value); }
109 template<typename ResponseParametersT = Aws::Map<Aws::String, bool>>
110 PutMethodResponseRequest& WithResponseParameters(ResponseParametersT&& value) { SetResponseParameters(std::forward<ResponseParametersT>(value)); return *this;}
112 m_responseParametersHasBeenSet = true; m_responseParameters.emplace(key, value); return *this;
113 }
115
117
122 inline const Aws::Map<Aws::String, Aws::String>& GetResponseModels() const { return m_responseModels; }
123 inline bool ResponseModelsHasBeenSet() const { return m_responseModelsHasBeenSet; }
124 template<typename ResponseModelsT = Aws::Map<Aws::String, Aws::String>>
125 void SetResponseModels(ResponseModelsT&& value) { m_responseModelsHasBeenSet = true; m_responseModels = std::forward<ResponseModelsT>(value); }
126 template<typename ResponseModelsT = Aws::Map<Aws::String, Aws::String>>
127 PutMethodResponseRequest& WithResponseModels(ResponseModelsT&& value) { SetResponseModels(std::forward<ResponseModelsT>(value)); return *this;}
128 template<typename ResponseModelsKeyT = Aws::String, typename ResponseModelsValueT = Aws::String>
129 PutMethodResponseRequest& AddResponseModels(ResponseModelsKeyT&& key, ResponseModelsValueT&& value) {
130 m_responseModelsHasBeenSet = true; m_responseModels.emplace(std::forward<ResponseModelsKeyT>(key), std::forward<ResponseModelsValueT>(value)); return *this;
131 }
133 private:
134
135 Aws::String m_restApiId;
136 bool m_restApiIdHasBeenSet = false;
137
138 Aws::String m_resourceId;
139 bool m_resourceIdHasBeenSet = false;
140
141 Aws::String m_httpMethod;
142 bool m_httpMethodHasBeenSet = false;
143
144 Aws::String m_statusCode;
145 bool m_statusCodeHasBeenSet = false;
146
147 Aws::Map<Aws::String, bool> m_responseParameters;
148 bool m_responseParametersHasBeenSet = false;
149
150 Aws::Map<Aws::String, Aws::String> m_responseModels;
151 bool m_responseModelsHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace APIGateway
156} // namespace Aws
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
PutMethodResponseRequest & WithStatusCode(StatusCodeT &&value)
PutMethodResponseRequest & AddResponseParameters(Aws::String key, bool value)
PutMethodResponseRequest & WithResponseModels(ResponseModelsT &&value)
const Aws::Map< Aws::String, bool > & GetResponseParameters() const
PutMethodResponseRequest & WithRestApiId(RestApiIdT &&value)
AWS_APIGATEWAY_API PutMethodResponseRequest()=default
PutMethodResponseRequest & WithResponseParameters(ResponseParametersT &&value)
const Aws::Map< Aws::String, Aws::String > & GetResponseModels() const
virtual const char * GetServiceRequestName() const override
PutMethodResponseRequest & WithHttpMethod(HttpMethodT &&value)
PutMethodResponseRequest & WithResourceId(ResourceIdT &&value)
PutMethodResponseRequest & AddResponseModels(ResponseModelsKeyT &&key, ResponseModelsValueT &&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