AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
VpcEndpoint.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/redshift/Redshift_EXPORTS.h>
11#include <aws/redshift/model/NetworkInterface.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace Redshift {
22namespace Model {
23
31 public:
32 AWS_REDSHIFT_API VpcEndpoint() = default;
33 AWS_REDSHIFT_API VpcEndpoint(const Aws::Utils::Xml::XmlNode& xmlNode);
34 AWS_REDSHIFT_API VpcEndpoint& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
44 inline const Aws::String& GetVpcEndpointId() const { return m_vpcEndpointId; }
45 inline bool VpcEndpointIdHasBeenSet() const { return m_vpcEndpointIdHasBeenSet; }
46 template <typename VpcEndpointIdT = Aws::String>
47 void SetVpcEndpointId(VpcEndpointIdT&& value) {
48 m_vpcEndpointIdHasBeenSet = true;
49 m_vpcEndpointId = std::forward<VpcEndpointIdT>(value);
50 }
51 template <typename VpcEndpointIdT = Aws::String>
52 VpcEndpoint& WithVpcEndpointId(VpcEndpointIdT&& value) {
53 SetVpcEndpointId(std::forward<VpcEndpointIdT>(value));
54 return *this;
55 }
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) {
66 m_vpcIdHasBeenSet = true;
67 m_vpcId = std::forward<VpcIdT>(value);
68 }
69 template <typename VpcIdT = Aws::String>
70 VpcEndpoint& WithVpcId(VpcIdT&& value) {
71 SetVpcId(std::forward<VpcIdT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::Vector<NetworkInterface>& GetNetworkInterfaces() const { return m_networkInterfaces; }
82 inline bool NetworkInterfacesHasBeenSet() const { return m_networkInterfacesHasBeenSet; }
83 template <typename NetworkInterfacesT = Aws::Vector<NetworkInterface>>
84 void SetNetworkInterfaces(NetworkInterfacesT&& value) {
85 m_networkInterfacesHasBeenSet = true;
86 m_networkInterfaces = std::forward<NetworkInterfacesT>(value);
87 }
88 template <typename NetworkInterfacesT = Aws::Vector<NetworkInterface>>
89 VpcEndpoint& WithNetworkInterfaces(NetworkInterfacesT&& value) {
90 SetNetworkInterfaces(std::forward<NetworkInterfacesT>(value));
91 return *this;
92 }
93 template <typename NetworkInterfacesT = NetworkInterface>
94 VpcEndpoint& AddNetworkInterfaces(NetworkInterfacesT&& value) {
95 m_networkInterfacesHasBeenSet = true;
96 m_networkInterfaces.emplace_back(std::forward<NetworkInterfacesT>(value));
97 return *this;
98 }
100 private:
101 Aws::String m_vpcEndpointId;
102
103 Aws::String m_vpcId;
104
105 Aws::Vector<NetworkInterface> m_networkInterfaces;
106 bool m_vpcEndpointIdHasBeenSet = false;
107 bool m_vpcIdHasBeenSet = false;
108 bool m_networkInterfacesHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace Redshift
113} // namespace Aws
void SetVpcEndpointId(VpcEndpointIdT &&value)
Definition VpcEndpoint.h:47
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:81
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:44
VpcEndpoint & WithNetworkInterfaces(NetworkInterfacesT &&value)
Definition VpcEndpoint.h:89
void SetNetworkInterfaces(NetworkInterfacesT &&value)
Definition VpcEndpoint.h:84
VpcEndpoint & WithVpcEndpointId(VpcEndpointIdT &&value)
Definition VpcEndpoint.h:52
AWS_REDSHIFT_API VpcEndpoint & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
VpcEndpoint & AddNetworkInterfaces(NetworkInterfacesT &&value)
Definition VpcEndpoint.h:94
VpcEndpoint & WithVpcId(VpcIdT &&value)
Definition VpcEndpoint.h:70
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