AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAttachmentId(const Aws::String& value) { m_attachmentIdHasBeenSet = true; m_attachmentId = value; }
44 inline void SetAttachmentId(Aws::String&& value) { m_attachmentIdHasBeenSet = true; m_attachmentId = std::move(value); }
45 inline void SetAttachmentId(const char* value) { m_attachmentIdHasBeenSet = true; m_attachmentId.assign(value); }
46 inline UpdateVpcAttachmentRequest& WithAttachmentId(const Aws::String& value) { SetAttachmentId(value); return *this;}
47 inline UpdateVpcAttachmentRequest& WithAttachmentId(Aws::String&& value) { SetAttachmentId(std::move(value)); return *this;}
48 inline UpdateVpcAttachmentRequest& WithAttachmentId(const char* value) { SetAttachmentId(value); return *this;}
50
52
55 inline const Aws::Vector<Aws::String>& GetAddSubnetArns() const{ return m_addSubnetArns; }
56 inline bool AddSubnetArnsHasBeenSet() const { return m_addSubnetArnsHasBeenSet; }
57 inline void SetAddSubnetArns(const Aws::Vector<Aws::String>& value) { m_addSubnetArnsHasBeenSet = true; m_addSubnetArns = value; }
58 inline void SetAddSubnetArns(Aws::Vector<Aws::String>&& value) { m_addSubnetArnsHasBeenSet = true; m_addSubnetArns = std::move(value); }
61 inline UpdateVpcAttachmentRequest& AddAddSubnetArns(const Aws::String& value) { m_addSubnetArnsHasBeenSet = true; m_addSubnetArns.push_back(value); return *this; }
62 inline UpdateVpcAttachmentRequest& AddAddSubnetArns(Aws::String&& value) { m_addSubnetArnsHasBeenSet = true; m_addSubnetArns.push_back(std::move(value)); return *this; }
63 inline UpdateVpcAttachmentRequest& AddAddSubnetArns(const char* value) { m_addSubnetArnsHasBeenSet = true; m_addSubnetArns.push_back(value); return *this; }
65
67
70 inline const Aws::Vector<Aws::String>& GetRemoveSubnetArns() const{ return m_removeSubnetArns; }
71 inline bool RemoveSubnetArnsHasBeenSet() const { return m_removeSubnetArnsHasBeenSet; }
72 inline void SetRemoveSubnetArns(const Aws::Vector<Aws::String>& value) { m_removeSubnetArnsHasBeenSet = true; m_removeSubnetArns = value; }
73 inline void SetRemoveSubnetArns(Aws::Vector<Aws::String>&& value) { m_removeSubnetArnsHasBeenSet = true; m_removeSubnetArns = std::move(value); }
76 inline UpdateVpcAttachmentRequest& AddRemoveSubnetArns(const Aws::String& value) { m_removeSubnetArnsHasBeenSet = true; m_removeSubnetArns.push_back(value); return *this; }
77 inline UpdateVpcAttachmentRequest& AddRemoveSubnetArns(Aws::String&& value) { m_removeSubnetArnsHasBeenSet = true; m_removeSubnetArns.push_back(std::move(value)); return *this; }
78 inline UpdateVpcAttachmentRequest& AddRemoveSubnetArns(const char* value) { m_removeSubnetArnsHasBeenSet = true; m_removeSubnetArns.push_back(value); return *this; }
80
82
85 inline const VpcOptions& GetOptions() const{ return m_options; }
86 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
87 inline void SetOptions(const VpcOptions& value) { m_optionsHasBeenSet = true; m_options = value; }
88 inline void SetOptions(VpcOptions&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); }
89 inline UpdateVpcAttachmentRequest& WithOptions(const VpcOptions& value) { SetOptions(value); return *this;}
90 inline UpdateVpcAttachmentRequest& WithOptions(VpcOptions&& value) { SetOptions(std::move(value)); return *this;}
92 private:
93
94 Aws::String m_attachmentId;
95 bool m_attachmentIdHasBeenSet = false;
96
97 Aws::Vector<Aws::String> m_addSubnetArns;
98 bool m_addSubnetArnsHasBeenSet = false;
99
100 Aws::Vector<Aws::String> m_removeSubnetArns;
101 bool m_removeSubnetArnsHasBeenSet = false;
102
103 VpcOptions m_options;
104 bool m_optionsHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace NetworkManager
109} // namespace Aws
AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override
UpdateVpcAttachmentRequest & WithAttachmentId(Aws::String &&value)
void SetRemoveSubnetArns(Aws::Vector< Aws::String > &&value)
UpdateVpcAttachmentRequest & AddAddSubnetArns(Aws::String &&value)
UpdateVpcAttachmentRequest & WithAttachmentId(const char *value)
UpdateVpcAttachmentRequest & WithRemoveSubnetArns(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetRemoveSubnetArns() const
void SetAddSubnetArns(const Aws::Vector< Aws::String > &value)
UpdateVpcAttachmentRequest & AddRemoveSubnetArns(const Aws::String &value)
UpdateVpcAttachmentRequest & AddAddSubnetArns(const Aws::String &value)
UpdateVpcAttachmentRequest & WithOptions(const VpcOptions &value)
UpdateVpcAttachmentRequest & WithAttachmentId(const Aws::String &value)
UpdateVpcAttachmentRequest & WithOptions(VpcOptions &&value)
UpdateVpcAttachmentRequest & AddRemoveSubnetArns(Aws::String &&value)
UpdateVpcAttachmentRequest & WithAddSubnetArns(const Aws::Vector< Aws::String > &value)
void SetRemoveSubnetArns(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetAddSubnetArns() const
UpdateVpcAttachmentRequest & WithAddSubnetArns(Aws::Vector< Aws::String > &&value)
UpdateVpcAttachmentRequest & AddRemoveSubnetArns(const char *value)
UpdateVpcAttachmentRequest & WithRemoveSubnetArns(const Aws::Vector< Aws::String > &value)
UpdateVpcAttachmentRequest & AddAddSubnetArns(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector