AWS SDK for C++

AWS SDK for C++ Version 1.11.768

Loading...
Searching...
No Matches
UpdateRequestValidatorRequest.h
1
6#pragma once
7#include <aws/apigateway/APIGatewayRequest.h>
8#include <aws/apigateway/APIGateway_EXPORTS.h>
9#include <aws/apigateway/model/PatchOperation.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace APIGateway {
17namespace Model {
18
25 public:
26 AWS_APIGATEWAY_API UpdateRequestValidatorRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateRequestValidator"; }
33
34 AWS_APIGATEWAY_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::String& GetRestApiId() const { return m_restApiId; }
41 inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
42 template <typename RestApiIdT = Aws::String>
43 void SetRestApiId(RestApiIdT&& value) {
44 m_restApiIdHasBeenSet = true;
45 m_restApiId = std::forward<RestApiIdT>(value);
46 }
47 template <typename RestApiIdT = Aws::String>
49 SetRestApiId(std::forward<RestApiIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetRequestValidatorId() const { return m_requestValidatorId; }
59 inline bool RequestValidatorIdHasBeenSet() const { return m_requestValidatorIdHasBeenSet; }
60 template <typename RequestValidatorIdT = Aws::String>
61 void SetRequestValidatorId(RequestValidatorIdT&& value) {
62 m_requestValidatorIdHasBeenSet = true;
63 m_requestValidatorId = std::forward<RequestValidatorIdT>(value);
64 }
65 template <typename RequestValidatorIdT = Aws::String>
67 SetRequestValidatorId(std::forward<RequestValidatorIdT>(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
100 Aws::String m_requestValidatorId;
101
102 Aws::Vector<PatchOperation> m_patchOperations;
103 bool m_restApiIdHasBeenSet = false;
104 bool m_requestValidatorIdHasBeenSet = false;
105 bool m_patchOperationsHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace APIGateway
110} // namespace Aws
UpdateRequestValidatorRequest & WithPatchOperations(PatchOperationsT &&value)
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
UpdateRequestValidatorRequest & AddPatchOperations(PatchOperationsT &&value)
AWS_APIGATEWAY_API UpdateRequestValidatorRequest()=default
UpdateRequestValidatorRequest & WithRestApiId(RestApiIdT &&value)
const Aws::Vector< PatchOperation > & GetPatchOperations() const
UpdateRequestValidatorRequest & WithRequestValidatorId(RequestValidatorIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector