AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAddress(const Aws::String& value) { m_addressHasBeenSet = true; m_address = value; }
52 inline void SetAddress(Aws::String&& value) { m_addressHasBeenSet = true; m_address = std::move(value); }
53 inline void SetAddress(const char* value) { m_addressHasBeenSet = true; m_address.assign(value); }
54 inline EndpointAccess& WithAddress(const Aws::String& value) { SetAddress(value); return *this;}
55 inline EndpointAccess& WithAddress(Aws::String&& value) { SetAddress(std::move(value)); return *this;}
56 inline EndpointAccess& WithAddress(const char* value) { SetAddress(value); return *this;}
58
60
63 inline const Aws::String& GetEndpointArn() const{ return m_endpointArn; }
64 inline bool EndpointArnHasBeenSet() const { return m_endpointArnHasBeenSet; }
65 inline void SetEndpointArn(const Aws::String& value) { m_endpointArnHasBeenSet = true; m_endpointArn = value; }
66 inline void SetEndpointArn(Aws::String&& value) { m_endpointArnHasBeenSet = true; m_endpointArn = std::move(value); }
67 inline void SetEndpointArn(const char* value) { m_endpointArnHasBeenSet = true; m_endpointArn.assign(value); }
68 inline EndpointAccess& WithEndpointArn(const Aws::String& value) { SetEndpointArn(value); return *this;}
69 inline EndpointAccess& WithEndpointArn(Aws::String&& value) { SetEndpointArn(std::move(value)); return *this;}
70 inline EndpointAccess& WithEndpointArn(const char* value) { SetEndpointArn(value); return *this;}
72
74
77 inline const Aws::Utils::DateTime& GetEndpointCreateTime() const{ return m_endpointCreateTime; }
78 inline bool EndpointCreateTimeHasBeenSet() const { return m_endpointCreateTimeHasBeenSet; }
79 inline void SetEndpointCreateTime(const Aws::Utils::DateTime& value) { m_endpointCreateTimeHasBeenSet = true; m_endpointCreateTime = value; }
80 inline void SetEndpointCreateTime(Aws::Utils::DateTime&& value) { m_endpointCreateTimeHasBeenSet = true; m_endpointCreateTime = std::move(value); }
82 inline EndpointAccess& WithEndpointCreateTime(Aws::Utils::DateTime&& value) { SetEndpointCreateTime(std::move(value)); return *this;}
84
86
89 inline const Aws::String& GetEndpointName() const{ return m_endpointName; }
90 inline bool EndpointNameHasBeenSet() const { return m_endpointNameHasBeenSet; }
91 inline void SetEndpointName(const Aws::String& value) { m_endpointNameHasBeenSet = true; m_endpointName = value; }
92 inline void SetEndpointName(Aws::String&& value) { m_endpointNameHasBeenSet = true; m_endpointName = std::move(value); }
93 inline void SetEndpointName(const char* value) { m_endpointNameHasBeenSet = true; m_endpointName.assign(value); }
94 inline EndpointAccess& WithEndpointName(const Aws::String& value) { SetEndpointName(value); return *this;}
95 inline EndpointAccess& WithEndpointName(Aws::String&& value) { SetEndpointName(std::move(value)); return *this;}
96 inline EndpointAccess& WithEndpointName(const char* value) { SetEndpointName(value); return *this;}
98
100
103 inline const Aws::String& GetEndpointStatus() const{ return m_endpointStatus; }
104 inline bool EndpointStatusHasBeenSet() const { return m_endpointStatusHasBeenSet; }
105 inline void SetEndpointStatus(const Aws::String& value) { m_endpointStatusHasBeenSet = true; m_endpointStatus = value; }
106 inline void SetEndpointStatus(Aws::String&& value) { m_endpointStatusHasBeenSet = true; m_endpointStatus = std::move(value); }
107 inline void SetEndpointStatus(const char* value) { m_endpointStatusHasBeenSet = true; m_endpointStatus.assign(value); }
108 inline EndpointAccess& WithEndpointStatus(const Aws::String& value) { SetEndpointStatus(value); return *this;}
109 inline EndpointAccess& WithEndpointStatus(Aws::String&& value) { SetEndpointStatus(std::move(value)); return *this;}
110 inline EndpointAccess& WithEndpointStatus(const char* value) { SetEndpointStatus(value); return *this;}
112
114
118 inline int GetPort() const{ return m_port; }
119 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
120 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
121 inline EndpointAccess& WithPort(int value) { SetPort(value); return *this;}
123
125
129 inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
130 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
131 inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
132 inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); }
133 inline EndpointAccess& WithSubnetIds(const Aws::Vector<Aws::String>& value) { SetSubnetIds(value); return *this;}
134 inline EndpointAccess& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;}
135 inline EndpointAccess& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
136 inline EndpointAccess& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
137 inline EndpointAccess& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
139
141
144 inline const VpcEndpoint& GetVpcEndpoint() const{ return m_vpcEndpoint; }
145 inline bool VpcEndpointHasBeenSet() const { return m_vpcEndpointHasBeenSet; }
146 inline void SetVpcEndpoint(const VpcEndpoint& value) { m_vpcEndpointHasBeenSet = true; m_vpcEndpoint = value; }
147 inline void SetVpcEndpoint(VpcEndpoint&& value) { m_vpcEndpointHasBeenSet = true; m_vpcEndpoint = std::move(value); }
148 inline EndpointAccess& WithVpcEndpoint(const VpcEndpoint& value) { SetVpcEndpoint(value); return *this;}
149 inline EndpointAccess& WithVpcEndpoint(VpcEndpoint&& value) { SetVpcEndpoint(std::move(value)); return *this;}
151
153
156 inline const Aws::Vector<VpcSecurityGroupMembership>& GetVpcSecurityGroups() const{ return m_vpcSecurityGroups; }
157 inline bool VpcSecurityGroupsHasBeenSet() const { return m_vpcSecurityGroupsHasBeenSet; }
158 inline void SetVpcSecurityGroups(const Aws::Vector<VpcSecurityGroupMembership>& value) { m_vpcSecurityGroupsHasBeenSet = true; m_vpcSecurityGroups = value; }
159 inline void SetVpcSecurityGroups(Aws::Vector<VpcSecurityGroupMembership>&& value) { m_vpcSecurityGroupsHasBeenSet = true; m_vpcSecurityGroups = std::move(value); }
162 inline EndpointAccess& AddVpcSecurityGroups(const VpcSecurityGroupMembership& value) { m_vpcSecurityGroupsHasBeenSet = true; m_vpcSecurityGroups.push_back(value); return *this; }
163 inline EndpointAccess& AddVpcSecurityGroups(VpcSecurityGroupMembership&& value) { m_vpcSecurityGroupsHasBeenSet = true; m_vpcSecurityGroups.push_back(std::move(value)); return *this; }
165
167
170 inline const Aws::String& GetWorkgroupName() const{ return m_workgroupName; }
171 inline bool WorkgroupNameHasBeenSet() const { return m_workgroupNameHasBeenSet; }
172 inline void SetWorkgroupName(const Aws::String& value) { m_workgroupNameHasBeenSet = true; m_workgroupName = value; }
173 inline void SetWorkgroupName(Aws::String&& value) { m_workgroupNameHasBeenSet = true; m_workgroupName = std::move(value); }
174 inline void SetWorkgroupName(const char* value) { m_workgroupNameHasBeenSet = true; m_workgroupName.assign(value); }
175 inline EndpointAccess& WithWorkgroupName(const Aws::String& value) { SetWorkgroupName(value); return *this;}
176 inline EndpointAccess& WithWorkgroupName(Aws::String&& value) { SetWorkgroupName(std::move(value)); return *this;}
177 inline EndpointAccess& WithWorkgroupName(const char* value) { SetWorkgroupName(value); return *this;}
179 private:
180
181 Aws::String m_address;
182 bool m_addressHasBeenSet = false;
183
184 Aws::String m_endpointArn;
185 bool m_endpointArnHasBeenSet = false;
186
187 Aws::Utils::DateTime m_endpointCreateTime;
188 bool m_endpointCreateTimeHasBeenSet = false;
189
190 Aws::String m_endpointName;
191 bool m_endpointNameHasBeenSet = false;
192
193 Aws::String m_endpointStatus;
194 bool m_endpointStatusHasBeenSet = false;
195
196 int m_port;
197 bool m_portHasBeenSet = false;
198
199 Aws::Vector<Aws::String> m_subnetIds;
200 bool m_subnetIdsHasBeenSet = false;
201
202 VpcEndpoint m_vpcEndpoint;
203 bool m_vpcEndpointHasBeenSet = false;
204
205 Aws::Vector<VpcSecurityGroupMembership> m_vpcSecurityGroups;
206 bool m_vpcSecurityGroupsHasBeenSet = false;
207
208 Aws::String m_workgroupName;
209 bool m_workgroupNameHasBeenSet = false;
210 };
211
212} // namespace Model
213} // namespace RedshiftServerless
214} // namespace Aws
EndpointAccess & AddSubnetIds(const Aws::String &value)
AWS_REDSHIFTSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
EndpointAccess & WithEndpointName(Aws::String &&value)
void SetEndpointCreateTime(Aws::Utils::DateTime &&value)
EndpointAccess & WithVpcSecurityGroups(Aws::Vector< VpcSecurityGroupMembership > &&value)
EndpointAccess & WithVpcSecurityGroups(const Aws::Vector< VpcSecurityGroupMembership > &value)
const Aws::Vector< VpcSecurityGroupMembership > & GetVpcSecurityGroups() const
void SetEndpointStatus(const Aws::String &value)
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
EndpointAccess & WithSubnetIds(Aws::Vector< Aws::String > &&value)
EndpointAccess & AddVpcSecurityGroups(VpcSecurityGroupMembership &&value)
void SetAddress(const Aws::String &value)
void SetEndpointArn(const Aws::String &value)
EndpointAccess & WithVpcEndpoint(const VpcEndpoint &value)
EndpointAccess & AddSubnetIds(Aws::String &&value)
EndpointAccess & WithEndpointName(const char *value)
EndpointAccess & AddVpcSecurityGroups(const VpcSecurityGroupMembership &value)
EndpointAccess & WithAddress(const Aws::String &value)
void SetVpcSecurityGroups(const Aws::Vector< VpcSecurityGroupMembership > &value)
EndpointAccess & WithEndpointStatus(const Aws::String &value)
EndpointAccess & WithWorkgroupName(const char *value)
EndpointAccess & WithWorkgroupName(const Aws::String &value)
AWS_REDSHIFTSERVERLESS_API EndpointAccess(Aws::Utils::Json::JsonView jsonValue)
EndpointAccess & WithEndpointArn(const Aws::String &value)
void SetEndpointCreateTime(const Aws::Utils::DateTime &value)
EndpointAccess & WithWorkgroupName(Aws::String &&value)
EndpointAccess & WithEndpointCreateTime(const Aws::Utils::DateTime &value)
EndpointAccess & WithEndpointName(const Aws::String &value)
AWS_REDSHIFTSERVERLESS_API EndpointAccess & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_REDSHIFTSERVERLESS_API EndpointAccess()
EndpointAccess & WithVpcEndpoint(VpcEndpoint &&value)
EndpointAccess & WithAddress(const char *value)
EndpointAccess & WithAddress(Aws::String &&value)
EndpointAccess & WithEndpointArn(const char *value)
EndpointAccess & WithEndpointStatus(const char *value)
void SetVpcSecurityGroups(Aws::Vector< VpcSecurityGroupMembership > &&value)
EndpointAccess & AddSubnetIds(const char *value)
EndpointAccess & WithEndpointStatus(Aws::String &&value)
void SetEndpointName(const Aws::String &value)
EndpointAccess & WithEndpointCreateTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetEndpointCreateTime() const
EndpointAccess & WithEndpointArn(Aws::String &&value)
void SetSubnetIds(Aws::Vector< Aws::String > &&value)
void SetWorkgroupName(const Aws::String &value)
EndpointAccess & WithSubnetIds(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
void SetVpcEndpoint(const VpcEndpoint &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