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-serverless/RedshiftServerless_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/redshift-serverless/model/NetworkInterface.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace RedshiftServerless
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_REDSHIFTSERVERLESS_API VpcEndpoint() = default;
38 AWS_REDSHIFTSERVERLESS_API VpcEndpoint(Aws::Utils::Json::JsonView jsonValue);
39 AWS_REDSHIFTSERVERLESS_API VpcEndpoint& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_REDSHIFTSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::Vector<NetworkInterface>& GetNetworkInterfaces() const { return m_networkInterfaces; }
49 inline bool NetworkInterfacesHasBeenSet() const { return m_networkInterfacesHasBeenSet; }
50 template<typename NetworkInterfacesT = Aws::Vector<NetworkInterface>>
51 void SetNetworkInterfaces(NetworkInterfacesT&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces = std::forward<NetworkInterfacesT>(value); }
52 template<typename NetworkInterfacesT = Aws::Vector<NetworkInterface>>
53 VpcEndpoint& WithNetworkInterfaces(NetworkInterfacesT&& value) { SetNetworkInterfaces(std::forward<NetworkInterfacesT>(value)); return *this;}
54 template<typename NetworkInterfacesT = NetworkInterface>
55 VpcEndpoint& AddNetworkInterfaces(NetworkInterfacesT&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces.emplace_back(std::forward<NetworkInterfacesT>(value)); return *this; }
57
59
62 inline const Aws::String& GetVpcEndpointId() const { return m_vpcEndpointId; }
63 inline bool VpcEndpointIdHasBeenSet() const { return m_vpcEndpointIdHasBeenSet; }
64 template<typename VpcEndpointIdT = Aws::String>
65 void SetVpcEndpointId(VpcEndpointIdT&& value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId = std::forward<VpcEndpointIdT>(value); }
66 template<typename VpcEndpointIdT = Aws::String>
67 VpcEndpoint& WithVpcEndpointId(VpcEndpointIdT&& value) { SetVpcEndpointId(std::forward<VpcEndpointIdT>(value)); return *this;}
69
71
74 inline const Aws::String& GetVpcId() const { return m_vpcId; }
75 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
76 template<typename VpcIdT = Aws::String>
77 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
78 template<typename VpcIdT = Aws::String>
79 VpcEndpoint& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
81 private:
82
83 Aws::Vector<NetworkInterface> m_networkInterfaces;
84 bool m_networkInterfacesHasBeenSet = false;
85
86 Aws::String m_vpcEndpointId;
87 bool m_vpcEndpointIdHasBeenSet = false;
88
89 Aws::String m_vpcId;
90 bool m_vpcIdHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace RedshiftServerless
95} // namespace Aws
VpcEndpoint & WithVpcId(VpcIdT &&value)
Definition VpcEndpoint.h:79
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:67
void SetNetworkInterfaces(NetworkInterfacesT &&value)
Definition VpcEndpoint.h:51
void SetVpcEndpointId(VpcEndpointIdT &&value)
Definition VpcEndpoint.h:65
VpcEndpoint & AddNetworkInterfaces(NetworkInterfacesT &&value)
Definition VpcEndpoint.h:55
const Aws::Vector< NetworkInterface > & GetNetworkInterfaces() const
Definition VpcEndpoint.h:48
VpcEndpoint & WithNetworkInterfaces(NetworkInterfacesT &&value)
Definition VpcEndpoint.h:53
const Aws::String & GetVpcEndpointId() const
Definition VpcEndpoint.h:62
AWS_REDSHIFTSERVERLESS_API VpcEndpoint & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetVpcId() const
Definition VpcEndpoint.h:74
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue