AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
VpcEndpointAssociation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/DnsEntry.h>
12#include <aws/ec2/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Xml {
19class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2 {
23namespace Model {
24
32 public:
33 AWS_EC2_API VpcEndpointAssociation() = default;
36
37 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
38 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
44 inline const Aws::String& GetId() const { return m_id; }
45 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
46 template <typename IdT = Aws::String>
47 void SetId(IdT&& value) {
48 m_idHasBeenSet = true;
49 m_id = std::forward<IdT>(value);
50 }
51 template <typename IdT = Aws::String>
53 SetId(std::forward<IdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetVpcEndpointId() const { return m_vpcEndpointId; }
63 inline bool VpcEndpointIdHasBeenSet() const { return m_vpcEndpointIdHasBeenSet; }
64 template <typename VpcEndpointIdT = Aws::String>
65 void SetVpcEndpointId(VpcEndpointIdT&& value) {
66 m_vpcEndpointIdHasBeenSet = true;
67 m_vpcEndpointId = std::forward<VpcEndpointIdT>(value);
68 }
69 template <typename VpcEndpointIdT = Aws::String>
70 VpcEndpointAssociation& WithVpcEndpointId(VpcEndpointIdT&& value) {
71 SetVpcEndpointId(std::forward<VpcEndpointIdT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetServiceNetworkArn() const { return m_serviceNetworkArn; }
81 inline bool ServiceNetworkArnHasBeenSet() const { return m_serviceNetworkArnHasBeenSet; }
82 template <typename ServiceNetworkArnT = Aws::String>
83 void SetServiceNetworkArn(ServiceNetworkArnT&& value) {
84 m_serviceNetworkArnHasBeenSet = true;
85 m_serviceNetworkArn = std::forward<ServiceNetworkArnT>(value);
86 }
87 template <typename ServiceNetworkArnT = Aws::String>
88 VpcEndpointAssociation& WithServiceNetworkArn(ServiceNetworkArnT&& value) {
89 SetServiceNetworkArn(std::forward<ServiceNetworkArnT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetServiceNetworkName() const { return m_serviceNetworkName; }
99 inline bool ServiceNetworkNameHasBeenSet() const { return m_serviceNetworkNameHasBeenSet; }
100 template <typename ServiceNetworkNameT = Aws::String>
101 void SetServiceNetworkName(ServiceNetworkNameT&& value) {
102 m_serviceNetworkNameHasBeenSet = true;
103 m_serviceNetworkName = std::forward<ServiceNetworkNameT>(value);
104 }
105 template <typename ServiceNetworkNameT = Aws::String>
106 VpcEndpointAssociation& WithServiceNetworkName(ServiceNetworkNameT&& value) {
107 SetServiceNetworkName(std::forward<ServiceNetworkNameT>(value));
108 return *this;
109 }
111
113
118 inline const Aws::String& GetAssociatedResourceAccessibility() const { return m_associatedResourceAccessibility; }
119 inline bool AssociatedResourceAccessibilityHasBeenSet() const { return m_associatedResourceAccessibilityHasBeenSet; }
120 template <typename AssociatedResourceAccessibilityT = Aws::String>
121 void SetAssociatedResourceAccessibility(AssociatedResourceAccessibilityT&& value) {
122 m_associatedResourceAccessibilityHasBeenSet = true;
123 m_associatedResourceAccessibility = std::forward<AssociatedResourceAccessibilityT>(value);
124 }
125 template <typename AssociatedResourceAccessibilityT = Aws::String>
126 VpcEndpointAssociation& WithAssociatedResourceAccessibility(AssociatedResourceAccessibilityT&& value) {
127 SetAssociatedResourceAccessibility(std::forward<AssociatedResourceAccessibilityT>(value));
128 return *this;
129 }
131
133
136 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
137 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
138 template <typename FailureReasonT = Aws::String>
139 void SetFailureReason(FailureReasonT&& value) {
140 m_failureReasonHasBeenSet = true;
141 m_failureReason = std::forward<FailureReasonT>(value);
142 }
143 template <typename FailureReasonT = Aws::String>
144 VpcEndpointAssociation& WithFailureReason(FailureReasonT&& value) {
145 SetFailureReason(std::forward<FailureReasonT>(value));
146 return *this;
147 }
149
151
154 inline const Aws::String& GetFailureCode() const { return m_failureCode; }
155 inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; }
156 template <typename FailureCodeT = Aws::String>
157 void SetFailureCode(FailureCodeT&& value) {
158 m_failureCodeHasBeenSet = true;
159 m_failureCode = std::forward<FailureCodeT>(value);
160 }
161 template <typename FailureCodeT = Aws::String>
163 SetFailureCode(std::forward<FailureCodeT>(value));
164 return *this;
165 }
167
169
172 inline const DnsEntry& GetDnsEntry() const { return m_dnsEntry; }
173 inline bool DnsEntryHasBeenSet() const { return m_dnsEntryHasBeenSet; }
174 template <typename DnsEntryT = DnsEntry>
175 void SetDnsEntry(DnsEntryT&& value) {
176 m_dnsEntryHasBeenSet = true;
177 m_dnsEntry = std::forward<DnsEntryT>(value);
178 }
179 template <typename DnsEntryT = DnsEntry>
181 SetDnsEntry(std::forward<DnsEntryT>(value));
182 return *this;
183 }
185
187
190 inline const DnsEntry& GetPrivateDnsEntry() const { return m_privateDnsEntry; }
191 inline bool PrivateDnsEntryHasBeenSet() const { return m_privateDnsEntryHasBeenSet; }
192 template <typename PrivateDnsEntryT = DnsEntry>
193 void SetPrivateDnsEntry(PrivateDnsEntryT&& value) {
194 m_privateDnsEntryHasBeenSet = true;
195 m_privateDnsEntry = std::forward<PrivateDnsEntryT>(value);
196 }
197 template <typename PrivateDnsEntryT = DnsEntry>
198 VpcEndpointAssociation& WithPrivateDnsEntry(PrivateDnsEntryT&& value) {
199 SetPrivateDnsEntry(std::forward<PrivateDnsEntryT>(value));
200 return *this;
201 }
203
205
208 inline const Aws::String& GetAssociatedResourceArn() const { return m_associatedResourceArn; }
209 inline bool AssociatedResourceArnHasBeenSet() const { return m_associatedResourceArnHasBeenSet; }
210 template <typename AssociatedResourceArnT = Aws::String>
211 void SetAssociatedResourceArn(AssociatedResourceArnT&& value) {
212 m_associatedResourceArnHasBeenSet = true;
213 m_associatedResourceArn = std::forward<AssociatedResourceArnT>(value);
214 }
215 template <typename AssociatedResourceArnT = Aws::String>
216 VpcEndpointAssociation& WithAssociatedResourceArn(AssociatedResourceArnT&& value) {
217 SetAssociatedResourceArn(std::forward<AssociatedResourceArnT>(value));
218 return *this;
219 }
221
223
226 inline const Aws::String& GetResourceConfigurationGroupArn() const { return m_resourceConfigurationGroupArn; }
227 inline bool ResourceConfigurationGroupArnHasBeenSet() const { return m_resourceConfigurationGroupArnHasBeenSet; }
228 template <typename ResourceConfigurationGroupArnT = Aws::String>
229 void SetResourceConfigurationGroupArn(ResourceConfigurationGroupArnT&& value) {
230 m_resourceConfigurationGroupArnHasBeenSet = true;
231 m_resourceConfigurationGroupArn = std::forward<ResourceConfigurationGroupArnT>(value);
232 }
233 template <typename ResourceConfigurationGroupArnT = Aws::String>
234 VpcEndpointAssociation& WithResourceConfigurationGroupArn(ResourceConfigurationGroupArnT&& value) {
235 SetResourceConfigurationGroupArn(std::forward<ResourceConfigurationGroupArnT>(value));
236 return *this;
237 }
239
241
244 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
245 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
246 template <typename TagsT = Aws::Vector<Tag>>
247 void SetTags(TagsT&& value) {
248 m_tagsHasBeenSet = true;
249 m_tags = std::forward<TagsT>(value);
250 }
251 template <typename TagsT = Aws::Vector<Tag>>
253 SetTags(std::forward<TagsT>(value));
254 return *this;
255 }
256 template <typename TagsT = Tag>
258 m_tagsHasBeenSet = true;
259 m_tags.emplace_back(std::forward<TagsT>(value));
260 return *this;
261 }
263 private:
264 Aws::String m_id;
265
266 Aws::String m_vpcEndpointId;
267
268 Aws::String m_serviceNetworkArn;
269
270 Aws::String m_serviceNetworkName;
271
272 Aws::String m_associatedResourceAccessibility;
273
274 Aws::String m_failureReason;
275
276 Aws::String m_failureCode;
277
278 DnsEntry m_dnsEntry;
279
280 DnsEntry m_privateDnsEntry;
281
282 Aws::String m_associatedResourceArn;
283
284 Aws::String m_resourceConfigurationGroupArn;
285
286 Aws::Vector<Tag> m_tags;
287 bool m_idHasBeenSet = false;
288 bool m_vpcEndpointIdHasBeenSet = false;
289 bool m_serviceNetworkArnHasBeenSet = false;
290 bool m_serviceNetworkNameHasBeenSet = false;
291 bool m_associatedResourceAccessibilityHasBeenSet = false;
292 bool m_failureReasonHasBeenSet = false;
293 bool m_failureCodeHasBeenSet = false;
294 bool m_dnsEntryHasBeenSet = false;
295 bool m_privateDnsEntryHasBeenSet = false;
296 bool m_associatedResourceArnHasBeenSet = false;
297 bool m_resourceConfigurationGroupArnHasBeenSet = false;
298 bool m_tagsHasBeenSet = false;
299};
300
301} // namespace Model
302} // namespace EC2
303} // namespace Aws
Definition DnsEntry.h:27
VpcEndpointAssociation & WithResourceConfigurationGroupArn(ResourceConfigurationGroupArnT &&value)
AWS_EC2_API VpcEndpointAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetAssociatedResourceArn(AssociatedResourceArnT &&value)
const Aws::String & GetServiceNetworkName() const
const Aws::Vector< Tag > & GetTags() const
const Aws::String & GetAssociatedResourceArn() const
const Aws::String & GetServiceNetworkArn() const
VpcEndpointAssociation & AddTags(TagsT &&value)
VpcEndpointAssociation & WithPrivateDnsEntry(PrivateDnsEntryT &&value)
VpcEndpointAssociation & WithAssociatedResourceArn(AssociatedResourceArnT &&value)
VpcEndpointAssociation & WithFailureCode(FailureCodeT &&value)
VpcEndpointAssociation & WithAssociatedResourceAccessibility(AssociatedResourceAccessibilityT &&value)
void SetResourceConfigurationGroupArn(ResourceConfigurationGroupArnT &&value)
VpcEndpointAssociation & WithFailureReason(FailureReasonT &&value)
VpcEndpointAssociation & WithTags(TagsT &&value)
VpcEndpointAssociation & WithDnsEntry(DnsEntryT &&value)
void SetServiceNetworkArn(ServiceNetworkArnT &&value)
void SetServiceNetworkName(ServiceNetworkNameT &&value)
void SetPrivateDnsEntry(PrivateDnsEntryT &&value)
const Aws::String & GetResourceConfigurationGroupArn() const
VpcEndpointAssociation & WithId(IdT &&value)
VpcEndpointAssociation & WithVpcEndpointId(VpcEndpointIdT &&value)
void SetAssociatedResourceAccessibility(AssociatedResourceAccessibilityT &&value)
VpcEndpointAssociation & WithServiceNetworkArn(ServiceNetworkArnT &&value)
AWS_EC2_API VpcEndpointAssociation()=default
AWS_EC2_API VpcEndpointAssociation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetAssociatedResourceAccessibility() const
void SetVpcEndpointId(VpcEndpointIdT &&value)
VpcEndpointAssociation & WithServiceNetworkName(ServiceNetworkNameT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream