AWS SDK for C++  1.9.14
AWS SDK for C++
UpdateDocumentationPartRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace APIGateway
17 {
18 namespace Model
19 {
20 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "UpdateDocumentationPart"; }
37 
38  Aws::String SerializePayload() const override;
39 
40 
44  inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
45 
49  inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
50 
54  inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
55 
59  inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::move(value); }
60 
64  inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
65 
69  inline UpdateDocumentationPartRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
70 
74  inline UpdateDocumentationPartRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(std::move(value)); return *this;}
75 
79  inline UpdateDocumentationPartRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
80 
81 
85  inline const Aws::String& GetDocumentationPartId() const{ return m_documentationPartId; }
86 
90  inline bool DocumentationPartIdHasBeenSet() const { return m_documentationPartIdHasBeenSet; }
91 
95  inline void SetDocumentationPartId(const Aws::String& value) { m_documentationPartIdHasBeenSet = true; m_documentationPartId = value; }
96 
100  inline void SetDocumentationPartId(Aws::String&& value) { m_documentationPartIdHasBeenSet = true; m_documentationPartId = std::move(value); }
101 
105  inline void SetDocumentationPartId(const char* value) { m_documentationPartIdHasBeenSet = true; m_documentationPartId.assign(value); }
106 
110  inline UpdateDocumentationPartRequest& WithDocumentationPartId(const Aws::String& value) { SetDocumentationPartId(value); return *this;}
111 
115  inline UpdateDocumentationPartRequest& WithDocumentationPartId(Aws::String&& value) { SetDocumentationPartId(std::move(value)); return *this;}
116 
120  inline UpdateDocumentationPartRequest& WithDocumentationPartId(const char* value) { SetDocumentationPartId(value); return *this;}
121 
122 
127  inline const Aws::Vector<PatchOperation>& GetPatchOperations() const{ return m_patchOperations; }
128 
133  inline bool PatchOperationsHasBeenSet() const { return m_patchOperationsHasBeenSet; }
134 
139  inline void SetPatchOperations(const Aws::Vector<PatchOperation>& value) { m_patchOperationsHasBeenSet = true; m_patchOperations = value; }
140 
145  inline void SetPatchOperations(Aws::Vector<PatchOperation>&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations = std::move(value); }
146 
151  inline UpdateDocumentationPartRequest& WithPatchOperations(const Aws::Vector<PatchOperation>& value) { SetPatchOperations(value); return *this;}
152 
157  inline UpdateDocumentationPartRequest& WithPatchOperations(Aws::Vector<PatchOperation>&& value) { SetPatchOperations(std::move(value)); return *this;}
158 
163  inline UpdateDocumentationPartRequest& AddPatchOperations(const PatchOperation& value) { m_patchOperationsHasBeenSet = true; m_patchOperations.push_back(value); return *this; }
164 
169  inline UpdateDocumentationPartRequest& AddPatchOperations(PatchOperation&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations.push_back(std::move(value)); return *this; }
170 
171  private:
172 
173  Aws::String m_restApiId;
174  bool m_restApiIdHasBeenSet;
175 
176  Aws::String m_documentationPartId;
177  bool m_documentationPartIdHasBeenSet;
178 
179  Aws::Vector<PatchOperation> m_patchOperations;
180  bool m_patchOperationsHasBeenSet;
181  };
182 
183 } // namespace Model
184 } // namespace APIGateway
185 } // namespace Aws
Aws::APIGateway::Model::UpdateDocumentationPartRequest::WithDocumentationPartId
UpdateDocumentationPartRequest & WithDocumentationPartId(const Aws::String &value)
Definition: UpdateDocumentationPartRequest.h:110
Aws::APIGateway::Model::UpdateDocumentationPartRequest
Definition: UpdateDocumentationPartRequest.h:28
Aws::APIGateway::Model::UpdateDocumentationPartRequest::GetRestApiId
const Aws::String & GetRestApiId() const
Definition: UpdateDocumentationPartRequest.h:44
Aws::APIGateway::Model::UpdateDocumentationPartRequest::WithRestApiId
UpdateDocumentationPartRequest & WithRestApiId(const Aws::String &value)
Definition: UpdateDocumentationPartRequest.h:69
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::UpdateDocumentationPartRequest::SetPatchOperations
void SetPatchOperations(Aws::Vector< PatchOperation > &&value)
Definition: UpdateDocumentationPartRequest.h:145
Aws::APIGateway::Model::UpdateDocumentationPartRequest::GetDocumentationPartId
const Aws::String & GetDocumentationPartId() const
Definition: UpdateDocumentationPartRequest.h:85
Aws::APIGateway::Model::UpdateDocumentationPartRequest::AddPatchOperations
UpdateDocumentationPartRequest & AddPatchOperations(PatchOperation &&value)
Definition: UpdateDocumentationPartRequest.h:169
Aws::APIGateway::Model::UpdateDocumentationPartRequest::SetDocumentationPartId
void SetDocumentationPartId(const Aws::String &value)
Definition: UpdateDocumentationPartRequest.h:95
Aws::APIGateway::Model::UpdateDocumentationPartRequest::SetRestApiId
void SetRestApiId(const Aws::String &value)
Definition: UpdateDocumentationPartRequest.h:54
APIGateway_EXPORTS.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::APIGateway::Model::UpdateDocumentationPartRequest::GetPatchOperations
const Aws::Vector< PatchOperation > & GetPatchOperations() const
Definition: UpdateDocumentationPartRequest.h:127
Aws::APIGateway::Model::UpdateDocumentationPartRequest::DocumentationPartIdHasBeenSet
bool DocumentationPartIdHasBeenSet() const
Definition: UpdateDocumentationPartRequest.h:90
Aws::APIGateway::Model::UpdateDocumentationPartRequest::SetRestApiId
void SetRestApiId(Aws::String &&value)
Definition: UpdateDocumentationPartRequest.h:59
AWSVector.h
Aws::APIGateway::Model::UpdateDocumentationPartRequest::SetPatchOperations
void SetPatchOperations(const Aws::Vector< PatchOperation > &value)
Definition: UpdateDocumentationPartRequest.h:139
APIGatewayRequest.h
Aws::APIGateway::Model::UpdateDocumentationPartRequest::WithPatchOperations
UpdateDocumentationPartRequest & WithPatchOperations(Aws::Vector< PatchOperation > &&value)
Definition: UpdateDocumentationPartRequest.h:157
Aws::APIGateway::Model::UpdateDocumentationPartRequest::PatchOperationsHasBeenSet
bool PatchOperationsHasBeenSet() const
Definition: UpdateDocumentationPartRequest.h:133
Aws::APIGateway::Model::UpdateDocumentationPartRequest::SetDocumentationPartId
void SetDocumentationPartId(Aws::String &&value)
Definition: UpdateDocumentationPartRequest.h:100
Aws::APIGateway::Model::UpdateDocumentationPartRequest::RestApiIdHasBeenSet
bool RestApiIdHasBeenSet() const
Definition: UpdateDocumentationPartRequest.h:49
Aws::APIGateway::Model::UpdateDocumentationPartRequest::WithRestApiId
UpdateDocumentationPartRequest & WithRestApiId(Aws::String &&value)
Definition: UpdateDocumentationPartRequest.h:74
AWSString.h
Aws::APIGateway::Model::UpdateDocumentationPartRequest::WithDocumentationPartId
UpdateDocumentationPartRequest & WithDocumentationPartId(const char *value)
Definition: UpdateDocumentationPartRequest.h:120
Aws::APIGateway::Model::UpdateDocumentationPartRequest::WithPatchOperations
UpdateDocumentationPartRequest & WithPatchOperations(const Aws::Vector< PatchOperation > &value)
Definition: UpdateDocumentationPartRequest.h:151
Aws::APIGateway::Model::UpdateDocumentationPartRequest::AddPatchOperations
UpdateDocumentationPartRequest & AddPatchOperations(const PatchOperation &value)
Definition: UpdateDocumentationPartRequest.h:163
Aws
Definition: AccessManagementClient.h:15
Aws::APIGateway::Model::UpdateDocumentationPartRequest::SerializePayload
Aws::String SerializePayload() const override
PatchOperation.h
Aws::APIGateway::Model::UpdateDocumentationPartRequest::WithRestApiId
UpdateDocumentationPartRequest & WithRestApiId(const char *value)
Definition: UpdateDocumentationPartRequest.h:79
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::UpdateDocumentationPartRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateDocumentationPartRequest.h:36
Aws::APIGateway::Model::UpdateDocumentationPartRequest::SetRestApiId
void SetRestApiId(const char *value)
Definition: UpdateDocumentationPartRequest.h:64
Aws::APIGateway::Model::PatchOperation
Definition: PatchOperation.h:35
Aws::APIGateway::APIGatewayRequest
Definition: APIGatewayRequest.h:18
Aws::APIGateway::Model::UpdateDocumentationPartRequest::SetDocumentationPartId
void SetDocumentationPartId(const char *value)
Definition: UpdateDocumentationPartRequest.h:105
Aws::APIGateway::Model::UpdateDocumentationPartRequest::UpdateDocumentationPartRequest
UpdateDocumentationPartRequest()
Aws::APIGateway::Model::UpdateDocumentationPartRequest::WithDocumentationPartId
UpdateDocumentationPartRequest & WithDocumentationPartId(Aws::String &&value)
Definition: UpdateDocumentationPartRequest.h:115