AWS SDK for C++  1.9.21
AWS SDK for C++
UpdateDocumentationVersionRequest.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 "UpdateDocumentationVersion"; }
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 UpdateDocumentationVersionRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
70 
74  inline UpdateDocumentationVersionRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(std::move(value)); return *this;}
75 
79  inline UpdateDocumentationVersionRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
80 
81 
86  inline const Aws::String& GetDocumentationVersion() const{ return m_documentationVersion; }
87 
92  inline bool DocumentationVersionHasBeenSet() const { return m_documentationVersionHasBeenSet; }
93 
98  inline void SetDocumentationVersion(const Aws::String& value) { m_documentationVersionHasBeenSet = true; m_documentationVersion = value; }
99 
104  inline void SetDocumentationVersion(Aws::String&& value) { m_documentationVersionHasBeenSet = true; m_documentationVersion = std::move(value); }
105 
110  inline void SetDocumentationVersion(const char* value) { m_documentationVersionHasBeenSet = true; m_documentationVersion.assign(value); }
111 
116  inline UpdateDocumentationVersionRequest& WithDocumentationVersion(const Aws::String& value) { SetDocumentationVersion(value); return *this;}
117 
122  inline UpdateDocumentationVersionRequest& WithDocumentationVersion(Aws::String&& value) { SetDocumentationVersion(std::move(value)); return *this;}
123 
128  inline UpdateDocumentationVersionRequest& WithDocumentationVersion(const char* value) { SetDocumentationVersion(value); return *this;}
129 
130 
135  inline const Aws::Vector<PatchOperation>& GetPatchOperations() const{ return m_patchOperations; }
136 
141  inline bool PatchOperationsHasBeenSet() const { return m_patchOperationsHasBeenSet; }
142 
147  inline void SetPatchOperations(const Aws::Vector<PatchOperation>& value) { m_patchOperationsHasBeenSet = true; m_patchOperations = value; }
148 
153  inline void SetPatchOperations(Aws::Vector<PatchOperation>&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations = std::move(value); }
154 
159  inline UpdateDocumentationVersionRequest& WithPatchOperations(const Aws::Vector<PatchOperation>& value) { SetPatchOperations(value); return *this;}
160 
165  inline UpdateDocumentationVersionRequest& WithPatchOperations(Aws::Vector<PatchOperation>&& value) { SetPatchOperations(std::move(value)); return *this;}
166 
171  inline UpdateDocumentationVersionRequest& AddPatchOperations(const PatchOperation& value) { m_patchOperationsHasBeenSet = true; m_patchOperations.push_back(value); return *this; }
172 
177  inline UpdateDocumentationVersionRequest& AddPatchOperations(PatchOperation&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations.push_back(std::move(value)); return *this; }
178 
179  private:
180 
181  Aws::String m_restApiId;
182  bool m_restApiIdHasBeenSet;
183 
184  Aws::String m_documentationVersion;
185  bool m_documentationVersionHasBeenSet;
186 
187  Aws::Vector<PatchOperation> m_patchOperations;
188  bool m_patchOperationsHasBeenSet;
189  };
190 
191 } // namespace Model
192 } // namespace APIGateway
193 } // namespace Aws
Aws::APIGateway::Model::UpdateDocumentationVersionRequest::WithDocumentationVersion
UpdateDocumentationVersionRequest & WithDocumentationVersion(const Aws::String &value)
Definition: UpdateDocumentationVersionRequest.h:116
Aws::APIGateway::Model::UpdateDocumentationVersionRequest::RestApiIdHasBeenSet
bool RestApiIdHasBeenSet() const
Definition: UpdateDocumentationVersionRequest.h:49
Aws::APIGateway::Model::UpdateDocumentationVersionRequest::SetPatchOperations
void SetPatchOperations(Aws::Vector< PatchOperation > &&value)
Definition: UpdateDocumentationVersionRequest.h:153
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::UpdateDocumentationVersionRequest::AddPatchOperations
UpdateDocumentationVersionRequest & AddPatchOperations(const PatchOperation &value)
Definition: UpdateDocumentationVersionRequest.h:171
Aws::APIGateway::Model::UpdateDocumentationVersionRequest::WithDocumentationVersion
UpdateDocumentationVersionRequest & WithDocumentationVersion(const char *value)
Definition: UpdateDocumentationVersionRequest.h:128
Aws::APIGateway::Model::UpdateDocumentationVersionRequest::UpdateDocumentationVersionRequest
UpdateDocumentationVersionRequest()
Aws::APIGateway::Model::UpdateDocumentationVersionRequest::WithPatchOperations
UpdateDocumentationVersionRequest & WithPatchOperations(const Aws::Vector< PatchOperation > &value)
Definition: UpdateDocumentationVersionRequest.h:159
APIGateway_EXPORTS.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::APIGateway::Model::UpdateDocumentationVersionRequest::SetRestApiId
void SetRestApiId(const Aws::String &value)
Definition: UpdateDocumentationVersionRequest.h:54
Aws::APIGateway::Model::UpdateDocumentationVersionRequest::SetPatchOperations
void SetPatchOperations(const Aws::Vector< PatchOperation > &value)
Definition: UpdateDocumentationVersionRequest.h:147
Aws::APIGateway::Model::UpdateDocumentationVersionRequest::WithDocumentationVersion
UpdateDocumentationVersionRequest & WithDocumentationVersion(Aws::String &&value)
Definition: UpdateDocumentationVersionRequest.h:122
AWSVector.h
Aws::APIGateway::Model::UpdateDocumentationVersionRequest
Definition: UpdateDocumentationVersionRequest.h:28
Aws::APIGateway::Model::UpdateDocumentationVersionRequest::GetRestApiId
const Aws::String & GetRestApiId() const
Definition: UpdateDocumentationVersionRequest.h:44
APIGatewayRequest.h
Aws::APIGateway::Model::UpdateDocumentationVersionRequest::SetRestApiId
void SetRestApiId(Aws::String &&value)
Definition: UpdateDocumentationVersionRequest.h:59
Aws::APIGateway::Model::UpdateDocumentationVersionRequest::WithRestApiId
UpdateDocumentationVersionRequest & WithRestApiId(const char *value)
Definition: UpdateDocumentationVersionRequest.h:79
Aws::APIGateway::Model::UpdateDocumentationVersionRequest::WithPatchOperations
UpdateDocumentationVersionRequest & WithPatchOperations(Aws::Vector< PatchOperation > &&value)
Definition: UpdateDocumentationVersionRequest.h:165
Aws::APIGateway::Model::UpdateDocumentationVersionRequest::PatchOperationsHasBeenSet
bool PatchOperationsHasBeenSet() const
Definition: UpdateDocumentationVersionRequest.h:141
Aws::APIGateway::Model::UpdateDocumentationVersionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateDocumentationVersionRequest.h:36
Aws::APIGateway::Model::UpdateDocumentationVersionRequest::WithRestApiId
UpdateDocumentationVersionRequest & WithRestApiId(Aws::String &&value)
Definition: UpdateDocumentationVersionRequest.h:74
AWSString.h
Aws::APIGateway::Model::UpdateDocumentationVersionRequest::SetDocumentationVersion
void SetDocumentationVersion(Aws::String &&value)
Definition: UpdateDocumentationVersionRequest.h:104
Aws::APIGateway::Model::UpdateDocumentationVersionRequest::GetDocumentationVersion
const Aws::String & GetDocumentationVersion() const
Definition: UpdateDocumentationVersionRequest.h:86
Aws::APIGateway::Model::UpdateDocumentationVersionRequest::AddPatchOperations
UpdateDocumentationVersionRequest & AddPatchOperations(PatchOperation &&value)
Definition: UpdateDocumentationVersionRequest.h:177
Aws::APIGateway::Model::UpdateDocumentationVersionRequest::DocumentationVersionHasBeenSet
bool DocumentationVersionHasBeenSet() const
Definition: UpdateDocumentationVersionRequest.h:92
Aws
Definition: AccessManagementClient.h:15
PatchOperation.h
Aws::APIGateway::Model::UpdateDocumentationVersionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::UpdateDocumentationVersionRequest::SetDocumentationVersion
void SetDocumentationVersion(const Aws::String &value)
Definition: UpdateDocumentationVersionRequest.h:98
Aws::APIGateway::Model::UpdateDocumentationVersionRequest::SetRestApiId
void SetRestApiId(const char *value)
Definition: UpdateDocumentationVersionRequest.h:64
Aws::APIGateway::Model::PatchOperation
Definition: PatchOperation.h:35
Aws::APIGateway::APIGatewayRequest
Definition: APIGatewayRequest.h:18
Aws::APIGateway::Model::UpdateDocumentationVersionRequest::GetPatchOperations
const Aws::Vector< PatchOperation > & GetPatchOperations() const
Definition: UpdateDocumentationVersionRequest.h:135
Aws::APIGateway::Model::UpdateDocumentationVersionRequest::WithRestApiId
UpdateDocumentationVersionRequest & WithRestApiId(const Aws::String &value)
Definition: UpdateDocumentationVersionRequest.h:69
Aws::APIGateway::Model::UpdateDocumentationVersionRequest::SetDocumentationVersion
void SetDocumentationVersion(const char *value)
Definition: UpdateDocumentationVersionRequest.h:110