AWS SDK for C++

AWS SDK for C++ Version 1.11.767

Loading...
Searching...
No Matches
UpdateDocumentationPartRequest.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
26 public:
27 AWS_APIGATEWAY_API UpdateDocumentationPartRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateDocumentationPart"; }
34
35 AWS_APIGATEWAY_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::String& GetRestApiId() const { return m_restApiId; }
42 inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
43 template <typename RestApiIdT = Aws::String>
44 void SetRestApiId(RestApiIdT&& value) {
45 m_restApiIdHasBeenSet = true;
46 m_restApiId = std::forward<RestApiIdT>(value);
47 }
48 template <typename RestApiIdT = Aws::String>
50 SetRestApiId(std::forward<RestApiIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDocumentationPartId() const { return m_documentationPartId; }
60 inline bool DocumentationPartIdHasBeenSet() const { return m_documentationPartIdHasBeenSet; }
61 template <typename DocumentationPartIdT = Aws::String>
62 void SetDocumentationPartId(DocumentationPartIdT&& value) {
63 m_documentationPartIdHasBeenSet = true;
64 m_documentationPartId = std::forward<DocumentationPartIdT>(value);
65 }
66 template <typename DocumentationPartIdT = Aws::String>
68 SetDocumentationPartId(std::forward<DocumentationPartIdT>(value));
69 return *this;
70 }
72
74
79 inline const Aws::Vector<PatchOperation>& GetPatchOperations() const { return m_patchOperations; }
80 inline bool PatchOperationsHasBeenSet() const { return m_patchOperationsHasBeenSet; }
81 template <typename PatchOperationsT = Aws::Vector<PatchOperation>>
82 void SetPatchOperations(PatchOperationsT&& value) {
83 m_patchOperationsHasBeenSet = true;
84 m_patchOperations = std::forward<PatchOperationsT>(value);
85 }
86 template <typename PatchOperationsT = Aws::Vector<PatchOperation>>
88 SetPatchOperations(std::forward<PatchOperationsT>(value));
89 return *this;
90 }
91 template <typename PatchOperationsT = PatchOperation>
93 m_patchOperationsHasBeenSet = true;
94 m_patchOperations.emplace_back(std::forward<PatchOperationsT>(value));
95 return *this;
96 }
98 private:
99 Aws::String m_restApiId;
100
101 Aws::String m_documentationPartId;
102
103 Aws::Vector<PatchOperation> m_patchOperations;
104 bool m_restApiIdHasBeenSet = false;
105 bool m_documentationPartIdHasBeenSet = false;
106 bool m_patchOperationsHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace APIGateway
111} // namespace Aws
UpdateDocumentationPartRequest & WithRestApiId(RestApiIdT &&value)
UpdateDocumentationPartRequest & AddPatchOperations(PatchOperationsT &&value)
UpdateDocumentationPartRequest & WithDocumentationPartId(DocumentationPartIdT &&value)
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
UpdateDocumentationPartRequest & WithPatchOperations(PatchOperationsT &&value)
const Aws::Vector< PatchOperation > & GetPatchOperations() const
AWS_APIGATEWAY_API UpdateDocumentationPartRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector