AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
AuthorizeEndpointAccessRequest.h
Go to the documentation of this file.
1
6#pragma once
11#include <utility>
12
13namespace Aws
14{
15namespace Redshift
16{
17namespace 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 "AuthorizeEndpointAccess"; }
32
34
35 protected:
36 AWS_REDSHIFT_API 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
69
73 inline AuthorizeEndpointAccessRequest& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(std::move(value)); return *this;}
74
78 inline AuthorizeEndpointAccessRequest& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;}
79
80
84 inline const Aws::String& GetAccount() const{ return m_account; }
85
89 inline bool AccountHasBeenSet() const { return m_accountHasBeenSet; }
90
94 inline void SetAccount(const Aws::String& value) { m_accountHasBeenSet = true; m_account = value; }
95
99 inline void SetAccount(Aws::String&& value) { m_accountHasBeenSet = true; m_account = std::move(value); }
100
104 inline void SetAccount(const char* value) { m_accountHasBeenSet = true; m_account.assign(value); }
105
109 inline AuthorizeEndpointAccessRequest& WithAccount(const Aws::String& value) { SetAccount(value); return *this;}
110
114 inline AuthorizeEndpointAccessRequest& WithAccount(Aws::String&& value) { SetAccount(std::move(value)); return *this;}
115
119 inline AuthorizeEndpointAccessRequest& WithAccount(const char* value) { SetAccount(value); return *this;}
120
121
125 inline const Aws::Vector<Aws::String>& GetVpcIds() const{ return m_vpcIds; }
126
130 inline bool VpcIdsHasBeenSet() const { return m_vpcIdsHasBeenSet; }
131
135 inline void SetVpcIds(const Aws::Vector<Aws::String>& value) { m_vpcIdsHasBeenSet = true; m_vpcIds = value; }
136
140 inline void SetVpcIds(Aws::Vector<Aws::String>&& value) { m_vpcIdsHasBeenSet = true; m_vpcIds = std::move(value); }
141
146
150 inline AuthorizeEndpointAccessRequest& WithVpcIds(Aws::Vector<Aws::String>&& value) { SetVpcIds(std::move(value)); return *this;}
151
155 inline AuthorizeEndpointAccessRequest& AddVpcIds(const Aws::String& value) { m_vpcIdsHasBeenSet = true; m_vpcIds.push_back(value); return *this; }
156
160 inline AuthorizeEndpointAccessRequest& AddVpcIds(Aws::String&& value) { m_vpcIdsHasBeenSet = true; m_vpcIds.push_back(std::move(value)); return *this; }
161
165 inline AuthorizeEndpointAccessRequest& AddVpcIds(const char* value) { m_vpcIdsHasBeenSet = true; m_vpcIds.push_back(value); return *this; }
166
167 private:
168
169 Aws::String m_clusterIdentifier;
170 bool m_clusterIdentifierHasBeenSet = false;
171
172 Aws::String m_account;
173 bool m_accountHasBeenSet = false;
174
176 bool m_vpcIdsHasBeenSet = false;
177 };
178
179} // namespace Model
180} // namespace Redshift
181} // namespace Aws
#define AWS_REDSHIFT_API
AuthorizeEndpointAccessRequest & WithAccount(Aws::String &&value)
AWS_REDSHIFT_API Aws::String SerializePayload() const override
void SetVpcIds(const Aws::Vector< Aws::String > &value)
AuthorizeEndpointAccessRequest & WithAccount(const char *value)
AuthorizeEndpointAccessRequest & WithVpcIds(const Aws::Vector< Aws::String > &value)
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AuthorizeEndpointAccessRequest & AddVpcIds(Aws::String &&value)
AuthorizeEndpointAccessRequest & WithClusterIdentifier(const char *value)
AuthorizeEndpointAccessRequest & WithClusterIdentifier(const Aws::String &value)
AuthorizeEndpointAccessRequest & AddVpcIds(const Aws::String &value)
AuthorizeEndpointAccessRequest & WithClusterIdentifier(Aws::String &&value)
AuthorizeEndpointAccessRequest & WithVpcIds(Aws::Vector< Aws::String > &&value)
AuthorizeEndpointAccessRequest & WithAccount(const Aws::String &value)
AuthorizeEndpointAccessRequest & AddVpcIds(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector