AWS SDK for C++  1.9.66
AWS SDK for C++
UpdateGatewayResponseRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace APIGateway
18 {
19 namespace Model
20 {
21 
29  {
30  public:
32 
33  // Service request name is the Operation name which will send this request out,
34  // each operation should has unique request name, so that we can get operation's name from this request.
35  // Note: this is not true for response, multiple operations may have the same response name,
36  // so we can not get operation's name from response.
37  inline virtual const char* GetServiceRequestName() const override { return "UpdateGatewayResponse"; }
38 
39  Aws::String SerializePayload() const override;
40 
41 
45  inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
46 
50  inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
51 
55  inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
56 
60  inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::move(value); }
61 
65  inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
66 
70  inline UpdateGatewayResponseRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
71 
75  inline UpdateGatewayResponseRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(std::move(value)); return *this;}
76 
80  inline UpdateGatewayResponseRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
81 
82 
91  inline const GatewayResponseType& GetResponseType() const{ return m_responseType; }
92 
101  inline bool ResponseTypeHasBeenSet() const { return m_responseTypeHasBeenSet; }
102 
111  inline void SetResponseType(const GatewayResponseType& value) { m_responseTypeHasBeenSet = true; m_responseType = value; }
112 
121  inline void SetResponseType(GatewayResponseType&& value) { m_responseTypeHasBeenSet = true; m_responseType = std::move(value); }
122 
131  inline UpdateGatewayResponseRequest& WithResponseType(const GatewayResponseType& value) { SetResponseType(value); return *this;}
132 
141  inline UpdateGatewayResponseRequest& WithResponseType(GatewayResponseType&& value) { SetResponseType(std::move(value)); return *this;}
142 
143 
148  inline const Aws::Vector<PatchOperation>& GetPatchOperations() const{ return m_patchOperations; }
149 
154  inline bool PatchOperationsHasBeenSet() const { return m_patchOperationsHasBeenSet; }
155 
160  inline void SetPatchOperations(const Aws::Vector<PatchOperation>& value) { m_patchOperationsHasBeenSet = true; m_patchOperations = value; }
161 
166  inline void SetPatchOperations(Aws::Vector<PatchOperation>&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations = std::move(value); }
167 
172  inline UpdateGatewayResponseRequest& WithPatchOperations(const Aws::Vector<PatchOperation>& value) { SetPatchOperations(value); return *this;}
173 
178  inline UpdateGatewayResponseRequest& WithPatchOperations(Aws::Vector<PatchOperation>&& value) { SetPatchOperations(std::move(value)); return *this;}
179 
184  inline UpdateGatewayResponseRequest& AddPatchOperations(const PatchOperation& value) { m_patchOperationsHasBeenSet = true; m_patchOperations.push_back(value); return *this; }
185 
190  inline UpdateGatewayResponseRequest& AddPatchOperations(PatchOperation&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations.push_back(std::move(value)); return *this; }
191 
192  private:
193 
194  Aws::String m_restApiId;
195  bool m_restApiIdHasBeenSet;
196 
197  GatewayResponseType m_responseType;
198  bool m_responseTypeHasBeenSet;
199 
200  Aws::Vector<PatchOperation> m_patchOperations;
201  bool m_patchOperationsHasBeenSet;
202  };
203 
204 } // namespace Model
205 } // namespace APIGateway
206 } // namespace Aws
GatewayResponseType.h
Aws::APIGateway::Model::UpdateGatewayResponseRequest::GetResponseType
const GatewayResponseType & GetResponseType() const
Definition: UpdateGatewayResponseRequest.h:91
Aws::APIGateway::Model::UpdateGatewayResponseRequest::PatchOperationsHasBeenSet
bool PatchOperationsHasBeenSet() const
Definition: UpdateGatewayResponseRequest.h:154
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::UpdateGatewayResponseRequest
Definition: UpdateGatewayResponseRequest.h:29
Aws::APIGateway::Model::UpdateGatewayResponseRequest::RestApiIdHasBeenSet
bool RestApiIdHasBeenSet() const
Definition: UpdateGatewayResponseRequest.h:50
Aws::APIGateway::Model::UpdateGatewayResponseRequest::SetRestApiId
void SetRestApiId(const Aws::String &value)
Definition: UpdateGatewayResponseRequest.h:55
Aws::APIGateway::Model::UpdateGatewayResponseRequest::WithPatchOperations
UpdateGatewayResponseRequest & WithPatchOperations(Aws::Vector< PatchOperation > &&value)
Definition: UpdateGatewayResponseRequest.h:178
Aws::APIGateway::Model::UpdateGatewayResponseRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateGatewayResponseRequest.h:37
Aws::APIGateway::Model::UpdateGatewayResponseRequest::ResponseTypeHasBeenSet
bool ResponseTypeHasBeenSet() const
Definition: UpdateGatewayResponseRequest.h:101
APIGateway_EXPORTS.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::APIGateway::Model::UpdateGatewayResponseRequest::SetRestApiId
void SetRestApiId(const char *value)
Definition: UpdateGatewayResponseRequest.h:65
AWSVector.h
Aws::APIGateway::Model::UpdateGatewayResponseRequest::SerializePayload
Aws::String SerializePayload() const override
APIGatewayRequest.h
Aws::APIGateway::Model::UpdateGatewayResponseRequest::GetPatchOperations
const Aws::Vector< PatchOperation > & GetPatchOperations() const
Definition: UpdateGatewayResponseRequest.h:148
Aws::APIGateway::Model::UpdateGatewayResponseRequest::WithRestApiId
UpdateGatewayResponseRequest & WithRestApiId(Aws::String &&value)
Definition: UpdateGatewayResponseRequest.h:75
Aws::APIGateway::Model::UpdateGatewayResponseRequest::AddPatchOperations
UpdateGatewayResponseRequest & AddPatchOperations(const PatchOperation &value)
Definition: UpdateGatewayResponseRequest.h:184
AWSString.h
Aws::APIGateway::Model::UpdateGatewayResponseRequest::SetResponseType
void SetResponseType(GatewayResponseType &&value)
Definition: UpdateGatewayResponseRequest.h:121
Aws::APIGateway::Model::UpdateGatewayResponseRequest::SetPatchOperations
void SetPatchOperations(Aws::Vector< PatchOperation > &&value)
Definition: UpdateGatewayResponseRequest.h:166
Aws::APIGateway::Model::UpdateGatewayResponseRequest::GetRestApiId
const Aws::String & GetRestApiId() const
Definition: UpdateGatewayResponseRequest.h:45
Aws::APIGateway::Model::GatewayResponseType
GatewayResponseType
Definition: GatewayResponseType.h:17
Aws::APIGateway::Model::UpdateGatewayResponseRequest::WithResponseType
UpdateGatewayResponseRequest & WithResponseType(const GatewayResponseType &value)
Definition: UpdateGatewayResponseRequest.h:131
Aws::APIGateway::Model::UpdateGatewayResponseRequest::WithResponseType
UpdateGatewayResponseRequest & WithResponseType(GatewayResponseType &&value)
Definition: UpdateGatewayResponseRequest.h:141
Aws::APIGateway::Model::UpdateGatewayResponseRequest::WithRestApiId
UpdateGatewayResponseRequest & WithRestApiId(const Aws::String &value)
Definition: UpdateGatewayResponseRequest.h:70
Aws
Definition: AccessManagementClient.h:15
PatchOperation.h
Aws::APIGateway::Model::UpdateGatewayResponseRequest::UpdateGatewayResponseRequest
UpdateGatewayResponseRequest()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::UpdateGatewayResponseRequest::AddPatchOperations
UpdateGatewayResponseRequest & AddPatchOperations(PatchOperation &&value)
Definition: UpdateGatewayResponseRequest.h:190
Aws::APIGateway::Model::UpdateGatewayResponseRequest::WithPatchOperations
UpdateGatewayResponseRequest & WithPatchOperations(const Aws::Vector< PatchOperation > &value)
Definition: UpdateGatewayResponseRequest.h:172
Aws::APIGateway::Model::UpdateGatewayResponseRequest::SetRestApiId
void SetRestApiId(Aws::String &&value)
Definition: UpdateGatewayResponseRequest.h:60
Aws::APIGateway::Model::PatchOperation
Definition: PatchOperation.h:35
Aws::APIGateway::APIGatewayRequest
Definition: APIGatewayRequest.h:18
Aws::APIGateway::Model::UpdateGatewayResponseRequest::WithRestApiId
UpdateGatewayResponseRequest & WithRestApiId(const char *value)
Definition: UpdateGatewayResponseRequest.h:80
Aws::APIGateway::Model::UpdateGatewayResponseRequest::SetResponseType
void SetResponseType(const GatewayResponseType &value)
Definition: UpdateGatewayResponseRequest.h:111
Aws::APIGateway::Model::UpdateGatewayResponseRequest::SetPatchOperations
void SetPatchOperations(const Aws::Vector< PatchOperation > &value)
Definition: UpdateGatewayResponseRequest.h:160