AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
UpdateVpcAttachmentRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/networkmanager/NetworkManagerRequest.h>
10#include <aws/networkmanager/NetworkManager_EXPORTS.h>
11#include <aws/networkmanager/model/VpcOptions.h>
12
13#include <utility>
14
15namespace Aws {
16namespace NetworkManager {
17namespace Model {
18
22 public:
23 AWS_NETWORKMANAGER_API UpdateVpcAttachmentRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateVpcAttachment"; }
30
31 AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetAttachmentId() const { return m_attachmentId; }
38 inline bool AttachmentIdHasBeenSet() const { return m_attachmentIdHasBeenSet; }
39 template <typename AttachmentIdT = Aws::String>
40 void SetAttachmentId(AttachmentIdT&& value) {
41 m_attachmentIdHasBeenSet = true;
42 m_attachmentId = std::forward<AttachmentIdT>(value);
43 }
44 template <typename AttachmentIdT = Aws::String>
46 SetAttachmentId(std::forward<AttachmentIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::Vector<Aws::String>& GetAddSubnetArns() const { return m_addSubnetArns; }
56 inline bool AddSubnetArnsHasBeenSet() const { return m_addSubnetArnsHasBeenSet; }
57 template <typename AddSubnetArnsT = Aws::Vector<Aws::String>>
58 void SetAddSubnetArns(AddSubnetArnsT&& value) {
59 m_addSubnetArnsHasBeenSet = true;
60 m_addSubnetArns = std::forward<AddSubnetArnsT>(value);
61 }
62 template <typename AddSubnetArnsT = Aws::Vector<Aws::String>>
64 SetAddSubnetArns(std::forward<AddSubnetArnsT>(value));
65 return *this;
66 }
67 template <typename AddSubnetArnsT = Aws::String>
69 m_addSubnetArnsHasBeenSet = true;
70 m_addSubnetArns.emplace_back(std::forward<AddSubnetArnsT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::Vector<Aws::String>& GetRemoveSubnetArns() const { return m_removeSubnetArns; }
80 inline bool RemoveSubnetArnsHasBeenSet() const { return m_removeSubnetArnsHasBeenSet; }
81 template <typename RemoveSubnetArnsT = Aws::Vector<Aws::String>>
82 void SetRemoveSubnetArns(RemoveSubnetArnsT&& value) {
83 m_removeSubnetArnsHasBeenSet = true;
84 m_removeSubnetArns = std::forward<RemoveSubnetArnsT>(value);
85 }
86 template <typename RemoveSubnetArnsT = Aws::Vector<Aws::String>>
88 SetRemoveSubnetArns(std::forward<RemoveSubnetArnsT>(value));
89 return *this;
90 }
91 template <typename RemoveSubnetArnsT = Aws::String>
92 UpdateVpcAttachmentRequest& AddRemoveSubnetArns(RemoveSubnetArnsT&& value) {
93 m_removeSubnetArnsHasBeenSet = true;
94 m_removeSubnetArns.emplace_back(std::forward<RemoveSubnetArnsT>(value));
95 return *this;
96 }
98
100
103 inline const VpcOptions& GetOptions() const { return m_options; }
104 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
105 template <typename OptionsT = VpcOptions>
106 void SetOptions(OptionsT&& value) {
107 m_optionsHasBeenSet = true;
108 m_options = std::forward<OptionsT>(value);
109 }
110 template <typename OptionsT = VpcOptions>
112 SetOptions(std::forward<OptionsT>(value));
113 return *this;
114 }
116 private:
117 Aws::String m_attachmentId;
118
119 Aws::Vector<Aws::String> m_addSubnetArns;
120
121 Aws::Vector<Aws::String> m_removeSubnetArns;
122
123 VpcOptions m_options;
124 bool m_attachmentIdHasBeenSet = false;
125 bool m_addSubnetArnsHasBeenSet = false;
126 bool m_removeSubnetArnsHasBeenSet = false;
127 bool m_optionsHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace NetworkManager
132} // namespace Aws
AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override
UpdateVpcAttachmentRequest & WithAttachmentId(AttachmentIdT &&value)
UpdateVpcAttachmentRequest & WithOptions(OptionsT &&value)
const Aws::Vector< Aws::String > & GetRemoveSubnetArns() const
UpdateVpcAttachmentRequest & AddAddSubnetArns(AddSubnetArnsT &&value)
UpdateVpcAttachmentRequest & AddRemoveSubnetArns(RemoveSubnetArnsT &&value)
UpdateVpcAttachmentRequest & WithRemoveSubnetArns(RemoveSubnetArnsT &&value)
const Aws::Vector< Aws::String > & GetAddSubnetArns() const
AWS_NETWORKMANAGER_API UpdateVpcAttachmentRequest()=default
UpdateVpcAttachmentRequest & WithAddSubnetArns(AddSubnetArnsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector