AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
VpcEndpoint.h
1
6#pragma once
7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/redshift/model/NetworkInterface.h>
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:
37 AWS_REDSHIFT_API VpcEndpoint() = default;
38 AWS_REDSHIFT_API VpcEndpoint(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_REDSHIFT_API VpcEndpoint& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
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
46
50 inline const Aws::String& GetVpcEndpointId() const { return m_vpcEndpointId; }
51 inline bool VpcEndpointIdHasBeenSet() const { return m_vpcEndpointIdHasBeenSet; }
52 template<typename VpcEndpointIdT = Aws::String>
53 void SetVpcEndpointId(VpcEndpointIdT&& value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId = std::forward<VpcEndpointIdT>(value); }
54 template<typename VpcEndpointIdT = Aws::String>
55 VpcEndpoint& WithVpcEndpointId(VpcEndpointIdT&& value) { SetVpcEndpointId(std::forward<VpcEndpointIdT>(value)); return *this;}
57
59
62 inline const Aws::String& GetVpcId() const { return m_vpcId; }
63 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
64 template<typename VpcIdT = Aws::String>
65 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
66 template<typename VpcIdT = Aws::String>
67 VpcEndpoint& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
69
71
75 inline const Aws::Vector<NetworkInterface>& GetNetworkInterfaces() const { return m_networkInterfaces; }
76 inline bool NetworkInterfacesHasBeenSet() const { return m_networkInterfacesHasBeenSet; }
77 template<typename NetworkInterfacesT = Aws::Vector<NetworkInterface>>
78 void SetNetworkInterfaces(NetworkInterfacesT&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces = std::forward<NetworkInterfacesT>(value); }
79 template<typename NetworkInterfacesT = Aws::Vector<NetworkInterface>>
80 VpcEndpoint& WithNetworkInterfaces(NetworkInterfacesT&& value) { SetNetworkInterfaces(std::forward<NetworkInterfacesT>(value)); return *this;}
81 template<typename NetworkInterfacesT = NetworkInterface>
82 VpcEndpoint& AddNetworkInterfaces(NetworkInterfacesT&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces.emplace_back(std::forward<NetworkInterfacesT>(value)); return *this; }
84 private:
85
86 Aws::String m_vpcEndpointId;
87 bool m_vpcEndpointIdHasBeenSet = false;
88
89 Aws::String m_vpcId;
90 bool m_vpcIdHasBeenSet = false;
91
92 Aws::Vector<NetworkInterface> m_networkInterfaces;
93 bool m_networkInterfacesHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace Redshift
98} // namespace Aws
void SetVpcEndpointId(VpcEndpointIdT &&value)
Definition VpcEndpoint.h:53
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetVpcId() const
Definition VpcEndpoint.h:62
AWS_REDSHIFT_API VpcEndpoint(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< NetworkInterface > & GetNetworkInterfaces() const
Definition VpcEndpoint.h:75
void SetVpcId(VpcIdT &&value)
Definition VpcEndpoint.h:65
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_REDSHIFT_API VpcEndpoint()=default
const Aws::String & GetVpcEndpointId() const
Definition VpcEndpoint.h:50
VpcEndpoint & WithNetworkInterfaces(NetworkInterfacesT &&value)
Definition VpcEndpoint.h:80
void SetNetworkInterfaces(NetworkInterfacesT &&value)
Definition VpcEndpoint.h:78
VpcEndpoint & WithVpcEndpointId(VpcEndpointIdT &&value)
Definition VpcEndpoint.h:55
AWS_REDSHIFT_API VpcEndpoint & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
VpcEndpoint & AddNetworkInterfaces(NetworkInterfacesT &&value)
Definition VpcEndpoint.h:82
VpcEndpoint & WithVpcId(VpcIdT &&value)
Definition VpcEndpoint.h:67
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