AWS SDK for C++

AWS SDK for C++ Version 1.11.768

Loading...
Searching...
No Matches
UpdateDeploymentRequest.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 UpdateDeploymentRequest() = 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 "UpdateDeployment"; }
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
60 inline const Aws::String& GetDeploymentId() const { return m_deploymentId; }
61 inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
62 template <typename DeploymentIdT = Aws::String>
63 void SetDeploymentId(DeploymentIdT&& value) {
64 m_deploymentIdHasBeenSet = true;
65 m_deploymentId = std::forward<DeploymentIdT>(value);
66 }
67 template <typename DeploymentIdT = Aws::String>
68 UpdateDeploymentRequest& WithDeploymentId(DeploymentIdT&& value) {
69 SetDeploymentId(std::forward<DeploymentIdT>(value));
70 return *this;
71 }
73
75
80 inline const Aws::Vector<PatchOperation>& GetPatchOperations() const { return m_patchOperations; }
81 inline bool PatchOperationsHasBeenSet() const { return m_patchOperationsHasBeenSet; }
82 template <typename PatchOperationsT = Aws::Vector<PatchOperation>>
83 void SetPatchOperations(PatchOperationsT&& value) {
84 m_patchOperationsHasBeenSet = true;
85 m_patchOperations = std::forward<PatchOperationsT>(value);
86 }
87 template <typename PatchOperationsT = Aws::Vector<PatchOperation>>
88 UpdateDeploymentRequest& WithPatchOperations(PatchOperationsT&& value) {
89 SetPatchOperations(std::forward<PatchOperationsT>(value));
90 return *this;
91 }
92 template <typename PatchOperationsT = PatchOperation>
93 UpdateDeploymentRequest& AddPatchOperations(PatchOperationsT&& value) {
94 m_patchOperationsHasBeenSet = true;
95 m_patchOperations.emplace_back(std::forward<PatchOperationsT>(value));
96 return *this;
97 }
99 private:
100 Aws::String m_restApiId;
101
102 Aws::String m_deploymentId;
103
104 Aws::Vector<PatchOperation> m_patchOperations;
105 bool m_restApiIdHasBeenSet = false;
106 bool m_deploymentIdHasBeenSet = false;
107 bool m_patchOperationsHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace APIGateway
112} // namespace Aws
UpdateDeploymentRequest & WithPatchOperations(PatchOperationsT &&value)
virtual const char * GetServiceRequestName() const override
UpdateDeploymentRequest & WithDeploymentId(DeploymentIdT &&value)
AWS_APIGATEWAY_API UpdateDeploymentRequest()=default
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
const Aws::Vector< PatchOperation > & GetPatchOperations() const
UpdateDeploymentRequest & AddPatchOperations(PatchOperationsT &&value)
UpdateDeploymentRequest & WithRestApiId(RestApiIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector