AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAddress(const Aws::String& value) { m_addressHasBeenSet = true; m_address = value; }
49 inline void SetAddress(Aws::String&& value) { m_addressHasBeenSet = true; m_address = std::move(value); }
50 inline void SetAddress(const char* value) { m_addressHasBeenSet = true; m_address.assign(value); }
51 inline Endpoint& WithAddress(const Aws::String& value) { SetAddress(value); return *this;}
52 inline Endpoint& WithAddress(Aws::String&& value) { SetAddress(std::move(value)); return *this;}
53 inline Endpoint& WithAddress(const char* value) { SetAddress(value); return *this;}
55
57
60 inline int GetPort() const{ return m_port; }
61 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
62 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
63 inline Endpoint& WithPort(int value) { SetPort(value); return *this;}
65
67
70 inline const Aws::Vector<VpcEndpoint>& GetVpcEndpoints() const{ return m_vpcEndpoints; }
71 inline bool VpcEndpointsHasBeenSet() const { return m_vpcEndpointsHasBeenSet; }
72 inline void SetVpcEndpoints(const Aws::Vector<VpcEndpoint>& value) { m_vpcEndpointsHasBeenSet = true; m_vpcEndpoints = value; }
73 inline void SetVpcEndpoints(Aws::Vector<VpcEndpoint>&& value) { m_vpcEndpointsHasBeenSet = true; m_vpcEndpoints = std::move(value); }
74 inline Endpoint& WithVpcEndpoints(const Aws::Vector<VpcEndpoint>& value) { SetVpcEndpoints(value); return *this;}
75 inline Endpoint& WithVpcEndpoints(Aws::Vector<VpcEndpoint>&& value) { SetVpcEndpoints(std::move(value)); return *this;}
76 inline Endpoint& AddVpcEndpoints(const VpcEndpoint& value) { m_vpcEndpointsHasBeenSet = true; m_vpcEndpoints.push_back(value); return *this; }
77 inline Endpoint& AddVpcEndpoints(VpcEndpoint&& value) { m_vpcEndpointsHasBeenSet = true; m_vpcEndpoints.push_back(std::move(value)); return *this; }
79 private:
80
81 Aws::String m_address;
82 bool m_addressHasBeenSet = false;
83
84 int m_port;
85 bool m_portHasBeenSet = false;
86
87 Aws::Vector<VpcEndpoint> m_vpcEndpoints;
88 bool m_vpcEndpointsHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace RedshiftServerless
93} // namespace Aws
Endpoint & AddVpcEndpoints(const VpcEndpoint &value)
Definition Endpoint.h:76
const Aws::Vector< VpcEndpoint > & GetVpcEndpoints() const
Definition Endpoint.h:70
const Aws::String & GetAddress() const
Definition Endpoint.h:46
void SetAddress(const char *value)
Definition Endpoint.h:50
Endpoint & WithVpcEndpoints(Aws::Vector< VpcEndpoint > &&value)
Definition Endpoint.h:75
void SetVpcEndpoints(const Aws::Vector< VpcEndpoint > &value)
Definition Endpoint.h:72
void SetAddress(Aws::String &&value)
Definition Endpoint.h:49
Endpoint & AddVpcEndpoints(VpcEndpoint &&value)
Definition Endpoint.h:77
AWS_REDSHIFTSERVERLESS_API Endpoint(Aws::Utils::Json::JsonView jsonValue)
void SetVpcEndpoints(Aws::Vector< VpcEndpoint > &&value)
Definition Endpoint.h:73
Endpoint & WithAddress(Aws::String &&value)
Definition Endpoint.h:52
AWS_REDSHIFTSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
Endpoint & WithAddress(const char *value)
Definition Endpoint.h:53
Endpoint & WithVpcEndpoints(const Aws::Vector< VpcEndpoint > &value)
Definition Endpoint.h:74
Endpoint & WithAddress(const Aws::String &value)
Definition Endpoint.h:51
AWS_REDSHIFTSERVERLESS_API Endpoint()
AWS_REDSHIFTSERVERLESS_API Endpoint & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAddress(const Aws::String &value)
Definition Endpoint.h:48
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue