AWS SDK for C++  1.9.123
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 
87  inline const GatewayResponseType& GetResponseType() const{ return m_responseType; }
88 
93  inline bool ResponseTypeHasBeenSet() const { return m_responseTypeHasBeenSet; }
94 
99  inline void SetResponseType(const GatewayResponseType& value) { m_responseTypeHasBeenSet = true; m_responseType = value; }
100 
105  inline void SetResponseType(GatewayResponseType&& value) { m_responseTypeHasBeenSet = true; m_responseType = std::move(value); }
106 
111  inline UpdateGatewayResponseRequest& WithResponseType(const GatewayResponseType& value) { SetResponseType(value); return *this;}
112 
117  inline UpdateGatewayResponseRequest& WithResponseType(GatewayResponseType&& value) { SetResponseType(std::move(value)); return *this;}
118 
119 
124  inline const Aws::Vector<PatchOperation>& GetPatchOperations() const{ return m_patchOperations; }
125 
130  inline bool PatchOperationsHasBeenSet() const { return m_patchOperationsHasBeenSet; }
131 
136  inline void SetPatchOperations(const Aws::Vector<PatchOperation>& value) { m_patchOperationsHasBeenSet = true; m_patchOperations = value; }
137 
142  inline void SetPatchOperations(Aws::Vector<PatchOperation>&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations = std::move(value); }
143 
148  inline UpdateGatewayResponseRequest& WithPatchOperations(const Aws::Vector<PatchOperation>& value) { SetPatchOperations(value); return *this;}
149 
154  inline UpdateGatewayResponseRequest& WithPatchOperations(Aws::Vector<PatchOperation>&& value) { SetPatchOperations(std::move(value)); return *this;}
155 
160  inline UpdateGatewayResponseRequest& AddPatchOperations(const PatchOperation& value) { m_patchOperationsHasBeenSet = true; m_patchOperations.push_back(value); return *this; }
161 
166  inline UpdateGatewayResponseRequest& AddPatchOperations(PatchOperation&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations.push_back(std::move(value)); return *this; }
167 
168  private:
169 
170  Aws::String m_restApiId;
171  bool m_restApiIdHasBeenSet;
172 
173  GatewayResponseType m_responseType;
174  bool m_responseTypeHasBeenSet;
175 
176  Aws::Vector<PatchOperation> m_patchOperations;
177  bool m_patchOperationsHasBeenSet;
178  };
179 
180 } // namespace Model
181 } // namespace APIGateway
182 } // namespace Aws
GatewayResponseType.h
Aws::APIGateway::Model::UpdateGatewayResponseRequest::GetResponseType
const GatewayResponseType & GetResponseType() const
Definition: UpdateGatewayResponseRequest.h:87
Aws::APIGateway::Model::UpdateGatewayResponseRequest::PatchOperationsHasBeenSet
bool PatchOperationsHasBeenSet() const
Definition: UpdateGatewayResponseRequest.h:130
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:154
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:93
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:124
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:160
AWSString.h
Aws::APIGateway::Model::UpdateGatewayResponseRequest::SetResponseType
void SetResponseType(GatewayResponseType &&value)
Definition: UpdateGatewayResponseRequest.h:105
Aws::APIGateway::Model::UpdateGatewayResponseRequest::SetPatchOperations
void SetPatchOperations(Aws::Vector< PatchOperation > &&value)
Definition: UpdateGatewayResponseRequest.h:142
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:111
Aws::APIGateway::Model::UpdateGatewayResponseRequest::WithResponseType
UpdateGatewayResponseRequest & WithResponseType(GatewayResponseType &&value)
Definition: UpdateGatewayResponseRequest.h:117
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:166
Aws::APIGateway::Model::UpdateGatewayResponseRequest::WithPatchOperations
UpdateGatewayResponseRequest & WithPatchOperations(const Aws::Vector< PatchOperation > &value)
Definition: UpdateGatewayResponseRequest.h:148
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:99
Aws::APIGateway::Model::UpdateGatewayResponseRequest::SetPatchOperations
void SetPatchOperations(const Aws::Vector< PatchOperation > &value)
Definition: UpdateGatewayResponseRequest.h:136