AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename CoreNetworkIdT = Aws::String>
46 void SetCoreNetworkId(CoreNetworkIdT&& value) { m_coreNetworkIdHasBeenSet = true; m_coreNetworkId = std::forward<CoreNetworkIdT>(value); }
47 template<typename CoreNetworkIdT = Aws::String>
48 CreateVpcAttachmentRequest& WithCoreNetworkId(CoreNetworkIdT&& value) { SetCoreNetworkId(std::forward<CoreNetworkIdT>(value)); return *this;}
50
52
55 inline const Aws::String& GetVpcArn() const { return m_vpcArn; }
56 inline bool VpcArnHasBeenSet() const { return m_vpcArnHasBeenSet; }
57 template<typename VpcArnT = Aws::String>
58 void SetVpcArn(VpcArnT&& value) { m_vpcArnHasBeenSet = true; m_vpcArn = std::forward<VpcArnT>(value); }
59 template<typename VpcArnT = Aws::String>
60 CreateVpcAttachmentRequest& WithVpcArn(VpcArnT&& value) { SetVpcArn(std::forward<VpcArnT>(value)); return *this;}
62
64
67 inline const Aws::Vector<Aws::String>& GetSubnetArns() const { return m_subnetArns; }
68 inline bool SubnetArnsHasBeenSet() const { return m_subnetArnsHasBeenSet; }
69 template<typename SubnetArnsT = Aws::Vector<Aws::String>>
70 void SetSubnetArns(SubnetArnsT&& value) { m_subnetArnsHasBeenSet = true; m_subnetArns = std::forward<SubnetArnsT>(value); }
71 template<typename SubnetArnsT = Aws::Vector<Aws::String>>
72 CreateVpcAttachmentRequest& WithSubnetArns(SubnetArnsT&& value) { SetSubnetArns(std::forward<SubnetArnsT>(value)); return *this;}
73 template<typename SubnetArnsT = Aws::String>
74 CreateVpcAttachmentRequest& AddSubnetArns(SubnetArnsT&& value) { m_subnetArnsHasBeenSet = true; m_subnetArns.emplace_back(std::forward<SubnetArnsT>(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 CreateVpcAttachmentRequest& WithOptions(OptionsT&& value) { SetOptions(std::forward<OptionsT>(value)); return *this;}
88
90
93 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
94 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
95 template<typename TagsT = Aws::Vector<Tag>>
96 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
97 template<typename TagsT = Aws::Vector<Tag>>
98 CreateVpcAttachmentRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
99 template<typename TagsT = Tag>
100 CreateVpcAttachmentRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
102
104
107 inline const Aws::String& GetClientToken() const { return m_clientToken; }
108 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
109 template<typename ClientTokenT = Aws::String>
110 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
111 template<typename ClientTokenT = Aws::String>
112 CreateVpcAttachmentRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
114 private:
115
116 Aws::String m_coreNetworkId;
117 bool m_coreNetworkIdHasBeenSet = false;
118
119 Aws::String m_vpcArn;
120 bool m_vpcArnHasBeenSet = false;
121
122 Aws::Vector<Aws::String> m_subnetArns;
123 bool m_subnetArnsHasBeenSet = false;
124
125 VpcOptions m_options;
126 bool m_optionsHasBeenSet = false;
127
128 Aws::Vector<Tag> m_tags;
129 bool m_tagsHasBeenSet = false;
130
132 bool m_clientTokenHasBeenSet = true;
133 };
134
135} // namespace Model
136} // namespace NetworkManager
137} // namespace Aws
CreateVpcAttachmentRequest & WithClientToken(ClientTokenT &&value)
CreateVpcAttachmentRequest & AddSubnetArns(SubnetArnsT &&value)
const Aws::Vector< Aws::String > & GetSubnetArns() const
AWS_NETWORKMANAGER_API CreateVpcAttachmentRequest()=default
CreateVpcAttachmentRequest & WithCoreNetworkId(CoreNetworkIdT &&value)
CreateVpcAttachmentRequest & WithSubnetArns(SubnetArnsT &&value)
AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override
CreateVpcAttachmentRequest & WithOptions(OptionsT &&value)
CreateVpcAttachmentRequest & WithVpcArn(VpcArnT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector