AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateVpcAttachmentRequest.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 <aws/networkmanager/model/Tag.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace NetworkManager
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_NETWORKMANAGER_API CreateVpcAttachmentRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateVpcAttachment"; }
35
36 AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetCoreNetworkId() const{ return m_coreNetworkId; }
44 inline bool CoreNetworkIdHasBeenSet() const { return m_coreNetworkIdHasBeenSet; }
45 inline void SetCoreNetworkId(const Aws::String& value) { m_coreNetworkIdHasBeenSet = true; m_coreNetworkId = value; }
46 inline void SetCoreNetworkId(Aws::String&& value) { m_coreNetworkIdHasBeenSet = true; m_coreNetworkId = std::move(value); }
47 inline void SetCoreNetworkId(const char* value) { m_coreNetworkIdHasBeenSet = true; m_coreNetworkId.assign(value); }
48 inline CreateVpcAttachmentRequest& WithCoreNetworkId(const Aws::String& value) { SetCoreNetworkId(value); return *this;}
49 inline CreateVpcAttachmentRequest& WithCoreNetworkId(Aws::String&& value) { SetCoreNetworkId(std::move(value)); return *this;}
50 inline CreateVpcAttachmentRequest& WithCoreNetworkId(const char* value) { SetCoreNetworkId(value); return *this;}
52
54
57 inline const Aws::String& GetVpcArn() const{ return m_vpcArn; }
58 inline bool VpcArnHasBeenSet() const { return m_vpcArnHasBeenSet; }
59 inline void SetVpcArn(const Aws::String& value) { m_vpcArnHasBeenSet = true; m_vpcArn = value; }
60 inline void SetVpcArn(Aws::String&& value) { m_vpcArnHasBeenSet = true; m_vpcArn = std::move(value); }
61 inline void SetVpcArn(const char* value) { m_vpcArnHasBeenSet = true; m_vpcArn.assign(value); }
62 inline CreateVpcAttachmentRequest& WithVpcArn(const Aws::String& value) { SetVpcArn(value); return *this;}
63 inline CreateVpcAttachmentRequest& WithVpcArn(Aws::String&& value) { SetVpcArn(std::move(value)); return *this;}
64 inline CreateVpcAttachmentRequest& WithVpcArn(const char* value) { SetVpcArn(value); return *this;}
66
68
71 inline const Aws::Vector<Aws::String>& GetSubnetArns() const{ return m_subnetArns; }
72 inline bool SubnetArnsHasBeenSet() const { return m_subnetArnsHasBeenSet; }
73 inline void SetSubnetArns(const Aws::Vector<Aws::String>& value) { m_subnetArnsHasBeenSet = true; m_subnetArns = value; }
74 inline void SetSubnetArns(Aws::Vector<Aws::String>&& value) { m_subnetArnsHasBeenSet = true; m_subnetArns = std::move(value); }
76 inline CreateVpcAttachmentRequest& WithSubnetArns(Aws::Vector<Aws::String>&& value) { SetSubnetArns(std::move(value)); return *this;}
77 inline CreateVpcAttachmentRequest& AddSubnetArns(const Aws::String& value) { m_subnetArnsHasBeenSet = true; m_subnetArns.push_back(value); return *this; }
78 inline CreateVpcAttachmentRequest& AddSubnetArns(Aws::String&& value) { m_subnetArnsHasBeenSet = true; m_subnetArns.push_back(std::move(value)); return *this; }
79 inline CreateVpcAttachmentRequest& AddSubnetArns(const char* value) { m_subnetArnsHasBeenSet = true; m_subnetArns.push_back(value); return *this; }
81
83
86 inline const VpcOptions& GetOptions() const{ return m_options; }
87 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
88 inline void SetOptions(const VpcOptions& value) { m_optionsHasBeenSet = true; m_options = value; }
89 inline void SetOptions(VpcOptions&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); }
90 inline CreateVpcAttachmentRequest& WithOptions(const VpcOptions& value) { SetOptions(value); return *this;}
91 inline CreateVpcAttachmentRequest& WithOptions(VpcOptions&& value) { SetOptions(std::move(value)); return *this;}
93
95
98 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
99 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
100 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
101 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
102 inline CreateVpcAttachmentRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
103 inline CreateVpcAttachmentRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
104 inline CreateVpcAttachmentRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
105 inline CreateVpcAttachmentRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
107
109
112 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
113 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
114 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
115 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
116 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
117 inline CreateVpcAttachmentRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
118 inline CreateVpcAttachmentRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
119 inline CreateVpcAttachmentRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
121 private:
122
123 Aws::String m_coreNetworkId;
124 bool m_coreNetworkIdHasBeenSet = false;
125
126 Aws::String m_vpcArn;
127 bool m_vpcArnHasBeenSet = false;
128
129 Aws::Vector<Aws::String> m_subnetArns;
130 bool m_subnetArnsHasBeenSet = false;
131
132 VpcOptions m_options;
133 bool m_optionsHasBeenSet = false;
134
135 Aws::Vector<Tag> m_tags;
136 bool m_tagsHasBeenSet = false;
137
138 Aws::String m_clientToken;
139 bool m_clientTokenHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace NetworkManager
144} // namespace Aws
void SetSubnetArns(const Aws::Vector< Aws::String > &value)
CreateVpcAttachmentRequest & WithSubnetArns(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetSubnetArns() const
CreateVpcAttachmentRequest & WithOptions(const VpcOptions &value)
CreateVpcAttachmentRequest & WithOptions(VpcOptions &&value)
CreateVpcAttachmentRequest & WithClientToken(const char *value)
CreateVpcAttachmentRequest & AddTags(const Tag &value)
CreateVpcAttachmentRequest & WithTags(Aws::Vector< Tag > &&value)
CreateVpcAttachmentRequest & WithVpcArn(const Aws::String &value)
CreateVpcAttachmentRequest & WithSubnetArns(const Aws::Vector< Aws::String > &value)
CreateVpcAttachmentRequest & WithVpcArn(const char *value)
CreateVpcAttachmentRequest & WithClientToken(const Aws::String &value)
CreateVpcAttachmentRequest & WithCoreNetworkId(const Aws::String &value)
CreateVpcAttachmentRequest & WithVpcArn(Aws::String &&value)
AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override
CreateVpcAttachmentRequest & AddSubnetArns(const Aws::String &value)
CreateVpcAttachmentRequest & WithCoreNetworkId(const char *value)
CreateVpcAttachmentRequest & AddSubnetArns(const char *value)
CreateVpcAttachmentRequest & WithCoreNetworkId(Aws::String &&value)
CreateVpcAttachmentRequest & WithClientToken(Aws::String &&value)
CreateVpcAttachmentRequest & WithTags(const Aws::Vector< Tag > &value)
CreateVpcAttachmentRequest & AddSubnetArns(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector