AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateDeploymentRequest.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/apigateway/APIGatewayRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/apigateway/model/PatchOperation.h>
12#include <utility>
13
14namespace Aws
15{
16namespace APIGateway
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_APIGATEWAY_API UpdateDeploymentRequest();
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_APIGATEWAY_API Aws::String SerializePayload() const override;
39
40
42
45 inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
46 inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
47 inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
48 inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::move(value); }
49 inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
50 inline UpdateDeploymentRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
51 inline UpdateDeploymentRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(std::move(value)); return *this;}
52 inline UpdateDeploymentRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
54
56
60 inline const Aws::String& GetDeploymentId() const{ return m_deploymentId; }
61 inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
62 inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; }
63 inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::move(value); }
64 inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); }
65 inline UpdateDeploymentRequest& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;}
66 inline UpdateDeploymentRequest& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;}
67 inline UpdateDeploymentRequest& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;}
69
71
76 inline const Aws::Vector<PatchOperation>& GetPatchOperations() const{ return m_patchOperations; }
77 inline bool PatchOperationsHasBeenSet() const { return m_patchOperationsHasBeenSet; }
78 inline void SetPatchOperations(const Aws::Vector<PatchOperation>& value) { m_patchOperationsHasBeenSet = true; m_patchOperations = value; }
79 inline void SetPatchOperations(Aws::Vector<PatchOperation>&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations = std::move(value); }
82 inline UpdateDeploymentRequest& AddPatchOperations(const PatchOperation& value) { m_patchOperationsHasBeenSet = true; m_patchOperations.push_back(value); return *this; }
83 inline UpdateDeploymentRequest& AddPatchOperations(PatchOperation&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations.push_back(std::move(value)); return *this; }
85 private:
86
87 Aws::String m_restApiId;
88 bool m_restApiIdHasBeenSet = false;
89
90 Aws::String m_deploymentId;
91 bool m_deploymentIdHasBeenSet = false;
92
93 Aws::Vector<PatchOperation> m_patchOperations;
94 bool m_patchOperationsHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace APIGateway
99} // namespace Aws
void SetPatchOperations(Aws::Vector< PatchOperation > &&value)
UpdateDeploymentRequest & WithRestApiId(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
UpdateDeploymentRequest & WithRestApiId(const char *value)
void SetPatchOperations(const Aws::Vector< PatchOperation > &value)
UpdateDeploymentRequest & AddPatchOperations(const PatchOperation &value)
UpdateDeploymentRequest & WithDeploymentId(const char *value)
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
UpdateDeploymentRequest & WithRestApiId(const Aws::String &value)
UpdateDeploymentRequest & WithDeploymentId(const Aws::String &value)
UpdateDeploymentRequest & WithPatchOperations(const Aws::Vector< PatchOperation > &value)
const Aws::Vector< PatchOperation > & GetPatchOperations() const
UpdateDeploymentRequest & AddPatchOperations(PatchOperation &&value)
UpdateDeploymentRequest & WithPatchOperations(Aws::Vector< PatchOperation > &&value)
UpdateDeploymentRequest & WithDeploymentId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector