AWS SDK for C++  1.9.110
AWS SDK for C++
VpcEndpoint.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace Redshift
24 {
25 namespace Model
26 {
27 
35  {
36  public:
40 
41  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42  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 
163  inline VpcEndpoint& WithNetworkInterfaces(const Aws::Vector<NetworkInterface>& value) { SetNetworkInterfaces(value); return *this;}
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;
187 
188  Aws::String m_vpcId;
189  bool m_vpcIdHasBeenSet;
190 
191  Aws::Vector<NetworkInterface> m_networkInterfaces;
192  bool m_networkInterfacesHasBeenSet;
193  };
194 
195 } // namespace Model
196 } // namespace Redshift
197 } // namespace Aws
Aws::Redshift::Model::VpcEndpoint::operator=
VpcEndpoint & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::VpcEndpoint::GetNetworkInterfaces
const Aws::Vector< NetworkInterface > & GetNetworkInterfaces() const
Definition: VpcEndpoint.h:139
Aws::Redshift::Model::VpcEndpoint::SetVpcEndpointId
void SetVpcEndpointId(Aws::String &&value)
Definition: VpcEndpoint.h:67
Aws::Redshift::Model::VpcEndpoint::SetNetworkInterfaces
void SetNetworkInterfaces(const Aws::Vector< NetworkInterface > &value)
Definition: VpcEndpoint.h:151
Aws::Redshift::Model::VpcEndpoint::WithVpcId
VpcEndpoint & WithVpcId(Aws::String &&value)
Definition: VpcEndpoint.h:127
Aws::Redshift::Model::VpcEndpoint::SetVpcId
void SetVpcId(const Aws::String &value)
Definition: VpcEndpoint.h:107
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
Aws::Redshift::Model::VpcEndpoint::WithVpcEndpointId
VpcEndpoint & WithVpcEndpointId(const Aws::String &value)
Definition: VpcEndpoint.h:79
AWSVector.h
Aws::Redshift::Model::VpcEndpoint::WithVpcId
VpcEndpoint & WithVpcId(const Aws::String &value)
Definition: VpcEndpoint.h:122
NetworkInterface.h
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Redshift::Model::VpcEndpoint::AddNetworkInterfaces
VpcEndpoint & AddNetworkInterfaces(NetworkInterface &&value)
Definition: VpcEndpoint.h:181
Aws::Redshift::Model::VpcEndpoint
Definition: VpcEndpoint.h:35
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::Redshift::Model::VpcEndpoint::SetVpcId
void SetVpcId(Aws::String &&value)
Definition: VpcEndpoint.h:112
Aws::Redshift::Model::VpcEndpoint::WithNetworkInterfaces
VpcEndpoint & WithNetworkInterfaces(const Aws::Vector< NetworkInterface > &value)
Definition: VpcEndpoint.h:163
Aws::Redshift::Model::VpcEndpoint::VpcEndpoint
VpcEndpoint()
Aws::Redshift::Model::VpcEndpoint::VpcEndpoint
VpcEndpoint(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::VpcEndpoint::SetVpcEndpointId
void SetVpcEndpointId(const char *value)
Definition: VpcEndpoint.h:73
Aws::Redshift::Model::VpcEndpoint::NetworkInterfacesHasBeenSet
bool NetworkInterfacesHasBeenSet() const
Definition: VpcEndpoint.h:145
AWSString.h
Aws::Redshift::Model::VpcEndpoint::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::Redshift::Model::VpcEndpoint::SetVpcEndpointId
void SetVpcEndpointId(const Aws::String &value)
Definition: VpcEndpoint.h:61
Aws::Redshift::Model::VpcEndpoint::SetVpcId
void SetVpcId(const char *value)
Definition: VpcEndpoint.h:117
Aws::Redshift::Model::VpcEndpoint::WithVpcEndpointId
VpcEndpoint & WithVpcEndpointId(Aws::String &&value)
Definition: VpcEndpoint.h:85
Aws::Redshift::Model::VpcEndpoint::AddNetworkInterfaces
VpcEndpoint & AddNetworkInterfaces(const NetworkInterface &value)
Definition: VpcEndpoint.h:175
Aws::Redshift::Model::VpcEndpoint::WithVpcEndpointId
VpcEndpoint & WithVpcEndpointId(const char *value)
Definition: VpcEndpoint.h:91
Aws::Redshift::Model::VpcEndpoint::GetVpcId
const Aws::String & GetVpcId() const
Definition: VpcEndpoint.h:97
Aws::Redshift::Model::VpcEndpoint::WithVpcId
VpcEndpoint & WithVpcId(const char *value)
Definition: VpcEndpoint.h:132
Aws::Redshift::Model::VpcEndpoint::VpcEndpointIdHasBeenSet
bool VpcEndpointIdHasBeenSet() const
Definition: VpcEndpoint.h:55
Aws
Definition: AccessManagementClient.h:15
Aws::Redshift::Model::VpcEndpoint::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Redshift_EXPORTS.h
Aws::Redshift::Model::VpcEndpoint::VpcIdHasBeenSet
bool VpcIdHasBeenSet() const
Definition: VpcEndpoint.h:102
Aws::Redshift::Model::NetworkInterface
Definition: NetworkInterface.h:32
Aws::Redshift::Model::VpcEndpoint::SetNetworkInterfaces
void SetNetworkInterfaces(Aws::Vector< NetworkInterface > &&value)
Definition: VpcEndpoint.h:157
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::Redshift::Model::VpcEndpoint::WithNetworkInterfaces
VpcEndpoint & WithNetworkInterfaces(Aws::Vector< NetworkInterface > &&value)
Definition: VpcEndpoint.h:169
Aws::Redshift::Model::VpcEndpoint::GetVpcEndpointId
const Aws::String & GetVpcEndpointId() const
Definition: VpcEndpoint.h:49