AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
VpcEndpoint.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/redshift-serverless/RedshiftServerless_EXPORTS.h>
10#include <aws/redshift-serverless/model/NetworkInterface.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace RedshiftServerless {
22namespace Model {
23
31 public:
32 AWS_REDSHIFTSERVERLESS_API VpcEndpoint() = default;
33 AWS_REDSHIFTSERVERLESS_API VpcEndpoint(Aws::Utils::Json::JsonView jsonValue);
34 AWS_REDSHIFTSERVERLESS_API VpcEndpoint& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_REDSHIFTSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::Vector<NetworkInterface>& GetNetworkInterfaces() const { return m_networkInterfaces; }
43 inline bool NetworkInterfacesHasBeenSet() const { return m_networkInterfacesHasBeenSet; }
44 template <typename NetworkInterfacesT = Aws::Vector<NetworkInterface>>
45 void SetNetworkInterfaces(NetworkInterfacesT&& value) {
46 m_networkInterfacesHasBeenSet = true;
47 m_networkInterfaces = std::forward<NetworkInterfacesT>(value);
48 }
49 template <typename NetworkInterfacesT = Aws::Vector<NetworkInterface>>
50 VpcEndpoint& WithNetworkInterfaces(NetworkInterfacesT&& value) {
51 SetNetworkInterfaces(std::forward<NetworkInterfacesT>(value));
52 return *this;
53 }
54 template <typename NetworkInterfacesT = NetworkInterface>
55 VpcEndpoint& AddNetworkInterfaces(NetworkInterfacesT&& value) {
56 m_networkInterfacesHasBeenSet = true;
57 m_networkInterfaces.emplace_back(std::forward<NetworkInterfacesT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::String& GetVpcEndpointId() const { return m_vpcEndpointId; }
67 inline bool VpcEndpointIdHasBeenSet() const { return m_vpcEndpointIdHasBeenSet; }
68 template <typename VpcEndpointIdT = Aws::String>
69 void SetVpcEndpointId(VpcEndpointIdT&& value) {
70 m_vpcEndpointIdHasBeenSet = true;
71 m_vpcEndpointId = std::forward<VpcEndpointIdT>(value);
72 }
73 template <typename VpcEndpointIdT = Aws::String>
74 VpcEndpoint& WithVpcEndpointId(VpcEndpointIdT&& value) {
75 SetVpcEndpointId(std::forward<VpcEndpointIdT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::String& GetVpcId() const { return m_vpcId; }
85 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
86 template <typename VpcIdT = Aws::String>
87 void SetVpcId(VpcIdT&& value) {
88 m_vpcIdHasBeenSet = true;
89 m_vpcId = std::forward<VpcIdT>(value);
90 }
91 template <typename VpcIdT = Aws::String>
92 VpcEndpoint& WithVpcId(VpcIdT&& value) {
93 SetVpcId(std::forward<VpcIdT>(value));
94 return *this;
95 }
97 private:
98 Aws::Vector<NetworkInterface> m_networkInterfaces;
99
100 Aws::String m_vpcEndpointId;
101
102 Aws::String m_vpcId;
103 bool m_networkInterfacesHasBeenSet = false;
104 bool m_vpcEndpointIdHasBeenSet = false;
105 bool m_vpcIdHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace RedshiftServerless
110} // namespace Aws
VpcEndpoint & WithVpcId(VpcIdT &&value)
Definition VpcEndpoint.h:92
AWS_REDSHIFTSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_REDSHIFTSERVERLESS_API VpcEndpoint()=default
AWS_REDSHIFTSERVERLESS_API VpcEndpoint(Aws::Utils::Json::JsonView jsonValue)
VpcEndpoint & WithVpcEndpointId(VpcEndpointIdT &&value)
Definition VpcEndpoint.h:74
void SetNetworkInterfaces(NetworkInterfacesT &&value)
Definition VpcEndpoint.h:45
void SetVpcEndpointId(VpcEndpointIdT &&value)
Definition VpcEndpoint.h:69
VpcEndpoint & AddNetworkInterfaces(NetworkInterfacesT &&value)
Definition VpcEndpoint.h:55
const Aws::Vector< NetworkInterface > & GetNetworkInterfaces() const
Definition VpcEndpoint.h:42
VpcEndpoint & WithNetworkInterfaces(NetworkInterfacesT &&value)
Definition VpcEndpoint.h:50
const Aws::String & GetVpcEndpointId() const
Definition VpcEndpoint.h:66
AWS_REDSHIFTSERVERLESS_API VpcEndpoint & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetVpcId() const
Definition VpcEndpoint.h:84
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue