AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateEndpointAccessRequest.h
1
6#pragma once
7#include <aws/redshift-serverless/RedshiftServerless_EXPORTS.h>
8#include <aws/redshift-serverless/RedshiftServerlessRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace RedshiftServerless
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_REDSHIFTSERVERLESS_API CreateEndpointAccessRequest();
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_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override;
34
35 AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
44 inline const Aws::String& GetEndpointName() const{ return m_endpointName; }
45 inline bool EndpointNameHasBeenSet() const { return m_endpointNameHasBeenSet; }
46 inline void SetEndpointName(const Aws::String& value) { m_endpointNameHasBeenSet = true; m_endpointName = value; }
47 inline void SetEndpointName(Aws::String&& value) { m_endpointNameHasBeenSet = true; m_endpointName = std::move(value); }
48 inline void SetEndpointName(const char* value) { m_endpointNameHasBeenSet = true; m_endpointName.assign(value); }
49 inline CreateEndpointAccessRequest& WithEndpointName(const Aws::String& value) { SetEndpointName(value); return *this;}
50 inline CreateEndpointAccessRequest& WithEndpointName(Aws::String&& value) { SetEndpointName(std::move(value)); return *this;}
51 inline CreateEndpointAccessRequest& WithEndpointName(const char* value) { SetEndpointName(value); return *this;}
53
55
59 inline const Aws::String& GetOwnerAccount() const{ return m_ownerAccount; }
60 inline bool OwnerAccountHasBeenSet() const { return m_ownerAccountHasBeenSet; }
61 inline void SetOwnerAccount(const Aws::String& value) { m_ownerAccountHasBeenSet = true; m_ownerAccount = value; }
62 inline void SetOwnerAccount(Aws::String&& value) { m_ownerAccountHasBeenSet = true; m_ownerAccount = std::move(value); }
63 inline void SetOwnerAccount(const char* value) { m_ownerAccountHasBeenSet = true; m_ownerAccount.assign(value); }
64 inline CreateEndpointAccessRequest& WithOwnerAccount(const Aws::String& value) { SetOwnerAccount(value); return *this;}
65 inline CreateEndpointAccessRequest& WithOwnerAccount(Aws::String&& value) { SetOwnerAccount(std::move(value)); return *this;}
66 inline CreateEndpointAccessRequest& WithOwnerAccount(const char* value) { SetOwnerAccount(value); return *this;}
68
70
74 inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
75 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
76 inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
77 inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); }
79 inline CreateEndpointAccessRequest& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;}
80 inline CreateEndpointAccessRequest& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
81 inline CreateEndpointAccessRequest& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
82 inline CreateEndpointAccessRequest& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
84
86
91 inline const Aws::Vector<Aws::String>& GetVpcSecurityGroupIds() const{ return m_vpcSecurityGroupIds; }
92 inline bool VpcSecurityGroupIdsHasBeenSet() const { return m_vpcSecurityGroupIdsHasBeenSet; }
93 inline void SetVpcSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = value; }
94 inline void SetVpcSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = std::move(value); }
97 inline CreateEndpointAccessRequest& AddVpcSecurityGroupIds(const Aws::String& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(value); return *this; }
98 inline CreateEndpointAccessRequest& AddVpcSecurityGroupIds(Aws::String&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(std::move(value)); return *this; }
99 inline CreateEndpointAccessRequest& AddVpcSecurityGroupIds(const char* value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(value); return *this; }
101
103
106 inline const Aws::String& GetWorkgroupName() const{ return m_workgroupName; }
107 inline bool WorkgroupNameHasBeenSet() const { return m_workgroupNameHasBeenSet; }
108 inline void SetWorkgroupName(const Aws::String& value) { m_workgroupNameHasBeenSet = true; m_workgroupName = value; }
109 inline void SetWorkgroupName(Aws::String&& value) { m_workgroupNameHasBeenSet = true; m_workgroupName = std::move(value); }
110 inline void SetWorkgroupName(const char* value) { m_workgroupNameHasBeenSet = true; m_workgroupName.assign(value); }
111 inline CreateEndpointAccessRequest& WithWorkgroupName(const Aws::String& value) { SetWorkgroupName(value); return *this;}
112 inline CreateEndpointAccessRequest& WithWorkgroupName(Aws::String&& value) { SetWorkgroupName(std::move(value)); return *this;}
113 inline CreateEndpointAccessRequest& WithWorkgroupName(const char* value) { SetWorkgroupName(value); return *this;}
115 private:
116
117 Aws::String m_endpointName;
118 bool m_endpointNameHasBeenSet = false;
119
120 Aws::String m_ownerAccount;
121 bool m_ownerAccountHasBeenSet = false;
122
123 Aws::Vector<Aws::String> m_subnetIds;
124 bool m_subnetIdsHasBeenSet = false;
125
126 Aws::Vector<Aws::String> m_vpcSecurityGroupIds;
127 bool m_vpcSecurityGroupIdsHasBeenSet = false;
128
129 Aws::String m_workgroupName;
130 bool m_workgroupNameHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace RedshiftServerless
135} // namespace Aws
CreateEndpointAccessRequest & WithSubnetIds(const Aws::Vector< Aws::String > &value)
CreateEndpointAccessRequest & WithVpcSecurityGroupIds(const Aws::Vector< Aws::String > &value)
CreateEndpointAccessRequest & WithWorkgroupName(const char *value)
CreateEndpointAccessRequest & AddVpcSecurityGroupIds(Aws::String &&value)
AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override
CreateEndpointAccessRequest & WithOwnerAccount(const Aws::String &value)
AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateEndpointAccessRequest & WithEndpointName(const Aws::String &value)
CreateEndpointAccessRequest & AddVpcSecurityGroupIds(const char *value)
CreateEndpointAccessRequest & WithEndpointName(Aws::String &&value)
void SetVpcSecurityGroupIds(const Aws::Vector< Aws::String > &value)
CreateEndpointAccessRequest & WithVpcSecurityGroupIds(Aws::Vector< Aws::String > &&value)
CreateEndpointAccessRequest & WithWorkgroupName(Aws::String &&value)
CreateEndpointAccessRequest & WithOwnerAccount(Aws::String &&value)
CreateEndpointAccessRequest & WithEndpointName(const char *value)
CreateEndpointAccessRequest & WithSubnetIds(Aws::Vector< Aws::String > &&value)
CreateEndpointAccessRequest & AddSubnetIds(const char *value)
CreateEndpointAccessRequest & AddVpcSecurityGroupIds(const Aws::String &value)
CreateEndpointAccessRequest & WithWorkgroupName(const Aws::String &value)
CreateEndpointAccessRequest & WithOwnerAccount(const char *value)
CreateEndpointAccessRequest & AddSubnetIds(const Aws::String &value)
CreateEndpointAccessRequest & AddSubnetIds(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector