AWS SDK for C++  1.9.20
AWS SDK for C++
GetGatewayResponseRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace APIGateway
16 {
17 namespace Model
18 {
19 
27  {
28  public:
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 "GetGatewayResponse"; }
36 
37  Aws::String SerializePayload() const override;
38 
39 
43  inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
44 
48  inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
49 
53  inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
54 
58  inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::move(value); }
59 
63  inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
64 
68  inline GetGatewayResponseRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
69 
73  inline GetGatewayResponseRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(std::move(value)); return *this;}
74 
78  inline GetGatewayResponseRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
79 
80 
89  inline const GatewayResponseType& GetResponseType() const{ return m_responseType; }
90 
99  inline bool ResponseTypeHasBeenSet() const { return m_responseTypeHasBeenSet; }
100 
109  inline void SetResponseType(const GatewayResponseType& value) { m_responseTypeHasBeenSet = true; m_responseType = value; }
110 
119  inline void SetResponseType(GatewayResponseType&& value) { m_responseTypeHasBeenSet = true; m_responseType = std::move(value); }
120 
129  inline GetGatewayResponseRequest& WithResponseType(const GatewayResponseType& value) { SetResponseType(value); return *this;}
130 
139  inline GetGatewayResponseRequest& WithResponseType(GatewayResponseType&& value) { SetResponseType(std::move(value)); return *this;}
140 
141  private:
142 
143  Aws::String m_restApiId;
144  bool m_restApiIdHasBeenSet;
145 
146  GatewayResponseType m_responseType;
147  bool m_responseTypeHasBeenSet;
148  };
149 
150 } // namespace Model
151 } // namespace APIGateway
152 } // namespace Aws
GatewayResponseType.h
Aws::APIGateway::Model::GetGatewayResponseRequest::SetResponseType
void SetResponseType(GatewayResponseType &&value)
Definition: GetGatewayResponseRequest.h:119
Aws::APIGateway::Model::GetGatewayResponseRequest::WithResponseType
GetGatewayResponseRequest & WithResponseType(GatewayResponseType &&value)
Definition: GetGatewayResponseRequest.h:139
Aws::APIGateway::Model::GetGatewayResponseRequest::SetRestApiId
void SetRestApiId(const char *value)
Definition: GetGatewayResponseRequest.h:63
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::GetGatewayResponseRequest::SetRestApiId
void SetRestApiId(Aws::String &&value)
Definition: GetGatewayResponseRequest.h:58
Aws::APIGateway::Model::GetGatewayResponseRequest::WithRestApiId
GetGatewayResponseRequest & WithRestApiId(Aws::String &&value)
Definition: GetGatewayResponseRequest.h:73
Aws::APIGateway::Model::GetGatewayResponseRequest::WithRestApiId
GetGatewayResponseRequest & WithRestApiId(const char *value)
Definition: GetGatewayResponseRequest.h:78
Aws::APIGateway::Model::GetGatewayResponseRequest::SerializePayload
Aws::String SerializePayload() const override
APIGateway_EXPORTS.h
Aws::APIGateway::Model::GetGatewayResponseRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetGatewayResponseRequest.h:35
Aws::APIGateway::Model::GetGatewayResponseRequest::WithRestApiId
GetGatewayResponseRequest & WithRestApiId(const Aws::String &value)
Definition: GetGatewayResponseRequest.h:68
APIGatewayRequest.h
Aws::APIGateway::Model::GetGatewayResponseRequest::RestApiIdHasBeenSet
bool RestApiIdHasBeenSet() const
Definition: GetGatewayResponseRequest.h:48
Aws::APIGateway::Model::GetGatewayResponseRequest::SetResponseType
void SetResponseType(const GatewayResponseType &value)
Definition: GetGatewayResponseRequest.h:109
Aws::APIGateway::Model::GetGatewayResponseRequest::GetResponseType
const GatewayResponseType & GetResponseType() const
Definition: GetGatewayResponseRequest.h:89
Aws::APIGateway::Model::GetGatewayResponseRequest::GetGatewayResponseRequest
GetGatewayResponseRequest()
AWSString.h
Aws::APIGateway::Model::GetGatewayResponseRequest::SetRestApiId
void SetRestApiId(const Aws::String &value)
Definition: GetGatewayResponseRequest.h:53
Aws::APIGateway::Model::GatewayResponseType
GatewayResponseType
Definition: GatewayResponseType.h:17
Aws::APIGateway::Model::GetGatewayResponseRequest::GetRestApiId
const Aws::String & GetRestApiId() const
Definition: GetGatewayResponseRequest.h:43
Aws
Definition: AccessManagementClient.h:15
Aws::APIGateway::Model::GetGatewayResponseRequest::WithResponseType
GetGatewayResponseRequest & WithResponseType(const GatewayResponseType &value)
Definition: GetGatewayResponseRequest.h:129
Aws::APIGateway::Model::GetGatewayResponseRequest::ResponseTypeHasBeenSet
bool ResponseTypeHasBeenSet() const
Definition: GetGatewayResponseRequest.h:99
Aws::APIGateway::Model::GetGatewayResponseRequest
Definition: GetGatewayResponseRequest.h:27
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::APIGatewayRequest
Definition: APIGatewayRequest.h:18