AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
VpcEndpoint.h
Go to the documentation of this file.
1
6#pragma once
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace Redshift
24{
25namespace Model
26{
27
35 {
36 public:
40
41 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
49 inline const Aws::String& GetVpcEndpointId() const{ return m_vpcEndpointId; }
50
55 inline bool VpcEndpointIdHasBeenSet() const { return m_vpcEndpointIdHasBeenSet; }
56
61 inline void SetVpcEndpointId(const Aws::String& value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId = value; }
62
67 inline void SetVpcEndpointId(Aws::String&& value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId = std::move(value); }
68
73 inline void SetVpcEndpointId(const char* value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId.assign(value); }
74
79 inline VpcEndpoint& WithVpcEndpointId(const Aws::String& value) { SetVpcEndpointId(value); return *this;}
80
85 inline VpcEndpoint& WithVpcEndpointId(Aws::String&& value) { SetVpcEndpointId(std::move(value)); return *this;}
86
91 inline VpcEndpoint& WithVpcEndpointId(const char* value) { SetVpcEndpointId(value); return *this;}
92
93
97 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
98
102 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
103
107 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
108
112 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
113
117 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
118
122 inline VpcEndpoint& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
123
127 inline VpcEndpoint& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
128
132 inline VpcEndpoint& WithVpcId(const char* value) { SetVpcId(value); return *this;}
133
134
139 inline const Aws::Vector<NetworkInterface>& GetNetworkInterfaces() const{ return m_networkInterfaces; }
140
145 inline bool NetworkInterfacesHasBeenSet() const { return m_networkInterfacesHasBeenSet; }
146
151 inline void SetNetworkInterfaces(const Aws::Vector<NetworkInterface>& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces = value; }
152
157 inline void SetNetworkInterfaces(Aws::Vector<NetworkInterface>&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces = std::move(value); }
158
164
169 inline VpcEndpoint& WithNetworkInterfaces(Aws::Vector<NetworkInterface>&& value) { SetNetworkInterfaces(std::move(value)); return *this;}
170
175 inline VpcEndpoint& AddNetworkInterfaces(const NetworkInterface& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces.push_back(value); return *this; }
176
181 inline VpcEndpoint& AddNetworkInterfaces(NetworkInterface&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces.push_back(std::move(value)); return *this; }
182
183 private:
184
185 Aws::String m_vpcEndpointId;
186 bool m_vpcEndpointIdHasBeenSet = false;
187
188 Aws::String m_vpcId;
189 bool m_vpcIdHasBeenSet = false;
190
191 Aws::Vector<NetworkInterface> m_networkInterfaces;
192 bool m_networkInterfacesHasBeenSet = false;
193 };
194
195} // namespace Model
196} // namespace Redshift
197} // namespace Aws
#define AWS_REDSHIFT_API
void SetVpcEndpointId(const char *value)
Definition: VpcEndpoint.h:73
void SetNetworkInterfaces(Aws::Vector< NetworkInterface > &&value)
Definition: VpcEndpoint.h:157
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
VpcEndpoint & WithVpcId(const Aws::String &value)
Definition: VpcEndpoint.h:122
const Aws::String & GetVpcId() const
Definition: VpcEndpoint.h:97
VpcEndpoint & WithVpcEndpointId(Aws::String &&value)
Definition: VpcEndpoint.h:85
AWS_REDSHIFT_API VpcEndpoint(const Aws::Utils::Xml::XmlNode &xmlNode)
VpcEndpoint & WithNetworkInterfaces(const Aws::Vector< NetworkInterface > &value)
Definition: VpcEndpoint.h:163
VpcEndpoint & WithVpcEndpointId(const char *value)
Definition: VpcEndpoint.h:91
VpcEndpoint & AddNetworkInterfaces(NetworkInterface &&value)
Definition: VpcEndpoint.h:181
const Aws::Vector< NetworkInterface > & GetNetworkInterfaces() const
Definition: VpcEndpoint.h:139
VpcEndpoint & AddNetworkInterfaces(const NetworkInterface &value)
Definition: VpcEndpoint.h:175
void SetNetworkInterfaces(const Aws::Vector< NetworkInterface > &value)
Definition: VpcEndpoint.h:151
void SetVpcId(const Aws::String &value)
Definition: VpcEndpoint.h:107
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetVpcEndpointId(Aws::String &&value)
Definition: VpcEndpoint.h:67
const Aws::String & GetVpcEndpointId() const
Definition: VpcEndpoint.h:49
void SetVpcId(Aws::String &&value)
Definition: VpcEndpoint.h:112
void SetVpcId(const char *value)
Definition: VpcEndpoint.h:117
VpcEndpoint & WithVpcId(const char *value)
Definition: VpcEndpoint.h:132
void SetVpcEndpointId(const Aws::String &value)
Definition: VpcEndpoint.h:61
AWS_REDSHIFT_API VpcEndpoint & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
VpcEndpoint & WithVpcEndpointId(const Aws::String &value)
Definition: VpcEndpoint.h:79
VpcEndpoint & WithNetworkInterfaces(Aws::Vector< NetworkInterface > &&value)
Definition: VpcEndpoint.h:169
VpcEndpoint & WithVpcId(Aws::String &&value)
Definition: VpcEndpoint.h:127
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