AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
EndpointAccess.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/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/redshift-serverless/model/VpcEndpoint.h>
12#include <aws/redshift-serverless/model/VpcSecurityGroupMembership.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace RedshiftServerless
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_REDSHIFTSERVERLESS_API EndpointAccess() = default;
40 AWS_REDSHIFTSERVERLESS_API EndpointAccess(Aws::Utils::Json::JsonView jsonValue);
41 AWS_REDSHIFTSERVERLESS_API EndpointAccess& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_REDSHIFTSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetAddress() const { return m_address; }
50 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
51 template<typename AddressT = Aws::String>
52 void SetAddress(AddressT&& value) { m_addressHasBeenSet = true; m_address = std::forward<AddressT>(value); }
53 template<typename AddressT = Aws::String>
54 EndpointAccess& WithAddress(AddressT&& value) { SetAddress(std::forward<AddressT>(value)); return *this;}
56
58
61 inline const Aws::String& GetEndpointArn() const { return m_endpointArn; }
62 inline bool EndpointArnHasBeenSet() const { return m_endpointArnHasBeenSet; }
63 template<typename EndpointArnT = Aws::String>
64 void SetEndpointArn(EndpointArnT&& value) { m_endpointArnHasBeenSet = true; m_endpointArn = std::forward<EndpointArnT>(value); }
65 template<typename EndpointArnT = Aws::String>
66 EndpointAccess& WithEndpointArn(EndpointArnT&& value) { SetEndpointArn(std::forward<EndpointArnT>(value)); return *this;}
68
70
73 inline const Aws::Utils::DateTime& GetEndpointCreateTime() const { return m_endpointCreateTime; }
74 inline bool EndpointCreateTimeHasBeenSet() const { return m_endpointCreateTimeHasBeenSet; }
75 template<typename EndpointCreateTimeT = Aws::Utils::DateTime>
76 void SetEndpointCreateTime(EndpointCreateTimeT&& value) { m_endpointCreateTimeHasBeenSet = true; m_endpointCreateTime = std::forward<EndpointCreateTimeT>(value); }
77 template<typename EndpointCreateTimeT = Aws::Utils::DateTime>
78 EndpointAccess& WithEndpointCreateTime(EndpointCreateTimeT&& value) { SetEndpointCreateTime(std::forward<EndpointCreateTimeT>(value)); return *this;}
80
82
85 inline const Aws::String& GetEndpointName() const { return m_endpointName; }
86 inline bool EndpointNameHasBeenSet() const { return m_endpointNameHasBeenSet; }
87 template<typename EndpointNameT = Aws::String>
88 void SetEndpointName(EndpointNameT&& value) { m_endpointNameHasBeenSet = true; m_endpointName = std::forward<EndpointNameT>(value); }
89 template<typename EndpointNameT = Aws::String>
90 EndpointAccess& WithEndpointName(EndpointNameT&& value) { SetEndpointName(std::forward<EndpointNameT>(value)); return *this;}
92
94
97 inline const Aws::String& GetEndpointStatus() const { return m_endpointStatus; }
98 inline bool EndpointStatusHasBeenSet() const { return m_endpointStatusHasBeenSet; }
99 template<typename EndpointStatusT = Aws::String>
100 void SetEndpointStatus(EndpointStatusT&& value) { m_endpointStatusHasBeenSet = true; m_endpointStatus = std::forward<EndpointStatusT>(value); }
101 template<typename EndpointStatusT = Aws::String>
102 EndpointAccess& WithEndpointStatus(EndpointStatusT&& value) { SetEndpointStatus(std::forward<EndpointStatusT>(value)); return *this;}
104
106
110 inline int GetPort() const { return m_port; }
111 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
112 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
113 inline EndpointAccess& WithPort(int value) { SetPort(value); return *this;}
115
117
121 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
122 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
123 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
124 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
125 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
126 EndpointAccess& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
127 template<typename SubnetIdsT = Aws::String>
128 EndpointAccess& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
130
132
135 inline const VpcEndpoint& GetVpcEndpoint() const { return m_vpcEndpoint; }
136 inline bool VpcEndpointHasBeenSet() const { return m_vpcEndpointHasBeenSet; }
137 template<typename VpcEndpointT = VpcEndpoint>
138 void SetVpcEndpoint(VpcEndpointT&& value) { m_vpcEndpointHasBeenSet = true; m_vpcEndpoint = std::forward<VpcEndpointT>(value); }
139 template<typename VpcEndpointT = VpcEndpoint>
140 EndpointAccess& WithVpcEndpoint(VpcEndpointT&& value) { SetVpcEndpoint(std::forward<VpcEndpointT>(value)); return *this;}
142
144
147 inline const Aws::Vector<VpcSecurityGroupMembership>& GetVpcSecurityGroups() const { return m_vpcSecurityGroups; }
148 inline bool VpcSecurityGroupsHasBeenSet() const { return m_vpcSecurityGroupsHasBeenSet; }
149 template<typename VpcSecurityGroupsT = Aws::Vector<VpcSecurityGroupMembership>>
150 void SetVpcSecurityGroups(VpcSecurityGroupsT&& value) { m_vpcSecurityGroupsHasBeenSet = true; m_vpcSecurityGroups = std::forward<VpcSecurityGroupsT>(value); }
151 template<typename VpcSecurityGroupsT = Aws::Vector<VpcSecurityGroupMembership>>
152 EndpointAccess& WithVpcSecurityGroups(VpcSecurityGroupsT&& value) { SetVpcSecurityGroups(std::forward<VpcSecurityGroupsT>(value)); return *this;}
153 template<typename VpcSecurityGroupsT = VpcSecurityGroupMembership>
154 EndpointAccess& AddVpcSecurityGroups(VpcSecurityGroupsT&& value) { m_vpcSecurityGroupsHasBeenSet = true; m_vpcSecurityGroups.emplace_back(std::forward<VpcSecurityGroupsT>(value)); return *this; }
156
158
161 inline const Aws::String& GetWorkgroupName() const { return m_workgroupName; }
162 inline bool WorkgroupNameHasBeenSet() const { return m_workgroupNameHasBeenSet; }
163 template<typename WorkgroupNameT = Aws::String>
164 void SetWorkgroupName(WorkgroupNameT&& value) { m_workgroupNameHasBeenSet = true; m_workgroupName = std::forward<WorkgroupNameT>(value); }
165 template<typename WorkgroupNameT = Aws::String>
166 EndpointAccess& WithWorkgroupName(WorkgroupNameT&& value) { SetWorkgroupName(std::forward<WorkgroupNameT>(value)); return *this;}
168 private:
169
170 Aws::String m_address;
171 bool m_addressHasBeenSet = false;
172
173 Aws::String m_endpointArn;
174 bool m_endpointArnHasBeenSet = false;
175
176 Aws::Utils::DateTime m_endpointCreateTime{};
177 bool m_endpointCreateTimeHasBeenSet = false;
178
179 Aws::String m_endpointName;
180 bool m_endpointNameHasBeenSet = false;
181
182 Aws::String m_endpointStatus;
183 bool m_endpointStatusHasBeenSet = false;
184
185 int m_port{0};
186 bool m_portHasBeenSet = false;
187
188 Aws::Vector<Aws::String> m_subnetIds;
189 bool m_subnetIdsHasBeenSet = false;
190
191 VpcEndpoint m_vpcEndpoint;
192 bool m_vpcEndpointHasBeenSet = false;
193
194 Aws::Vector<VpcSecurityGroupMembership> m_vpcSecurityGroups;
195 bool m_vpcSecurityGroupsHasBeenSet = false;
196
197 Aws::String m_workgroupName;
198 bool m_workgroupNameHasBeenSet = false;
199 };
200
201} // namespace Model
202} // namespace RedshiftServerless
203} // namespace Aws
AWS_REDSHIFTSERVERLESS_API EndpointAccess()=default
AWS_REDSHIFTSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
EndpointAccess & WithVpcSecurityGroups(VpcSecurityGroupsT &&value)
EndpointAccess & AddVpcSecurityGroups(VpcSecurityGroupsT &&value)
void SetEndpointStatus(EndpointStatusT &&value)
EndpointAccess & WithVpcEndpoint(VpcEndpointT &&value)
void SetWorkgroupName(WorkgroupNameT &&value)
const Aws::Vector< VpcSecurityGroupMembership > & GetVpcSecurityGroups() const
EndpointAccess & WithEndpointCreateTime(EndpointCreateTimeT &&value)
void SetVpcSecurityGroups(VpcSecurityGroupsT &&value)
EndpointAccess & WithSubnetIds(SubnetIdsT &&value)
EndpointAccess & WithEndpointName(EndpointNameT &&value)
void SetEndpointCreateTime(EndpointCreateTimeT &&value)
EndpointAccess & AddSubnetIds(SubnetIdsT &&value)
AWS_REDSHIFTSERVERLESS_API EndpointAccess(Aws::Utils::Json::JsonView jsonValue)
AWS_REDSHIFTSERVERLESS_API EndpointAccess & operator=(Aws::Utils::Json::JsonView jsonValue)
EndpointAccess & WithWorkgroupName(WorkgroupNameT &&value)
const Aws::String & GetEndpointStatus() const
const Aws::Utils::DateTime & GetEndpointCreateTime() const
const Aws::Vector< Aws::String > & GetSubnetIds() const
EndpointAccess & WithEndpointArn(EndpointArnT &&value)
EndpointAccess & WithAddress(AddressT &&value)
EndpointAccess & WithEndpointStatus(EndpointStatusT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue