AWS SDK for C++  1.9.18
AWS SDK for C++
UpdateDeploymentRequest.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 "UpdateDeployment"; }
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 UpdateDeploymentRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
70 
74  inline UpdateDeploymentRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(std::move(value)); return *this;}
75 
79  inline UpdateDeploymentRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
80 
81 
86  inline const Aws::String& GetDeploymentId() const{ return m_deploymentId; }
87 
92  inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
93 
98  inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; }
99 
104  inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::move(value); }
105 
110  inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); }
111 
116  inline UpdateDeploymentRequest& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;}
117 
122  inline UpdateDeploymentRequest& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;}
123 
128  inline UpdateDeploymentRequest& WithDeploymentId(const char* value) { SetDeploymentId(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 UpdateDeploymentRequest& WithPatchOperations(const Aws::Vector<PatchOperation>& value) { SetPatchOperations(value); return *this;}
160 
165  inline UpdateDeploymentRequest& WithPatchOperations(Aws::Vector<PatchOperation>&& value) { SetPatchOperations(std::move(value)); return *this;}
166 
171  inline UpdateDeploymentRequest& AddPatchOperations(const PatchOperation& value) { m_patchOperationsHasBeenSet = true; m_patchOperations.push_back(value); return *this; }
172 
177  inline UpdateDeploymentRequest& 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_deploymentId;
185  bool m_deploymentIdHasBeenSet;
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::UpdateDeploymentRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateDeploymentRequest.h:36
Aws::APIGateway::Model::UpdateDeploymentRequest::SetRestApiId
void SetRestApiId(Aws::String &&value)
Definition: UpdateDeploymentRequest.h:59
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::UpdateDeploymentRequest::AddPatchOperations
UpdateDeploymentRequest & AddPatchOperations(PatchOperation &&value)
Definition: UpdateDeploymentRequest.h:177
Aws::APIGateway::Model::UpdateDeploymentRequest::WithPatchOperations
UpdateDeploymentRequest & WithPatchOperations(Aws::Vector< PatchOperation > &&value)
Definition: UpdateDeploymentRequest.h:165
Aws::APIGateway::Model::UpdateDeploymentRequest::WithRestApiId
UpdateDeploymentRequest & WithRestApiId(Aws::String &&value)
Definition: UpdateDeploymentRequest.h:74
Aws::APIGateway::Model::UpdateDeploymentRequest::SetRestApiId
void SetRestApiId(const Aws::String &value)
Definition: UpdateDeploymentRequest.h:54
Aws::APIGateway::Model::UpdateDeploymentRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::APIGateway::Model::UpdateDeploymentRequest::RestApiIdHasBeenSet
bool RestApiIdHasBeenSet() const
Definition: UpdateDeploymentRequest.h:49
Aws::APIGateway::Model::UpdateDeploymentRequest::UpdateDeploymentRequest
UpdateDeploymentRequest()
Aws::APIGateway::Model::UpdateDeploymentRequest::WithDeploymentId
UpdateDeploymentRequest & WithDeploymentId(const Aws::String &value)
Definition: UpdateDeploymentRequest.h:116
Aws::APIGateway::Model::UpdateDeploymentRequest::SetRestApiId
void SetRestApiId(const char *value)
Definition: UpdateDeploymentRequest.h:64
APIGateway_EXPORTS.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::APIGateway::Model::UpdateDeploymentRequest::WithDeploymentId
UpdateDeploymentRequest & WithDeploymentId(const char *value)
Definition: UpdateDeploymentRequest.h:128
AWSVector.h
Aws::APIGateway::Model::UpdateDeploymentRequest::SetDeploymentId
void SetDeploymentId(const Aws::String &value)
Definition: UpdateDeploymentRequest.h:98
APIGatewayRequest.h
Aws::APIGateway::Model::UpdateDeploymentRequest::SetDeploymentId
void SetDeploymentId(const char *value)
Definition: UpdateDeploymentRequest.h:110
Aws::APIGateway::Model::UpdateDeploymentRequest
Definition: UpdateDeploymentRequest.h:28
Aws::APIGateway::Model::UpdateDeploymentRequest::WithPatchOperations
UpdateDeploymentRequest & WithPatchOperations(const Aws::Vector< PatchOperation > &value)
Definition: UpdateDeploymentRequest.h:159
Aws::APIGateway::Model::UpdateDeploymentRequest::WithRestApiId
UpdateDeploymentRequest & WithRestApiId(const Aws::String &value)
Definition: UpdateDeploymentRequest.h:69
Aws::APIGateway::Model::UpdateDeploymentRequest::SetPatchOperations
void SetPatchOperations(Aws::Vector< PatchOperation > &&value)
Definition: UpdateDeploymentRequest.h:153
Aws::APIGateway::Model::UpdateDeploymentRequest::GetDeploymentId
const Aws::String & GetDeploymentId() const
Definition: UpdateDeploymentRequest.h:86
AWSString.h
Aws::APIGateway::Model::UpdateDeploymentRequest::PatchOperationsHasBeenSet
bool PatchOperationsHasBeenSet() const
Definition: UpdateDeploymentRequest.h:141
Aws::APIGateway::Model::UpdateDeploymentRequest::AddPatchOperations
UpdateDeploymentRequest & AddPatchOperations(const PatchOperation &value)
Definition: UpdateDeploymentRequest.h:171
Aws::APIGateway::Model::UpdateDeploymentRequest::SetDeploymentId
void SetDeploymentId(Aws::String &&value)
Definition: UpdateDeploymentRequest.h:104
Aws
Definition: AccessManagementClient.h:15
PatchOperation.h
Aws::APIGateway::Model::UpdateDeploymentRequest::GetRestApiId
const Aws::String & GetRestApiId() const
Definition: UpdateDeploymentRequest.h:44
Aws::APIGateway::Model::UpdateDeploymentRequest::WithRestApiId
UpdateDeploymentRequest & WithRestApiId(const char *value)
Definition: UpdateDeploymentRequest.h:79
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::PatchOperation
Definition: PatchOperation.h:35
Aws::APIGateway::APIGatewayRequest
Definition: APIGatewayRequest.h:18
Aws::APIGateway::Model::UpdateDeploymentRequest::SetPatchOperations
void SetPatchOperations(const Aws::Vector< PatchOperation > &value)
Definition: UpdateDeploymentRequest.h:147
Aws::APIGateway::Model::UpdateDeploymentRequest::WithDeploymentId
UpdateDeploymentRequest & WithDeploymentId(Aws::String &&value)
Definition: UpdateDeploymentRequest.h:122
Aws::APIGateway::Model::UpdateDeploymentRequest::GetPatchOperations
const Aws::Vector< PatchOperation > & GetPatchOperations() const
Definition: UpdateDeploymentRequest.h:135
Aws::APIGateway::Model::UpdateDeploymentRequest::DeploymentIdHasBeenSet
bool DeploymentIdHasBeenSet() const
Definition: UpdateDeploymentRequest.h:92