AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
VpcEndpointAssociation.h
1
6#pragma once
7#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/network-firewall/model/SubnetMapping.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/network-firewall/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace NetworkFirewall
25{
26namespace Model
27{
28
65 {
66 public:
67 AWS_NETWORKFIREWALL_API VpcEndpointAssociation() = default;
68 AWS_NETWORKFIREWALL_API VpcEndpointAssociation(Aws::Utils::Json::JsonView jsonValue);
69 AWS_NETWORKFIREWALL_API VpcEndpointAssociation& operator=(Aws::Utils::Json::JsonView jsonValue);
70 AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const;
71
72
74
77 inline const Aws::String& GetVpcEndpointAssociationId() const { return m_vpcEndpointAssociationId; }
78 inline bool VpcEndpointAssociationIdHasBeenSet() const { return m_vpcEndpointAssociationIdHasBeenSet; }
79 template<typename VpcEndpointAssociationIdT = Aws::String>
80 void SetVpcEndpointAssociationId(VpcEndpointAssociationIdT&& value) { m_vpcEndpointAssociationIdHasBeenSet = true; m_vpcEndpointAssociationId = std::forward<VpcEndpointAssociationIdT>(value); }
81 template<typename VpcEndpointAssociationIdT = Aws::String>
82 VpcEndpointAssociation& WithVpcEndpointAssociationId(VpcEndpointAssociationIdT&& value) { SetVpcEndpointAssociationId(std::forward<VpcEndpointAssociationIdT>(value)); return *this;}
84
86
89 inline const Aws::String& GetVpcEndpointAssociationArn() const { return m_vpcEndpointAssociationArn; }
90 inline bool VpcEndpointAssociationArnHasBeenSet() const { return m_vpcEndpointAssociationArnHasBeenSet; }
91 template<typename VpcEndpointAssociationArnT = Aws::String>
92 void SetVpcEndpointAssociationArn(VpcEndpointAssociationArnT&& value) { m_vpcEndpointAssociationArnHasBeenSet = true; m_vpcEndpointAssociationArn = std::forward<VpcEndpointAssociationArnT>(value); }
93 template<typename VpcEndpointAssociationArnT = Aws::String>
94 VpcEndpointAssociation& WithVpcEndpointAssociationArn(VpcEndpointAssociationArnT&& value) { SetVpcEndpointAssociationArn(std::forward<VpcEndpointAssociationArnT>(value)); return *this;}
96
98
101 inline const Aws::String& GetFirewallArn() const { return m_firewallArn; }
102 inline bool FirewallArnHasBeenSet() const { return m_firewallArnHasBeenSet; }
103 template<typename FirewallArnT = Aws::String>
104 void SetFirewallArn(FirewallArnT&& value) { m_firewallArnHasBeenSet = true; m_firewallArn = std::forward<FirewallArnT>(value); }
105 template<typename FirewallArnT = Aws::String>
106 VpcEndpointAssociation& WithFirewallArn(FirewallArnT&& value) { SetFirewallArn(std::forward<FirewallArnT>(value)); return *this;}
108
110
113 inline const Aws::String& GetVpcId() const { return m_vpcId; }
114 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
115 template<typename VpcIdT = Aws::String>
116 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
117 template<typename VpcIdT = Aws::String>
118 VpcEndpointAssociation& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
120
122
123 inline const SubnetMapping& GetSubnetMapping() const { return m_subnetMapping; }
124 inline bool SubnetMappingHasBeenSet() const { return m_subnetMappingHasBeenSet; }
125 template<typename SubnetMappingT = SubnetMapping>
126 void SetSubnetMapping(SubnetMappingT&& value) { m_subnetMappingHasBeenSet = true; m_subnetMapping = std::forward<SubnetMappingT>(value); }
127 template<typename SubnetMappingT = SubnetMapping>
128 VpcEndpointAssociation& WithSubnetMapping(SubnetMappingT&& value) { SetSubnetMapping(std::forward<SubnetMappingT>(value)); return *this;}
130
132
135 inline const Aws::String& GetDescription() const { return m_description; }
136 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
137 template<typename DescriptionT = Aws::String>
138 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
139 template<typename DescriptionT = Aws::String>
140 VpcEndpointAssociation& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
142
144
147 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
148 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
149 template<typename TagsT = Aws::Vector<Tag>>
150 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
151 template<typename TagsT = Aws::Vector<Tag>>
152 VpcEndpointAssociation& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
153 template<typename TagsT = Tag>
154 VpcEndpointAssociation& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
156 private:
157
158 Aws::String m_vpcEndpointAssociationId;
159 bool m_vpcEndpointAssociationIdHasBeenSet = false;
160
161 Aws::String m_vpcEndpointAssociationArn;
162 bool m_vpcEndpointAssociationArnHasBeenSet = false;
163
164 Aws::String m_firewallArn;
165 bool m_firewallArnHasBeenSet = false;
166
167 Aws::String m_vpcId;
168 bool m_vpcIdHasBeenSet = false;
169
170 SubnetMapping m_subnetMapping;
171 bool m_subnetMappingHasBeenSet = false;
172
173 Aws::String m_description;
174 bool m_descriptionHasBeenSet = false;
175
176 Aws::Vector<Tag> m_tags;
177 bool m_tagsHasBeenSet = false;
178 };
179
180} // namespace Model
181} // namespace NetworkFirewall
182} // namespace Aws
VpcEndpointAssociation & WithVpcEndpointAssociationArn(VpcEndpointAssociationArnT &&value)
void SetVpcEndpointAssociationArn(VpcEndpointAssociationArnT &&value)
VpcEndpointAssociation & WithFirewallArn(FirewallArnT &&value)
void SetVpcEndpointAssociationId(VpcEndpointAssociationIdT &&value)
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_NETWORKFIREWALL_API VpcEndpointAssociation()=default
VpcEndpointAssociation & WithVpcEndpointAssociationId(VpcEndpointAssociationIdT &&value)
AWS_NETWORKFIREWALL_API VpcEndpointAssociation(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKFIREWALL_API VpcEndpointAssociation & operator=(Aws::Utils::Json::JsonView jsonValue)
VpcEndpointAssociation & WithSubnetMapping(SubnetMappingT &&value)
VpcEndpointAssociation & WithDescription(DescriptionT &&value)
VpcEndpointAssociation & WithVpcId(VpcIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue