AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Endpoint.h
1
6#pragma once
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>
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
34 {
35 public:
36 AWS_REDSHIFTSERVERLESS_API Endpoint() = default;
37 AWS_REDSHIFTSERVERLESS_API Endpoint(Aws::Utils::Json::JsonView jsonValue);
38 AWS_REDSHIFTSERVERLESS_API Endpoint& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_REDSHIFTSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetAddress() const { return m_address; }
47 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
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>
51 Endpoint& WithAddress(AddressT&& value) { SetAddress(std::forward<AddressT>(value)); return *this;}
53
55
58 inline int GetPort() const { return m_port; }
59 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
60 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
61 inline Endpoint& WithPort(int value) { SetPort(value); return *this;}
63
65
68 inline const Aws::Vector<VpcEndpoint>& GetVpcEndpoints() const { return m_vpcEndpoints; }
69 inline bool VpcEndpointsHasBeenSet() const { return m_vpcEndpointsHasBeenSet; }
70 template<typename VpcEndpointsT = Aws::Vector<VpcEndpoint>>
71 void SetVpcEndpoints(VpcEndpointsT&& value) { m_vpcEndpointsHasBeenSet = true; m_vpcEndpoints = std::forward<VpcEndpointsT>(value); }
72 template<typename VpcEndpointsT = Aws::Vector<VpcEndpoint>>
73 Endpoint& WithVpcEndpoints(VpcEndpointsT&& value) { SetVpcEndpoints(std::forward<VpcEndpointsT>(value)); return *this;}
74 template<typename VpcEndpointsT = VpcEndpoint>
75 Endpoint& AddVpcEndpoints(VpcEndpointsT&& value) { m_vpcEndpointsHasBeenSet = true; m_vpcEndpoints.emplace_back(std::forward<VpcEndpointsT>(value)); return *this; }
77 private:
78
79 Aws::String m_address;
80 bool m_addressHasBeenSet = false;
81
82 int m_port{0};
83 bool m_portHasBeenSet = false;
84
85 Aws::Vector<VpcEndpoint> m_vpcEndpoints;
86 bool m_vpcEndpointsHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace RedshiftServerless
91} // namespace Aws
Endpoint & WithAddress(AddressT &&value)
Definition Endpoint.h:51
const Aws::Vector< VpcEndpoint > & GetVpcEndpoints() const
Definition Endpoint.h:68
const Aws::String & GetAddress() const
Definition Endpoint.h:46
void SetVpcEndpoints(VpcEndpointsT &&value)
Definition Endpoint.h:71
void SetAddress(AddressT &&value)
Definition Endpoint.h:49
Endpoint & WithVpcEndpoints(VpcEndpointsT &&value)
Definition Endpoint.h:73
AWS_REDSHIFTSERVERLESS_API Endpoint()=default
AWS_REDSHIFTSERVERLESS_API Endpoint(Aws::Utils::Json::JsonView jsonValue)
Endpoint & AddVpcEndpoints(VpcEndpointsT &&value)
Definition Endpoint.h:75
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