AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
VpcEndpointAssociation.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/DnsEntry.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ec2/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_EC2_API VpcEndpointAssociation() = default;
41
42 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
50 inline const Aws::String& GetId() const { return m_id; }
51 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
52 template<typename IdT = Aws::String>
53 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
54 template<typename IdT = Aws::String>
55 VpcEndpointAssociation& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId = std::forward<VpcEndpointIdT>(value); }
66 template<typename VpcEndpointIdT = Aws::String>
67 VpcEndpointAssociation& WithVpcEndpointId(VpcEndpointIdT&& value) { SetVpcEndpointId(std::forward<VpcEndpointIdT>(value)); return *this;}
69
71
74 inline const Aws::String& GetServiceNetworkArn() const { return m_serviceNetworkArn; }
75 inline bool ServiceNetworkArnHasBeenSet() const { return m_serviceNetworkArnHasBeenSet; }
76 template<typename ServiceNetworkArnT = Aws::String>
77 void SetServiceNetworkArn(ServiceNetworkArnT&& value) { m_serviceNetworkArnHasBeenSet = true; m_serviceNetworkArn = std::forward<ServiceNetworkArnT>(value); }
78 template<typename ServiceNetworkArnT = Aws::String>
79 VpcEndpointAssociation& WithServiceNetworkArn(ServiceNetworkArnT&& value) { SetServiceNetworkArn(std::forward<ServiceNetworkArnT>(value)); return *this;}
81
83
86 inline const Aws::String& GetServiceNetworkName() const { return m_serviceNetworkName; }
87 inline bool ServiceNetworkNameHasBeenSet() const { return m_serviceNetworkNameHasBeenSet; }
88 template<typename ServiceNetworkNameT = Aws::String>
89 void SetServiceNetworkName(ServiceNetworkNameT&& value) { m_serviceNetworkNameHasBeenSet = true; m_serviceNetworkName = std::forward<ServiceNetworkNameT>(value); }
90 template<typename ServiceNetworkNameT = Aws::String>
91 VpcEndpointAssociation& WithServiceNetworkName(ServiceNetworkNameT&& value) { SetServiceNetworkName(std::forward<ServiceNetworkNameT>(value)); return *this;}
93
95
100 inline const Aws::String& GetAssociatedResourceAccessibility() const { return m_associatedResourceAccessibility; }
101 inline bool AssociatedResourceAccessibilityHasBeenSet() const { return m_associatedResourceAccessibilityHasBeenSet; }
102 template<typename AssociatedResourceAccessibilityT = Aws::String>
103 void SetAssociatedResourceAccessibility(AssociatedResourceAccessibilityT&& value) { m_associatedResourceAccessibilityHasBeenSet = true; m_associatedResourceAccessibility = std::forward<AssociatedResourceAccessibilityT>(value); }
104 template<typename AssociatedResourceAccessibilityT = Aws::String>
105 VpcEndpointAssociation& WithAssociatedResourceAccessibility(AssociatedResourceAccessibilityT&& value) { SetAssociatedResourceAccessibility(std::forward<AssociatedResourceAccessibilityT>(value)); return *this;}
107
109
112 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
113 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
114 template<typename FailureReasonT = Aws::String>
115 void SetFailureReason(FailureReasonT&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::forward<FailureReasonT>(value); }
116 template<typename FailureReasonT = Aws::String>
117 VpcEndpointAssociation& WithFailureReason(FailureReasonT&& value) { SetFailureReason(std::forward<FailureReasonT>(value)); return *this;}
119
121
124 inline const Aws::String& GetFailureCode() const { return m_failureCode; }
125 inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; }
126 template<typename FailureCodeT = Aws::String>
127 void SetFailureCode(FailureCodeT&& value) { m_failureCodeHasBeenSet = true; m_failureCode = std::forward<FailureCodeT>(value); }
128 template<typename FailureCodeT = Aws::String>
129 VpcEndpointAssociation& WithFailureCode(FailureCodeT&& value) { SetFailureCode(std::forward<FailureCodeT>(value)); return *this;}
131
133
136 inline const DnsEntry& GetDnsEntry() const { return m_dnsEntry; }
137 inline bool DnsEntryHasBeenSet() const { return m_dnsEntryHasBeenSet; }
138 template<typename DnsEntryT = DnsEntry>
139 void SetDnsEntry(DnsEntryT&& value) { m_dnsEntryHasBeenSet = true; m_dnsEntry = std::forward<DnsEntryT>(value); }
140 template<typename DnsEntryT = DnsEntry>
141 VpcEndpointAssociation& WithDnsEntry(DnsEntryT&& value) { SetDnsEntry(std::forward<DnsEntryT>(value)); return *this;}
143
145
148 inline const DnsEntry& GetPrivateDnsEntry() const { return m_privateDnsEntry; }
149 inline bool PrivateDnsEntryHasBeenSet() const { return m_privateDnsEntryHasBeenSet; }
150 template<typename PrivateDnsEntryT = DnsEntry>
151 void SetPrivateDnsEntry(PrivateDnsEntryT&& value) { m_privateDnsEntryHasBeenSet = true; m_privateDnsEntry = std::forward<PrivateDnsEntryT>(value); }
152 template<typename PrivateDnsEntryT = DnsEntry>
153 VpcEndpointAssociation& WithPrivateDnsEntry(PrivateDnsEntryT&& value) { SetPrivateDnsEntry(std::forward<PrivateDnsEntryT>(value)); return *this;}
155
157
160 inline const Aws::String& GetAssociatedResourceArn() const { return m_associatedResourceArn; }
161 inline bool AssociatedResourceArnHasBeenSet() const { return m_associatedResourceArnHasBeenSet; }
162 template<typename AssociatedResourceArnT = Aws::String>
163 void SetAssociatedResourceArn(AssociatedResourceArnT&& value) { m_associatedResourceArnHasBeenSet = true; m_associatedResourceArn = std::forward<AssociatedResourceArnT>(value); }
164 template<typename AssociatedResourceArnT = Aws::String>
165 VpcEndpointAssociation& WithAssociatedResourceArn(AssociatedResourceArnT&& value) { SetAssociatedResourceArn(std::forward<AssociatedResourceArnT>(value)); return *this;}
167
169
172 inline const Aws::String& GetResourceConfigurationGroupArn() const { return m_resourceConfigurationGroupArn; }
173 inline bool ResourceConfigurationGroupArnHasBeenSet() const { return m_resourceConfigurationGroupArnHasBeenSet; }
174 template<typename ResourceConfigurationGroupArnT = Aws::String>
175 void SetResourceConfigurationGroupArn(ResourceConfigurationGroupArnT&& value) { m_resourceConfigurationGroupArnHasBeenSet = true; m_resourceConfigurationGroupArn = std::forward<ResourceConfigurationGroupArnT>(value); }
176 template<typename ResourceConfigurationGroupArnT = Aws::String>
177 VpcEndpointAssociation& WithResourceConfigurationGroupArn(ResourceConfigurationGroupArnT&& value) { SetResourceConfigurationGroupArn(std::forward<ResourceConfigurationGroupArnT>(value)); return *this;}
179
181
184 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
185 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
186 template<typename TagsT = Aws::Vector<Tag>>
187 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
188 template<typename TagsT = Aws::Vector<Tag>>
189 VpcEndpointAssociation& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
190 template<typename TagsT = Tag>
191 VpcEndpointAssociation& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
193 private:
194
195 Aws::String m_id;
196 bool m_idHasBeenSet = false;
197
198 Aws::String m_vpcEndpointId;
199 bool m_vpcEndpointIdHasBeenSet = false;
200
201 Aws::String m_serviceNetworkArn;
202 bool m_serviceNetworkArnHasBeenSet = false;
203
204 Aws::String m_serviceNetworkName;
205 bool m_serviceNetworkNameHasBeenSet = false;
206
207 Aws::String m_associatedResourceAccessibility;
208 bool m_associatedResourceAccessibilityHasBeenSet = false;
209
210 Aws::String m_failureReason;
211 bool m_failureReasonHasBeenSet = false;
212
213 Aws::String m_failureCode;
214 bool m_failureCodeHasBeenSet = false;
215
216 DnsEntry m_dnsEntry;
217 bool m_dnsEntryHasBeenSet = false;
218
219 DnsEntry m_privateDnsEntry;
220 bool m_privateDnsEntryHasBeenSet = false;
221
222 Aws::String m_associatedResourceArn;
223 bool m_associatedResourceArnHasBeenSet = false;
224
225 Aws::String m_resourceConfigurationGroupArn;
226 bool m_resourceConfigurationGroupArnHasBeenSet = false;
227
228 Aws::Vector<Tag> m_tags;
229 bool m_tagsHasBeenSet = false;
230 };
231
232} // namespace Model
233} // namespace EC2
234} // namespace Aws
Definition DnsEntry.h:32
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