7#include <aws/redshift-serverless/RedshiftServerless_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/redshift-serverless/model/VpcEndpoint.h>
23namespace RedshiftServerless
36 AWS_REDSHIFTSERVERLESS_API
Endpoint() =
default;
48 template<
typename AddressT = Aws::String>
49 void SetAddress(AddressT&& value) { m_addressHasBeenSet =
true; m_address = std::forward<AddressT>(value); }
50 template<
typename AddressT = Aws::String>
58 inline int GetPort()
const {
return m_port; }
60 inline void SetPort(
int value) { m_portHasBeenSet =
true; m_port = value; }
70 template<
typename VpcEndpo
intsT = Aws::Vector<VpcEndpo
int>>
71 void SetVpcEndpoints(VpcEndpointsT&& value) { m_vpcEndpointsHasBeenSet =
true; m_vpcEndpoints = std::forward<VpcEndpointsT>(value); }
72 template<
typename VpcEndpo
intsT = Aws::Vector<VpcEndpo
int>>
74 template<
typename VpcEndpo
intsT = VpcEndpo
int>
75 Endpoint&
AddVpcEndpoints(VpcEndpointsT&& value) { m_vpcEndpointsHasBeenSet =
true; m_vpcEndpoints.emplace_back(std::forward<VpcEndpointsT>(value));
return *
this; }
80 bool m_addressHasBeenSet =
false;
83 bool m_portHasBeenSet =
false;
86 bool m_vpcEndpointsHasBeenSet =
false;
Endpoint & WithAddress(AddressT &&value)
const Aws::Vector< VpcEndpoint > & GetVpcEndpoints() const
const Aws::String & GetAddress() const
void SetVpcEndpoints(VpcEndpointsT &&value)
bool PortHasBeenSet() const
void SetAddress(AddressT &&value)
Endpoint & WithVpcEndpoints(VpcEndpointsT &&value)
Endpoint & WithPort(int value)
bool AddressHasBeenSet() const
AWS_REDSHIFTSERVERLESS_API Endpoint()=default
bool VpcEndpointsHasBeenSet() const
AWS_REDSHIFTSERVERLESS_API Endpoint(Aws::Utils::Json::JsonView jsonValue)
Endpoint & AddVpcEndpoints(VpcEndpointsT &&value)
AWS_REDSHIFTSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_REDSHIFTSERVERLESS_API Endpoint & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue