AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UpdateVpcAttachmentRequest.h
1
6#pragma once
7#include <aws/networkmanager/NetworkManager_EXPORTS.h>
8#include <aws/networkmanager/NetworkManagerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/networkmanager/model/VpcOptions.h>
12#include <utility>
13
14namespace Aws
15{
16namespace NetworkManager
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_NETWORKMANAGER_API UpdateVpcAttachmentRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateVpcAttachment"; }
33
34 AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetAttachmentId() const { return m_attachmentId; }
42 inline bool AttachmentIdHasBeenSet() const { return m_attachmentIdHasBeenSet; }
43 template<typename AttachmentIdT = Aws::String>
44 void SetAttachmentId(AttachmentIdT&& value) { m_attachmentIdHasBeenSet = true; m_attachmentId = std::forward<AttachmentIdT>(value); }
45 template<typename AttachmentIdT = Aws::String>
46 UpdateVpcAttachmentRequest& WithAttachmentId(AttachmentIdT&& value) { SetAttachmentId(std::forward<AttachmentIdT>(value)); return *this;}
48
50
53 inline const Aws::Vector<Aws::String>& GetAddSubnetArns() const { return m_addSubnetArns; }
54 inline bool AddSubnetArnsHasBeenSet() const { return m_addSubnetArnsHasBeenSet; }
55 template<typename AddSubnetArnsT = Aws::Vector<Aws::String>>
56 void SetAddSubnetArns(AddSubnetArnsT&& value) { m_addSubnetArnsHasBeenSet = true; m_addSubnetArns = std::forward<AddSubnetArnsT>(value); }
57 template<typename AddSubnetArnsT = Aws::Vector<Aws::String>>
58 UpdateVpcAttachmentRequest& WithAddSubnetArns(AddSubnetArnsT&& value) { SetAddSubnetArns(std::forward<AddSubnetArnsT>(value)); return *this;}
59 template<typename AddSubnetArnsT = Aws::String>
60 UpdateVpcAttachmentRequest& AddAddSubnetArns(AddSubnetArnsT&& value) { m_addSubnetArnsHasBeenSet = true; m_addSubnetArns.emplace_back(std::forward<AddSubnetArnsT>(value)); return *this; }
62
64
67 inline const Aws::Vector<Aws::String>& GetRemoveSubnetArns() const { return m_removeSubnetArns; }
68 inline bool RemoveSubnetArnsHasBeenSet() const { return m_removeSubnetArnsHasBeenSet; }
69 template<typename RemoveSubnetArnsT = Aws::Vector<Aws::String>>
70 void SetRemoveSubnetArns(RemoveSubnetArnsT&& value) { m_removeSubnetArnsHasBeenSet = true; m_removeSubnetArns = std::forward<RemoveSubnetArnsT>(value); }
71 template<typename RemoveSubnetArnsT = Aws::Vector<Aws::String>>
72 UpdateVpcAttachmentRequest& WithRemoveSubnetArns(RemoveSubnetArnsT&& value) { SetRemoveSubnetArns(std::forward<RemoveSubnetArnsT>(value)); return *this;}
73 template<typename RemoveSubnetArnsT = Aws::String>
74 UpdateVpcAttachmentRequest& AddRemoveSubnetArns(RemoveSubnetArnsT&& value) { m_removeSubnetArnsHasBeenSet = true; m_removeSubnetArns.emplace_back(std::forward<RemoveSubnetArnsT>(value)); return *this; }
76
78
81 inline const VpcOptions& GetOptions() const { return m_options; }
82 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
83 template<typename OptionsT = VpcOptions>
84 void SetOptions(OptionsT&& value) { m_optionsHasBeenSet = true; m_options = std::forward<OptionsT>(value); }
85 template<typename OptionsT = VpcOptions>
86 UpdateVpcAttachmentRequest& WithOptions(OptionsT&& value) { SetOptions(std::forward<OptionsT>(value)); return *this;}
88 private:
89
90 Aws::String m_attachmentId;
91 bool m_attachmentIdHasBeenSet = false;
92
93 Aws::Vector<Aws::String> m_addSubnetArns;
94 bool m_addSubnetArnsHasBeenSet = false;
95
96 Aws::Vector<Aws::String> m_removeSubnetArns;
97 bool m_removeSubnetArnsHasBeenSet = false;
98
99 VpcOptions m_options;
100 bool m_optionsHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace NetworkManager
105} // 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