AWS SDK for C++

AWS SDK for C++ Version 1.11.766

Loading...
Searching...
No Matches
UpdateVpcLinkRequest.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 UpdateVpcLinkRequest() = 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 "UpdateVpcLink"; }
34
35 AWS_APIGATEWAY_API Aws::String SerializePayload() const override;
36
38
42 inline const Aws::String& GetVpcLinkId() const { return m_vpcLinkId; }
43 inline bool VpcLinkIdHasBeenSet() const { return m_vpcLinkIdHasBeenSet; }
44 template <typename VpcLinkIdT = Aws::String>
45 void SetVpcLinkId(VpcLinkIdT&& value) {
46 m_vpcLinkIdHasBeenSet = true;
47 m_vpcLinkId = std::forward<VpcLinkIdT>(value);
48 }
49 template <typename VpcLinkIdT = Aws::String>
50 UpdateVpcLinkRequest& WithVpcLinkId(VpcLinkIdT&& value) {
51 SetVpcLinkId(std::forward<VpcLinkIdT>(value));
52 return *this;
53 }
55
57
62 inline const Aws::Vector<PatchOperation>& GetPatchOperations() const { return m_patchOperations; }
63 inline bool PatchOperationsHasBeenSet() const { return m_patchOperationsHasBeenSet; }
64 template <typename PatchOperationsT = Aws::Vector<PatchOperation>>
65 void SetPatchOperations(PatchOperationsT&& value) {
66 m_patchOperationsHasBeenSet = true;
67 m_patchOperations = std::forward<PatchOperationsT>(value);
68 }
69 template <typename PatchOperationsT = Aws::Vector<PatchOperation>>
70 UpdateVpcLinkRequest& WithPatchOperations(PatchOperationsT&& value) {
71 SetPatchOperations(std::forward<PatchOperationsT>(value));
72 return *this;
73 }
74 template <typename PatchOperationsT = PatchOperation>
75 UpdateVpcLinkRequest& AddPatchOperations(PatchOperationsT&& value) {
76 m_patchOperationsHasBeenSet = true;
77 m_patchOperations.emplace_back(std::forward<PatchOperationsT>(value));
78 return *this;
79 }
81 private:
82 Aws::String m_vpcLinkId;
83
84 Aws::Vector<PatchOperation> m_patchOperations;
85 bool m_vpcLinkIdHasBeenSet = false;
86 bool m_patchOperationsHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace APIGateway
91} // namespace Aws
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector