AWS SDK for C++

AWS SDK for C++ Version 1.11.714

Loading...
Searching...
No Matches
CreateEndpointAccessRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/redshift/RedshiftRequest.h>
10#include <aws/redshift/Redshift_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Redshift {
16namespace Model {
17
21 public:
22 AWS_REDSHIFT_API CreateEndpointAccessRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreateEndpointAccess"; }
29
30 AWS_REDSHIFT_API Aws::String SerializePayload() const override;
31
32 protected:
33 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
34
35 public:
37
40 inline const Aws::String& GetClusterIdentifier() const { return m_clusterIdentifier; }
41 inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
42 template <typename ClusterIdentifierT = Aws::String>
43 void SetClusterIdentifier(ClusterIdentifierT&& value) {
44 m_clusterIdentifierHasBeenSet = true;
45 m_clusterIdentifier = std::forward<ClusterIdentifierT>(value);
46 }
47 template <typename ClusterIdentifierT = Aws::String>
49 SetClusterIdentifier(std::forward<ClusterIdentifierT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetResourceOwner() const { return m_resourceOwner; }
60 inline bool ResourceOwnerHasBeenSet() const { return m_resourceOwnerHasBeenSet; }
61 template <typename ResourceOwnerT = Aws::String>
62 void SetResourceOwner(ResourceOwnerT&& value) {
63 m_resourceOwnerHasBeenSet = true;
64 m_resourceOwner = std::forward<ResourceOwnerT>(value);
65 }
66 template <typename ResourceOwnerT = Aws::String>
68 SetResourceOwner(std::forward<ResourceOwnerT>(value));
69 return *this;
70 }
72
74
80 inline const Aws::String& GetEndpointName() const { return m_endpointName; }
81 inline bool EndpointNameHasBeenSet() const { return m_endpointNameHasBeenSet; }
82 template <typename EndpointNameT = Aws::String>
83 void SetEndpointName(EndpointNameT&& value) {
84 m_endpointNameHasBeenSet = true;
85 m_endpointName = std::forward<EndpointNameT>(value);
86 }
87 template <typename EndpointNameT = Aws::String>
89 SetEndpointName(std::forward<EndpointNameT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::String& GetSubnetGroupName() const { return m_subnetGroupName; }
100 inline bool SubnetGroupNameHasBeenSet() const { return m_subnetGroupNameHasBeenSet; }
101 template <typename SubnetGroupNameT = Aws::String>
102 void SetSubnetGroupName(SubnetGroupNameT&& value) {
103 m_subnetGroupNameHasBeenSet = true;
104 m_subnetGroupName = std::forward<SubnetGroupNameT>(value);
105 }
106 template <typename SubnetGroupNameT = Aws::String>
108 SetSubnetGroupName(std::forward<SubnetGroupNameT>(value));
109 return *this;
110 }
112
114
118 inline const Aws::Vector<Aws::String>& GetVpcSecurityGroupIds() const { return m_vpcSecurityGroupIds; }
119 inline bool VpcSecurityGroupIdsHasBeenSet() const { return m_vpcSecurityGroupIdsHasBeenSet; }
120 template <typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
121 void SetVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) {
122 m_vpcSecurityGroupIdsHasBeenSet = true;
123 m_vpcSecurityGroupIds = std::forward<VpcSecurityGroupIdsT>(value);
124 }
125 template <typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
127 SetVpcSecurityGroupIds(std::forward<VpcSecurityGroupIdsT>(value));
128 return *this;
129 }
130 template <typename VpcSecurityGroupIdsT = Aws::String>
132 m_vpcSecurityGroupIdsHasBeenSet = true;
133 m_vpcSecurityGroupIds.emplace_back(std::forward<VpcSecurityGroupIdsT>(value));
134 return *this;
135 }
137 private:
138 Aws::String m_clusterIdentifier;
139
140 Aws::String m_resourceOwner;
141
142 Aws::String m_endpointName;
143
144 Aws::String m_subnetGroupName;
145
146 Aws::Vector<Aws::String> m_vpcSecurityGroupIds;
147 bool m_clusterIdentifierHasBeenSet = false;
148 bool m_resourceOwnerHasBeenSet = false;
149 bool m_endpointNameHasBeenSet = false;
150 bool m_subnetGroupNameHasBeenSet = false;
151 bool m_vpcSecurityGroupIdsHasBeenSet = false;
152};
153
154} // namespace Model
155} // namespace Redshift
156} // namespace Aws
CreateEndpointAccessRequest & WithResourceOwner(ResourceOwnerT &&value)
virtual const char * GetServiceRequestName() const override
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateEndpointAccessRequest & WithVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
CreateEndpointAccessRequest & WithSubnetGroupName(SubnetGroupNameT &&value)
AWS_REDSHIFT_API CreateEndpointAccessRequest()=default
const Aws::Vector< Aws::String > & GetVpcSecurityGroupIds() const
AWS_REDSHIFT_API Aws::String SerializePayload() const override
CreateEndpointAccessRequest & WithClusterIdentifier(ClusterIdentifierT &&value)
CreateEndpointAccessRequest & WithEndpointName(EndpointNameT &&value)
CreateEndpointAccessRequest & AddVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector