AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PutGatewayResponseRequest.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/apigateway/model/GatewayResponseType.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace APIGateway
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_APIGATEWAY_API PutGatewayResponseRequest() = default;
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 "PutGatewayResponse"; }
37
38 AWS_APIGATEWAY_API Aws::String SerializePayload() const override;
39
40
42
45 inline const Aws::String& GetRestApiId() const { return m_restApiId; }
46 inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
47 template<typename RestApiIdT = Aws::String>
48 void SetRestApiId(RestApiIdT&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::forward<RestApiIdT>(value); }
49 template<typename RestApiIdT = Aws::String>
50 PutGatewayResponseRequest& WithRestApiId(RestApiIdT&& value) { SetRestApiId(std::forward<RestApiIdT>(value)); return *this;}
52
54
57 inline GatewayResponseType GetResponseType() const { return m_responseType; }
58 inline bool ResponseTypeHasBeenSet() const { return m_responseTypeHasBeenSet; }
59 inline void SetResponseType(GatewayResponseType value) { m_responseTypeHasBeenSet = true; m_responseType = value; }
62
64
67 inline const Aws::String& GetStatusCode() const { return m_statusCode; }
68 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
69 template<typename StatusCodeT = Aws::String>
70 void SetStatusCode(StatusCodeT&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::forward<StatusCodeT>(value); }
71 template<typename StatusCodeT = Aws::String>
72 PutGatewayResponseRequest& WithStatusCode(StatusCodeT&& value) { SetStatusCode(std::forward<StatusCodeT>(value)); return *this;}
74
76
80 inline const Aws::Map<Aws::String, Aws::String>& GetResponseParameters() const { return m_responseParameters; }
81 inline bool ResponseParametersHasBeenSet() const { return m_responseParametersHasBeenSet; }
82 template<typename ResponseParametersT = Aws::Map<Aws::String, Aws::String>>
83 void SetResponseParameters(ResponseParametersT&& value) { m_responseParametersHasBeenSet = true; m_responseParameters = std::forward<ResponseParametersT>(value); }
84 template<typename ResponseParametersT = Aws::Map<Aws::String, Aws::String>>
85 PutGatewayResponseRequest& WithResponseParameters(ResponseParametersT&& value) { SetResponseParameters(std::forward<ResponseParametersT>(value)); return *this;}
86 template<typename ResponseParametersKeyT = Aws::String, typename ResponseParametersValueT = Aws::String>
87 PutGatewayResponseRequest& AddResponseParameters(ResponseParametersKeyT&& key, ResponseParametersValueT&& value) {
88 m_responseParametersHasBeenSet = true; m_responseParameters.emplace(std::forward<ResponseParametersKeyT>(key), std::forward<ResponseParametersValueT>(value)); return *this;
89 }
91
93
97 inline const Aws::Map<Aws::String, Aws::String>& GetResponseTemplates() const { return m_responseTemplates; }
98 inline bool ResponseTemplatesHasBeenSet() const { return m_responseTemplatesHasBeenSet; }
99 template<typename ResponseTemplatesT = Aws::Map<Aws::String, Aws::String>>
100 void SetResponseTemplates(ResponseTemplatesT&& value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates = std::forward<ResponseTemplatesT>(value); }
101 template<typename ResponseTemplatesT = Aws::Map<Aws::String, Aws::String>>
102 PutGatewayResponseRequest& WithResponseTemplates(ResponseTemplatesT&& value) { SetResponseTemplates(std::forward<ResponseTemplatesT>(value)); return *this;}
103 template<typename ResponseTemplatesKeyT = Aws::String, typename ResponseTemplatesValueT = Aws::String>
104 PutGatewayResponseRequest& AddResponseTemplates(ResponseTemplatesKeyT&& key, ResponseTemplatesValueT&& value) {
105 m_responseTemplatesHasBeenSet = true; m_responseTemplates.emplace(std::forward<ResponseTemplatesKeyT>(key), std::forward<ResponseTemplatesValueT>(value)); return *this;
106 }
108 private:
109
110 Aws::String m_restApiId;
111 bool m_restApiIdHasBeenSet = false;
112
114 bool m_responseTypeHasBeenSet = false;
115
116 Aws::String m_statusCode;
117 bool m_statusCodeHasBeenSet = false;
118
119 Aws::Map<Aws::String, Aws::String> m_responseParameters;
120 bool m_responseParametersHasBeenSet = false;
121
122 Aws::Map<Aws::String, Aws::String> m_responseTemplates;
123 bool m_responseTemplatesHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace APIGateway
128} // namespace Aws
AWS_APIGATEWAY_API PutGatewayResponseRequest()=default
PutGatewayResponseRequest & WithRestApiId(RestApiIdT &&value)
PutGatewayResponseRequest & WithResponseType(GatewayResponseType value)
PutGatewayResponseRequest & WithStatusCode(StatusCodeT &&value)
const Aws::Map< Aws::String, Aws::String > & GetResponseParameters() const
PutGatewayResponseRequest & WithResponseParameters(ResponseParametersT &&value)
PutGatewayResponseRequest & AddResponseParameters(ResponseParametersKeyT &&key, ResponseParametersValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetResponseTemplates() const
virtual const char * GetServiceRequestName() const override
PutGatewayResponseRequest & WithResponseTemplates(ResponseTemplatesT &&value)
PutGatewayResponseRequest & AddResponseTemplates(ResponseTemplatesKeyT &&key, ResponseTemplatesValueT &&value)
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
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