AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
48 inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::move(value); }
49 inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
50 inline PutGatewayResponseRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
51 inline PutGatewayResponseRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(std::move(value)); return *this;}
52 inline PutGatewayResponseRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
54
56
59 inline const GatewayResponseType& GetResponseType() const{ return m_responseType; }
60 inline bool ResponseTypeHasBeenSet() const { return m_responseTypeHasBeenSet; }
61 inline void SetResponseType(const GatewayResponseType& value) { m_responseTypeHasBeenSet = true; m_responseType = value; }
62 inline void SetResponseType(GatewayResponseType&& value) { m_responseTypeHasBeenSet = true; m_responseType = std::move(value); }
64 inline PutGatewayResponseRequest& WithResponseType(GatewayResponseType&& value) { SetResponseType(std::move(value)); return *this;}
66
68
71 inline const Aws::String& GetStatusCode() const{ return m_statusCode; }
72 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
73 inline void SetStatusCode(const Aws::String& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
74 inline void SetStatusCode(Aws::String&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::move(value); }
75 inline void SetStatusCode(const char* value) { m_statusCodeHasBeenSet = true; m_statusCode.assign(value); }
76 inline PutGatewayResponseRequest& WithStatusCode(const Aws::String& value) { SetStatusCode(value); return *this;}
77 inline PutGatewayResponseRequest& WithStatusCode(Aws::String&& value) { SetStatusCode(std::move(value)); return *this;}
78 inline PutGatewayResponseRequest& WithStatusCode(const char* value) { SetStatusCode(value); return *this;}
80
82
86 inline const Aws::Map<Aws::String, Aws::String>& GetResponseParameters() const{ return m_responseParameters; }
87 inline bool ResponseParametersHasBeenSet() const { return m_responseParametersHasBeenSet; }
88 inline void SetResponseParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_responseParametersHasBeenSet = true; m_responseParameters = value; }
89 inline void SetResponseParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_responseParametersHasBeenSet = true; m_responseParameters = std::move(value); }
92 inline PutGatewayResponseRequest& AddResponseParameters(const Aws::String& key, const Aws::String& value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(key, value); return *this; }
93 inline PutGatewayResponseRequest& AddResponseParameters(Aws::String&& key, const Aws::String& value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(std::move(key), value); return *this; }
94 inline PutGatewayResponseRequest& AddResponseParameters(const Aws::String& key, Aws::String&& value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(key, std::move(value)); return *this; }
95 inline PutGatewayResponseRequest& AddResponseParameters(Aws::String&& key, Aws::String&& value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(std::move(key), std::move(value)); return *this; }
96 inline PutGatewayResponseRequest& AddResponseParameters(const char* key, Aws::String&& value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(key, std::move(value)); return *this; }
97 inline PutGatewayResponseRequest& AddResponseParameters(Aws::String&& key, const char* value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(std::move(key), value); return *this; }
98 inline PutGatewayResponseRequest& AddResponseParameters(const char* key, const char* value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(key, value); return *this; }
100
102
106 inline const Aws::Map<Aws::String, Aws::String>& GetResponseTemplates() const{ return m_responseTemplates; }
107 inline bool ResponseTemplatesHasBeenSet() const { return m_responseTemplatesHasBeenSet; }
108 inline void SetResponseTemplates(const Aws::Map<Aws::String, Aws::String>& value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates = value; }
109 inline void SetResponseTemplates(Aws::Map<Aws::String, Aws::String>&& value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates = std::move(value); }
112 inline PutGatewayResponseRequest& AddResponseTemplates(const Aws::String& key, const Aws::String& value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates.emplace(key, value); return *this; }
113 inline PutGatewayResponseRequest& AddResponseTemplates(Aws::String&& key, const Aws::String& value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates.emplace(std::move(key), value); return *this; }
114 inline PutGatewayResponseRequest& AddResponseTemplates(const Aws::String& key, Aws::String&& value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates.emplace(key, std::move(value)); return *this; }
115 inline PutGatewayResponseRequest& AddResponseTemplates(Aws::String&& key, Aws::String&& value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates.emplace(std::move(key), std::move(value)); return *this; }
116 inline PutGatewayResponseRequest& AddResponseTemplates(const char* key, Aws::String&& value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates.emplace(key, std::move(value)); return *this; }
117 inline PutGatewayResponseRequest& AddResponseTemplates(Aws::String&& key, const char* value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates.emplace(std::move(key), value); return *this; }
118 inline PutGatewayResponseRequest& AddResponseTemplates(const char* key, const char* value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates.emplace(key, value); return *this; }
120 private:
121
122 Aws::String m_restApiId;
123 bool m_restApiIdHasBeenSet = false;
124
125 GatewayResponseType m_responseType;
126 bool m_responseTypeHasBeenSet = false;
127
128 Aws::String m_statusCode;
129 bool m_statusCodeHasBeenSet = false;
130
131 Aws::Map<Aws::String, Aws::String> m_responseParameters;
132 bool m_responseParametersHasBeenSet = false;
133
134 Aws::Map<Aws::String, Aws::String> m_responseTemplates;
135 bool m_responseTemplatesHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace APIGateway
140} // namespace Aws
void SetResponseType(const GatewayResponseType &value)
PutGatewayResponseRequest & AddResponseParameters(Aws::String &&key, const char *value)
void SetResponseParameters(Aws::Map< Aws::String, Aws::String > &&value)
PutGatewayResponseRequest & AddResponseParameters(const char *key, Aws::String &&value)
PutGatewayResponseRequest & WithStatusCode(const Aws::String &value)
void SetResponseTemplates(const Aws::Map< Aws::String, Aws::String > &value)
PutGatewayResponseRequest & AddResponseParameters(Aws::String &&key, const Aws::String &value)
PutGatewayResponseRequest & WithResponseParameters(Aws::Map< Aws::String, Aws::String > &&value)
PutGatewayResponseRequest & AddResponseParameters(const Aws::String &key, Aws::String &&value)
PutGatewayResponseRequest & WithStatusCode(Aws::String &&value)
PutGatewayResponseRequest & WithStatusCode(const char *value)
PutGatewayResponseRequest & WithResponseType(const GatewayResponseType &value)
PutGatewayResponseRequest & WithResponseTemplates(const Aws::Map< Aws::String, Aws::String > &value)
void SetResponseTemplates(Aws::Map< Aws::String, Aws::String > &&value)
PutGatewayResponseRequest & WithResponseType(GatewayResponseType &&value)
PutGatewayResponseRequest & WithResponseParameters(const Aws::Map< Aws::String, Aws::String > &value)
PutGatewayResponseRequest & WithRestApiId(const char *value)
PutGatewayResponseRequest & AddResponseTemplates(Aws::String &&key, const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetResponseParameters() const
PutGatewayResponseRequest & WithRestApiId(Aws::String &&value)
PutGatewayResponseRequest & AddResponseParameters(const char *key, const char *value)
PutGatewayResponseRequest & WithResponseTemplates(Aws::Map< Aws::String, Aws::String > &&value)
PutGatewayResponseRequest & AddResponseTemplates(const Aws::String &key, Aws::String &&value)
PutGatewayResponseRequest & AddResponseParameters(Aws::String &&key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetResponseTemplates() const
PutGatewayResponseRequest & AddResponseTemplates(Aws::String &&key, const char *value)
PutGatewayResponseRequest & AddResponseTemplates(Aws::String &&key, Aws::String &&value)
virtual const char * GetServiceRequestName() const override
void SetResponseParameters(const Aws::Map< Aws::String, Aws::String > &value)
PutGatewayResponseRequest & AddResponseTemplates(const Aws::String &key, const Aws::String &value)
PutGatewayResponseRequest & AddResponseTemplates(const char *key, Aws::String &&value)
PutGatewayResponseRequest & AddResponseTemplates(const char *key, const char *value)
PutGatewayResponseRequest & AddResponseParameters(const Aws::String &key, const Aws::String &value)
PutGatewayResponseRequest & WithRestApiId(const Aws::String &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