AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateVpcEndpointAssociationRequest.h
1
6#pragma once
7#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
8#include <aws/network-firewall/NetworkFirewallRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/network-firewall/model/SubnetMapping.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/network-firewall/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace NetworkFirewall
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_NETWORKFIREWALL_API CreateVpcEndpointAssociationRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateVpcEndpointAssociation"; }
34
35 AWS_NETWORKFIREWALL_API Aws::String SerializePayload() const override;
36
37 AWS_NETWORKFIREWALL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
44 inline const Aws::String& GetFirewallArn() const { return m_firewallArn; }
45 inline bool FirewallArnHasBeenSet() const { return m_firewallArnHasBeenSet; }
46 template<typename FirewallArnT = Aws::String>
47 void SetFirewallArn(FirewallArnT&& value) { m_firewallArnHasBeenSet = true; m_firewallArn = std::forward<FirewallArnT>(value); }
48 template<typename FirewallArnT = Aws::String>
49 CreateVpcEndpointAssociationRequest& WithFirewallArn(FirewallArnT&& value) { SetFirewallArn(std::forward<FirewallArnT>(value)); return *this;}
51
53
57 inline const Aws::String& GetVpcId() const { return m_vpcId; }
58 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
59 template<typename VpcIdT = Aws::String>
60 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
61 template<typename VpcIdT = Aws::String>
62 CreateVpcEndpointAssociationRequest& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
64
66
67 inline const SubnetMapping& GetSubnetMapping() const { return m_subnetMapping; }
68 inline bool SubnetMappingHasBeenSet() const { return m_subnetMappingHasBeenSet; }
69 template<typename SubnetMappingT = SubnetMapping>
70 void SetSubnetMapping(SubnetMappingT&& value) { m_subnetMappingHasBeenSet = true; m_subnetMapping = std::forward<SubnetMappingT>(value); }
71 template<typename SubnetMappingT = SubnetMapping>
72 CreateVpcEndpointAssociationRequest& WithSubnetMapping(SubnetMappingT&& value) { SetSubnetMapping(std::forward<SubnetMappingT>(value)); return *this;}
74
76
79 inline const Aws::String& GetDescription() const { return m_description; }
80 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
81 template<typename DescriptionT = Aws::String>
82 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
83 template<typename DescriptionT = Aws::String>
84 CreateVpcEndpointAssociationRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
86
88
91 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
92 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
93 template<typename TagsT = Aws::Vector<Tag>>
94 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
95 template<typename TagsT = Aws::Vector<Tag>>
96 CreateVpcEndpointAssociationRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
97 template<typename TagsT = Tag>
98 CreateVpcEndpointAssociationRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
100 private:
101
102 Aws::String m_firewallArn;
103 bool m_firewallArnHasBeenSet = false;
104
105 Aws::String m_vpcId;
106 bool m_vpcIdHasBeenSet = false;
107
108 SubnetMapping m_subnetMapping;
109 bool m_subnetMappingHasBeenSet = false;
110
111 Aws::String m_description;
112 bool m_descriptionHasBeenSet = false;
113
114 Aws::Vector<Tag> m_tags;
115 bool m_tagsHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace NetworkFirewall
120} // namespace Aws
AWS_NETWORKFIREWALL_API CreateVpcEndpointAssociationRequest()=default
CreateVpcEndpointAssociationRequest & WithDescription(DescriptionT &&value)
CreateVpcEndpointAssociationRequest & WithFirewallArn(FirewallArnT &&value)
CreateVpcEndpointAssociationRequest & WithSubnetMapping(SubnetMappingT &&value)
AWS_NETWORKFIREWALL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_NETWORKFIREWALL_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector