AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateEndpointAccessRequest.h
1
6#pragma once
7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/redshift/RedshiftRequest.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 Redshift
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_REDSHIFT_API CreateEndpointAccessRequest() = default;
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_REDSHIFT_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37
38 public:
39
41
44 inline const Aws::String& GetClusterIdentifier() const { return m_clusterIdentifier; }
45 inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
46 template<typename ClusterIdentifierT = Aws::String>
47 void SetClusterIdentifier(ClusterIdentifierT&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::forward<ClusterIdentifierT>(value); }
48 template<typename ClusterIdentifierT = Aws::String>
49 CreateEndpointAccessRequest& WithClusterIdentifier(ClusterIdentifierT&& value) { SetClusterIdentifier(std::forward<ClusterIdentifierT>(value)); return *this;}
51
53
57 inline const Aws::String& GetResourceOwner() const { return m_resourceOwner; }
58 inline bool ResourceOwnerHasBeenSet() const { return m_resourceOwnerHasBeenSet; }
59 template<typename ResourceOwnerT = Aws::String>
60 void SetResourceOwner(ResourceOwnerT&& value) { m_resourceOwnerHasBeenSet = true; m_resourceOwner = std::forward<ResourceOwnerT>(value); }
61 template<typename ResourceOwnerT = Aws::String>
62 CreateEndpointAccessRequest& WithResourceOwner(ResourceOwnerT&& value) { SetResourceOwner(std::forward<ResourceOwnerT>(value)); return *this;}
64
66
72 inline const Aws::String& GetEndpointName() const { return m_endpointName; }
73 inline bool EndpointNameHasBeenSet() const { return m_endpointNameHasBeenSet; }
74 template<typename EndpointNameT = Aws::String>
75 void SetEndpointName(EndpointNameT&& value) { m_endpointNameHasBeenSet = true; m_endpointName = std::forward<EndpointNameT>(value); }
76 template<typename EndpointNameT = Aws::String>
77 CreateEndpointAccessRequest& WithEndpointName(EndpointNameT&& value) { SetEndpointName(std::forward<EndpointNameT>(value)); return *this;}
79
81
85 inline const Aws::String& GetSubnetGroupName() const { return m_subnetGroupName; }
86 inline bool SubnetGroupNameHasBeenSet() const { return m_subnetGroupNameHasBeenSet; }
87 template<typename SubnetGroupNameT = Aws::String>
88 void SetSubnetGroupName(SubnetGroupNameT&& value) { m_subnetGroupNameHasBeenSet = true; m_subnetGroupName = std::forward<SubnetGroupNameT>(value); }
89 template<typename SubnetGroupNameT = Aws::String>
90 CreateEndpointAccessRequest& WithSubnetGroupName(SubnetGroupNameT&& value) { SetSubnetGroupName(std::forward<SubnetGroupNameT>(value)); return *this;}
92
94
98 inline const Aws::Vector<Aws::String>& GetVpcSecurityGroupIds() const { return m_vpcSecurityGroupIds; }
99 inline bool VpcSecurityGroupIdsHasBeenSet() const { return m_vpcSecurityGroupIdsHasBeenSet; }
100 template<typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
101 void SetVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = std::forward<VpcSecurityGroupIdsT>(value); }
102 template<typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
103 CreateEndpointAccessRequest& WithVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { SetVpcSecurityGroupIds(std::forward<VpcSecurityGroupIdsT>(value)); return *this;}
104 template<typename VpcSecurityGroupIdsT = Aws::String>
105 CreateEndpointAccessRequest& AddVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.emplace_back(std::forward<VpcSecurityGroupIdsT>(value)); return *this; }
107 private:
108
109 Aws::String m_clusterIdentifier;
110 bool m_clusterIdentifierHasBeenSet = false;
111
112 Aws::String m_resourceOwner;
113 bool m_resourceOwnerHasBeenSet = false;
114
115 Aws::String m_endpointName;
116 bool m_endpointNameHasBeenSet = false;
117
118 Aws::String m_subnetGroupName;
119 bool m_subnetGroupNameHasBeenSet = false;
120
121 Aws::Vector<Aws::String> m_vpcSecurityGroupIds;
122 bool m_vpcSecurityGroupIdsHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace Redshift
127} // 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