AWS SDK for C++

AWS SDK for C++ Version 1.11.767

Loading...
Searching...
No Matches
UpdateGatewayResponseRequest.h
1
6#pragma once
7#include <aws/apigateway/APIGatewayRequest.h>
8#include <aws/apigateway/APIGateway_EXPORTS.h>
9#include <aws/apigateway/model/GatewayResponseType.h>
10#include <aws/apigateway/model/PatchOperation.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace APIGateway {
18namespace Model {
19
27 public:
28 AWS_APIGATEWAY_API UpdateGatewayResponseRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateGatewayResponse"; }
35
36 AWS_APIGATEWAY_API Aws::String SerializePayload() const override;
37
39
42 inline const Aws::String& GetRestApiId() const { return m_restApiId; }
43 inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
44 template <typename RestApiIdT = Aws::String>
45 void SetRestApiId(RestApiIdT&& value) {
46 m_restApiIdHasBeenSet = true;
47 m_restApiId = std::forward<RestApiIdT>(value);
48 }
49 template <typename RestApiIdT = Aws::String>
51 SetRestApiId(std::forward<RestApiIdT>(value));
52 return *this;
53 }
55
57
60 inline GatewayResponseType GetResponseType() const { return m_responseType; }
61 inline bool ResponseTypeHasBeenSet() const { return m_responseTypeHasBeenSet; }
63 m_responseTypeHasBeenSet = true;
64 m_responseType = value;
65 }
67 SetResponseType(value);
68 return *this;
69 }
71
73
78 inline const Aws::Vector<PatchOperation>& GetPatchOperations() const { return m_patchOperations; }
79 inline bool PatchOperationsHasBeenSet() const { return m_patchOperationsHasBeenSet; }
80 template <typename PatchOperationsT = Aws::Vector<PatchOperation>>
81 void SetPatchOperations(PatchOperationsT&& value) {
82 m_patchOperationsHasBeenSet = true;
83 m_patchOperations = std::forward<PatchOperationsT>(value);
84 }
85 template <typename PatchOperationsT = Aws::Vector<PatchOperation>>
87 SetPatchOperations(std::forward<PatchOperationsT>(value));
88 return *this;
89 }
90 template <typename PatchOperationsT = PatchOperation>
92 m_patchOperationsHasBeenSet = true;
93 m_patchOperations.emplace_back(std::forward<PatchOperationsT>(value));
94 return *this;
95 }
97 private:
98 Aws::String m_restApiId;
99
101
102 Aws::Vector<PatchOperation> m_patchOperations;
103 bool m_restApiIdHasBeenSet = false;
104 bool m_responseTypeHasBeenSet = false;
105 bool m_patchOperationsHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace APIGateway
110} // namespace Aws
UpdateGatewayResponseRequest & WithRestApiId(RestApiIdT &&value)
UpdateGatewayResponseRequest & AddPatchOperations(PatchOperationsT &&value)
const Aws::Vector< PatchOperation > & GetPatchOperations() const
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
UpdateGatewayResponseRequest & WithPatchOperations(PatchOperationsT &&value)
UpdateGatewayResponseRequest & WithResponseType(GatewayResponseType value)
AWS_APIGATEWAY_API UpdateGatewayResponseRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector