AWS SDK for C++  1.9.104
AWS SDK for C++
CreateEndpointAccessRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Redshift
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "CreateEndpointAccess"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
43  inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; }
44 
48  inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
49 
53  inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
54 
58  inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::move(value); }
59 
63  inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); }
64 
68  inline CreateEndpointAccessRequest& WithClusterIdentifier(const Aws::String& value) { SetClusterIdentifier(value); return *this;}
69 
73  inline CreateEndpointAccessRequest& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(std::move(value)); return *this;}
74 
78  inline CreateEndpointAccessRequest& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;}
79 
80 
85  inline const Aws::String& GetResourceOwner() const{ return m_resourceOwner; }
86 
91  inline bool ResourceOwnerHasBeenSet() const { return m_resourceOwnerHasBeenSet; }
92 
97  inline void SetResourceOwner(const Aws::String& value) { m_resourceOwnerHasBeenSet = true; m_resourceOwner = value; }
98 
103  inline void SetResourceOwner(Aws::String&& value) { m_resourceOwnerHasBeenSet = true; m_resourceOwner = std::move(value); }
104 
109  inline void SetResourceOwner(const char* value) { m_resourceOwnerHasBeenSet = true; m_resourceOwner.assign(value); }
110 
115  inline CreateEndpointAccessRequest& WithResourceOwner(const Aws::String& value) { SetResourceOwner(value); return *this;}
116 
121  inline CreateEndpointAccessRequest& WithResourceOwner(Aws::String&& value) { SetResourceOwner(std::move(value)); return *this;}
122 
127  inline CreateEndpointAccessRequest& WithResourceOwner(const char* value) { SetResourceOwner(value); return *this;}
128 
129 
136  inline const Aws::String& GetEndpointName() const{ return m_endpointName; }
137 
144  inline bool EndpointNameHasBeenSet() const { return m_endpointNameHasBeenSet; }
145 
152  inline void SetEndpointName(const Aws::String& value) { m_endpointNameHasBeenSet = true; m_endpointName = value; }
153 
160  inline void SetEndpointName(Aws::String&& value) { m_endpointNameHasBeenSet = true; m_endpointName = std::move(value); }
161 
168  inline void SetEndpointName(const char* value) { m_endpointNameHasBeenSet = true; m_endpointName.assign(value); }
169 
176  inline CreateEndpointAccessRequest& WithEndpointName(const Aws::String& value) { SetEndpointName(value); return *this;}
177 
184  inline CreateEndpointAccessRequest& WithEndpointName(Aws::String&& value) { SetEndpointName(std::move(value)); return *this;}
185 
192  inline CreateEndpointAccessRequest& WithEndpointName(const char* value) { SetEndpointName(value); return *this;}
193 
194 
199  inline const Aws::String& GetSubnetGroupName() const{ return m_subnetGroupName; }
200 
205  inline bool SubnetGroupNameHasBeenSet() const { return m_subnetGroupNameHasBeenSet; }
206 
211  inline void SetSubnetGroupName(const Aws::String& value) { m_subnetGroupNameHasBeenSet = true; m_subnetGroupName = value; }
212 
217  inline void SetSubnetGroupName(Aws::String&& value) { m_subnetGroupNameHasBeenSet = true; m_subnetGroupName = std::move(value); }
218 
223  inline void SetSubnetGroupName(const char* value) { m_subnetGroupNameHasBeenSet = true; m_subnetGroupName.assign(value); }
224 
229  inline CreateEndpointAccessRequest& WithSubnetGroupName(const Aws::String& value) { SetSubnetGroupName(value); return *this;}
230 
235  inline CreateEndpointAccessRequest& WithSubnetGroupName(Aws::String&& value) { SetSubnetGroupName(std::move(value)); return *this;}
236 
241  inline CreateEndpointAccessRequest& WithSubnetGroupName(const char* value) { SetSubnetGroupName(value); return *this;}
242 
243 
248  inline const Aws::Vector<Aws::String>& GetVpcSecurityGroupIds() const{ return m_vpcSecurityGroupIds; }
249 
254  inline bool VpcSecurityGroupIdsHasBeenSet() const { return m_vpcSecurityGroupIdsHasBeenSet; }
255 
260  inline void SetVpcSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = value; }
261 
266  inline void SetVpcSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = std::move(value); }
267 
272  inline CreateEndpointAccessRequest& WithVpcSecurityGroupIds(const Aws::Vector<Aws::String>& value) { SetVpcSecurityGroupIds(value); return *this;}
273 
278  inline CreateEndpointAccessRequest& WithVpcSecurityGroupIds(Aws::Vector<Aws::String>&& value) { SetVpcSecurityGroupIds(std::move(value)); return *this;}
279 
284  inline CreateEndpointAccessRequest& AddVpcSecurityGroupIds(const Aws::String& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(value); return *this; }
285 
290  inline CreateEndpointAccessRequest& AddVpcSecurityGroupIds(Aws::String&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(std::move(value)); return *this; }
291 
296  inline CreateEndpointAccessRequest& AddVpcSecurityGroupIds(const char* value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(value); return *this; }
297 
298  private:
299 
300  Aws::String m_clusterIdentifier;
301  bool m_clusterIdentifierHasBeenSet;
302 
303  Aws::String m_resourceOwner;
304  bool m_resourceOwnerHasBeenSet;
305 
306  Aws::String m_endpointName;
307  bool m_endpointNameHasBeenSet;
308 
309  Aws::String m_subnetGroupName;
310  bool m_subnetGroupNameHasBeenSet;
311 
312  Aws::Vector<Aws::String> m_vpcSecurityGroupIds;
313  bool m_vpcSecurityGroupIdsHasBeenSet;
314  };
315 
316 } // namespace Model
317 } // namespace Redshift
318 } // namespace Aws
Aws::Redshift::Model::CreateEndpointAccessRequest::WithClusterIdentifier
CreateEndpointAccessRequest & WithClusterIdentifier(Aws::String &&value)
Definition: CreateEndpointAccessRequest.h:73
Aws::Redshift::Model::CreateEndpointAccessRequest::SetSubnetGroupName
void SetSubnetGroupName(Aws::String &&value)
Definition: CreateEndpointAccessRequest.h:217
Aws::Redshift::Model::CreateEndpointAccessRequest::WithEndpointName
CreateEndpointAccessRequest & WithEndpointName(const char *value)
Definition: CreateEndpointAccessRequest.h:192
Aws::Http::URI
Definition: URI.h:32
Aws::Redshift::Model::CreateEndpointAccessRequest::SetEndpointName
void SetEndpointName(const Aws::String &value)
Definition: CreateEndpointAccessRequest.h:152
Aws::Redshift::Model::CreateEndpointAccessRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Redshift::Model::CreateEndpointAccessRequest::WithEndpointName
CreateEndpointAccessRequest & WithEndpointName(Aws::String &&value)
Definition: CreateEndpointAccessRequest.h:184
Aws::Redshift::Model::CreateEndpointAccessRequest::VpcSecurityGroupIdsHasBeenSet
bool VpcSecurityGroupIdsHasBeenSet() const
Definition: CreateEndpointAccessRequest.h:254
Aws::Redshift::Model::CreateEndpointAccessRequest::AddVpcSecurityGroupIds
CreateEndpointAccessRequest & AddVpcSecurityGroupIds(const Aws::String &value)
Definition: CreateEndpointAccessRequest.h:284
Aws::Redshift::Model::CreateEndpointAccessRequest::WithClusterIdentifier
CreateEndpointAccessRequest & WithClusterIdentifier(const char *value)
Definition: CreateEndpointAccessRequest.h:78
Aws::Redshift::Model::CreateEndpointAccessRequest::SetResourceOwner
void SetResourceOwner(const char *value)
Definition: CreateEndpointAccessRequest.h:109
Aws::Redshift::Model::CreateEndpointAccessRequest::GetVpcSecurityGroupIds
const Aws::Vector< Aws::String > & GetVpcSecurityGroupIds() const
Definition: CreateEndpointAccessRequest.h:248
Aws::Redshift::Model::CreateEndpointAccessRequest::AddVpcSecurityGroupIds
CreateEndpointAccessRequest & AddVpcSecurityGroupIds(const char *value)
Definition: CreateEndpointAccessRequest.h:296
Aws::Redshift::Model::CreateEndpointAccessRequest::WithResourceOwner
CreateEndpointAccessRequest & WithResourceOwner(Aws::String &&value)
Definition: CreateEndpointAccessRequest.h:121
Aws::Redshift::Model::CreateEndpointAccessRequest::GetEndpointName
const Aws::String & GetEndpointName() const
Definition: CreateEndpointAccessRequest.h:136
Aws::Redshift::Model::CreateEndpointAccessRequest
Definition: CreateEndpointAccessRequest.h:23
Aws::Redshift::Model::CreateEndpointAccessRequest::WithResourceOwner
CreateEndpointAccessRequest & WithResourceOwner(const Aws::String &value)
Definition: CreateEndpointAccessRequest.h:115
Aws::Redshift::Model::CreateEndpointAccessRequest::SetSubnetGroupName
void SetSubnetGroupName(const char *value)
Definition: CreateEndpointAccessRequest.h:223
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
RedshiftRequest.h
Aws::Redshift::Model::CreateEndpointAccessRequest::SetClusterIdentifier
void SetClusterIdentifier(const char *value)
Definition: CreateEndpointAccessRequest.h:63
Aws::Redshift::Model::CreateEndpointAccessRequest::ClusterIdentifierHasBeenSet
bool ClusterIdentifierHasBeenSet() const
Definition: CreateEndpointAccessRequest.h:48
Aws::Redshift::Model::CreateEndpointAccessRequest::WithSubnetGroupName
CreateEndpointAccessRequest & WithSubnetGroupName(Aws::String &&value)
Definition: CreateEndpointAccessRequest.h:235
AWSVector.h
Aws::Redshift::Model::CreateEndpointAccessRequest::SetVpcSecurityGroupIds
void SetVpcSecurityGroupIds(Aws::Vector< Aws::String > &&value)
Definition: CreateEndpointAccessRequest.h:266
Aws::Redshift::Model::CreateEndpointAccessRequest::SetEndpointName
void SetEndpointName(Aws::String &&value)
Definition: CreateEndpointAccessRequest.h:160
Aws::Redshift::Model::CreateEndpointAccessRequest::AddVpcSecurityGroupIds
CreateEndpointAccessRequest & AddVpcSecurityGroupIds(Aws::String &&value)
Definition: CreateEndpointAccessRequest.h:290
Aws::Redshift::Model::CreateEndpointAccessRequest::GetResourceOwner
const Aws::String & GetResourceOwner() const
Definition: CreateEndpointAccessRequest.h:85
Aws::Redshift::Model::CreateEndpointAccessRequest::WithVpcSecurityGroupIds
CreateEndpointAccessRequest & WithVpcSecurityGroupIds(Aws::Vector< Aws::String > &&value)
Definition: CreateEndpointAccessRequest.h:278
Aws::Redshift::Model::CreateEndpointAccessRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateEndpointAccessRequest.h:31
Aws::Redshift::Model::CreateEndpointAccessRequest::SetEndpointName
void SetEndpointName(const char *value)
Definition: CreateEndpointAccessRequest.h:168
Aws::Redshift::Model::CreateEndpointAccessRequest::WithSubnetGroupName
CreateEndpointAccessRequest & WithSubnetGroupName(const Aws::String &value)
Definition: CreateEndpointAccessRequest.h:229
Aws::Redshift::Model::CreateEndpointAccessRequest::GetSubnetGroupName
const Aws::String & GetSubnetGroupName() const
Definition: CreateEndpointAccessRequest.h:199
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::CreateEndpointAccessRequest::SubnetGroupNameHasBeenSet
bool SubnetGroupNameHasBeenSet() const
Definition: CreateEndpointAccessRequest.h:205
Aws::Redshift::Model::CreateEndpointAccessRequest::SetResourceOwner
void SetResourceOwner(const Aws::String &value)
Definition: CreateEndpointAccessRequest.h:97
Aws::Redshift::RedshiftRequest
Definition: RedshiftRequest.h:17
AWSString.h
Aws::Redshift::Model::CreateEndpointAccessRequest::WithSubnetGroupName
CreateEndpointAccessRequest & WithSubnetGroupName(const char *value)
Definition: CreateEndpointAccessRequest.h:241
Aws::Redshift::Model::CreateEndpointAccessRequest::WithVpcSecurityGroupIds
CreateEndpointAccessRequest & WithVpcSecurityGroupIds(const Aws::Vector< Aws::String > &value)
Definition: CreateEndpointAccessRequest.h:272
Aws::Redshift::Model::CreateEndpointAccessRequest::SetClusterIdentifier
void SetClusterIdentifier(Aws::String &&value)
Definition: CreateEndpointAccessRequest.h:58
Aws::Redshift::Model::CreateEndpointAccessRequest::ResourceOwnerHasBeenSet
bool ResourceOwnerHasBeenSet() const
Definition: CreateEndpointAccessRequest.h:91
Aws::Redshift::Model::CreateEndpointAccessRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Redshift::Model::CreateEndpointAccessRequest::SetVpcSecurityGroupIds
void SetVpcSecurityGroupIds(const Aws::Vector< Aws::String > &value)
Definition: CreateEndpointAccessRequest.h:260
Aws
Definition: AccessManagementClient.h:15
Aws::Redshift::Model::CreateEndpointAccessRequest::SetResourceOwner
void SetResourceOwner(Aws::String &&value)
Definition: CreateEndpointAccessRequest.h:103
Redshift_EXPORTS.h
Aws::Redshift::Model::CreateEndpointAccessRequest::CreateEndpointAccessRequest
CreateEndpointAccessRequest()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::CreateEndpointAccessRequest::WithEndpointName
CreateEndpointAccessRequest & WithEndpointName(const Aws::String &value)
Definition: CreateEndpointAccessRequest.h:176
Aws::Redshift::Model::CreateEndpointAccessRequest::SetSubnetGroupName
void SetSubnetGroupName(const Aws::String &value)
Definition: CreateEndpointAccessRequest.h:211
Aws::Redshift::Model::CreateEndpointAccessRequest::SetClusterIdentifier
void SetClusterIdentifier(const Aws::String &value)
Definition: CreateEndpointAccessRequest.h:53
Aws::Redshift::Model::CreateEndpointAccessRequest::GetClusterIdentifier
const Aws::String & GetClusterIdentifier() const
Definition: CreateEndpointAccessRequest.h:43
Aws::Redshift::Model::CreateEndpointAccessRequest::EndpointNameHasBeenSet
bool EndpointNameHasBeenSet() const
Definition: CreateEndpointAccessRequest.h:144
Aws::Redshift::Model::CreateEndpointAccessRequest::WithResourceOwner
CreateEndpointAccessRequest & WithResourceOwner(const char *value)
Definition: CreateEndpointAccessRequest.h:127
Aws::Redshift::Model::CreateEndpointAccessRequest::WithClusterIdentifier
CreateEndpointAccessRequest & WithClusterIdentifier(const Aws::String &value)
Definition: CreateEndpointAccessRequest.h:68