AWS SDK for C++  1.9.104
AWS SDK for C++
RevokeEndpointAccessRequest.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 "RevokeEndpointAccess"; }
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 RevokeEndpointAccessRequest& WithClusterIdentifier(const Aws::String& value) { SetClusterIdentifier(value); return *this;}
69 
73  inline RevokeEndpointAccessRequest& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(std::move(value)); return *this;}
74 
78  inline RevokeEndpointAccessRequest& 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 RevokeEndpointAccessRequest& WithAccount(const Aws::String& value) { SetAccount(value); return *this;}
110 
114  inline RevokeEndpointAccessRequest& WithAccount(Aws::String&& value) { SetAccount(std::move(value)); return *this;}
115 
119  inline RevokeEndpointAccessRequest& WithAccount(const char* value) { SetAccount(value); return *this;}
120 
121 
126  inline const Aws::Vector<Aws::String>& GetVpcIds() const{ return m_vpcIds; }
127 
132  inline bool VpcIdsHasBeenSet() const { return m_vpcIdsHasBeenSet; }
133 
138  inline void SetVpcIds(const Aws::Vector<Aws::String>& value) { m_vpcIdsHasBeenSet = true; m_vpcIds = value; }
139 
144  inline void SetVpcIds(Aws::Vector<Aws::String>&& value) { m_vpcIdsHasBeenSet = true; m_vpcIds = std::move(value); }
145 
150  inline RevokeEndpointAccessRequest& WithVpcIds(const Aws::Vector<Aws::String>& value) { SetVpcIds(value); return *this;}
151 
156  inline RevokeEndpointAccessRequest& WithVpcIds(Aws::Vector<Aws::String>&& value) { SetVpcIds(std::move(value)); return *this;}
157 
162  inline RevokeEndpointAccessRequest& AddVpcIds(const Aws::String& value) { m_vpcIdsHasBeenSet = true; m_vpcIds.push_back(value); return *this; }
163 
168  inline RevokeEndpointAccessRequest& AddVpcIds(Aws::String&& value) { m_vpcIdsHasBeenSet = true; m_vpcIds.push_back(std::move(value)); return *this; }
169 
174  inline RevokeEndpointAccessRequest& AddVpcIds(const char* value) { m_vpcIdsHasBeenSet = true; m_vpcIds.push_back(value); return *this; }
175 
176 
181  inline bool GetForce() const{ return m_force; }
182 
187  inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; }
188 
193  inline void SetForce(bool value) { m_forceHasBeenSet = true; m_force = value; }
194 
199  inline RevokeEndpointAccessRequest& WithForce(bool value) { SetForce(value); return *this;}
200 
201  private:
202 
203  Aws::String m_clusterIdentifier;
204  bool m_clusterIdentifierHasBeenSet;
205 
206  Aws::String m_account;
207  bool m_accountHasBeenSet;
208 
209  Aws::Vector<Aws::String> m_vpcIds;
210  bool m_vpcIdsHasBeenSet;
211 
212  bool m_force;
213  bool m_forceHasBeenSet;
214  };
215 
216 } // namespace Model
217 } // namespace Redshift
218 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::Redshift::Model::RevokeEndpointAccessRequest::SetAccount
void SetAccount(const Aws::String &value)
Definition: RevokeEndpointAccessRequest.h:94
Aws::Redshift::Model::RevokeEndpointAccessRequest::WithForce
RevokeEndpointAccessRequest & WithForce(bool value)
Definition: RevokeEndpointAccessRequest.h:199
Aws::Redshift::Model::RevokeEndpointAccessRequest::GetVpcIds
const Aws::Vector< Aws::String > & GetVpcIds() const
Definition: RevokeEndpointAccessRequest.h:126
Aws::Redshift::Model::RevokeEndpointAccessRequest::ForceHasBeenSet
bool ForceHasBeenSet() const
Definition: RevokeEndpointAccessRequest.h:187
Aws::Redshift::Model::RevokeEndpointAccessRequest::RevokeEndpointAccessRequest
RevokeEndpointAccessRequest()
Aws::Redshift::Model::RevokeEndpointAccessRequest::WithClusterIdentifier
RevokeEndpointAccessRequest & WithClusterIdentifier(const char *value)
Definition: RevokeEndpointAccessRequest.h:78
Aws::Redshift::Model::RevokeEndpointAccessRequest::AddVpcIds
RevokeEndpointAccessRequest & AddVpcIds(const Aws::String &value)
Definition: RevokeEndpointAccessRequest.h:162
Aws::Redshift::Model::RevokeEndpointAccessRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: RevokeEndpointAccessRequest.h:31
Aws::Redshift::Model::RevokeEndpointAccessRequest::WithAccount
RevokeEndpointAccessRequest & WithAccount(Aws::String &&value)
Definition: RevokeEndpointAccessRequest.h:114
Aws::Redshift::Model::RevokeEndpointAccessRequest::SetClusterIdentifier
void SetClusterIdentifier(const char *value)
Definition: RevokeEndpointAccessRequest.h:63
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
RedshiftRequest.h
Aws::Redshift::Model::RevokeEndpointAccessRequest::SetForce
void SetForce(bool value)
Definition: RevokeEndpointAccessRequest.h:193
AWSVector.h
Aws::Redshift::Model::RevokeEndpointAccessRequest::AddVpcIds
RevokeEndpointAccessRequest & AddVpcIds(Aws::String &&value)
Definition: RevokeEndpointAccessRequest.h:168
Aws::Redshift::Model::RevokeEndpointAccessRequest::SetAccount
void SetAccount(Aws::String &&value)
Definition: RevokeEndpointAccessRequest.h:99
Aws::Redshift::Model::RevokeEndpointAccessRequest::WithAccount
RevokeEndpointAccessRequest & WithAccount(const Aws::String &value)
Definition: RevokeEndpointAccessRequest.h:109
Aws::Redshift::Model::RevokeEndpointAccessRequest::WithClusterIdentifier
RevokeEndpointAccessRequest & WithClusterIdentifier(const Aws::String &value)
Definition: RevokeEndpointAccessRequest.h:68
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::RevokeEndpointAccessRequest
Definition: RevokeEndpointAccessRequest.h:23
Aws::Redshift::Model::RevokeEndpointAccessRequest::ClusterIdentifierHasBeenSet
bool ClusterIdentifierHasBeenSet() const
Definition: RevokeEndpointAccessRequest.h:48
Aws::Redshift::RedshiftRequest
Definition: RedshiftRequest.h:17
Aws::Redshift::Model::RevokeEndpointAccessRequest::GetAccount
const Aws::String & GetAccount() const
Definition: RevokeEndpointAccessRequest.h:84
AWSString.h
Aws::Redshift::Model::RevokeEndpointAccessRequest::SetVpcIds
void SetVpcIds(const Aws::Vector< Aws::String > &value)
Definition: RevokeEndpointAccessRequest.h:138
Aws::Redshift::Model::RevokeEndpointAccessRequest::SetClusterIdentifier
void SetClusterIdentifier(const Aws::String &value)
Definition: RevokeEndpointAccessRequest.h:53
Aws::Redshift::Model::RevokeEndpointAccessRequest::WithAccount
RevokeEndpointAccessRequest & WithAccount(const char *value)
Definition: RevokeEndpointAccessRequest.h:119
Aws::Redshift::Model::RevokeEndpointAccessRequest::WithVpcIds
RevokeEndpointAccessRequest & WithVpcIds(const Aws::Vector< Aws::String > &value)
Definition: RevokeEndpointAccessRequest.h:150
Aws::Redshift::Model::RevokeEndpointAccessRequest::WithVpcIds
RevokeEndpointAccessRequest & WithVpcIds(Aws::Vector< Aws::String > &&value)
Definition: RevokeEndpointAccessRequest.h:156
Aws::Redshift::Model::RevokeEndpointAccessRequest::AddVpcIds
RevokeEndpointAccessRequest & AddVpcIds(const char *value)
Definition: RevokeEndpointAccessRequest.h:174
Aws
Definition: AccessManagementClient.h:15
Redshift_EXPORTS.h
Aws::Redshift::Model::RevokeEndpointAccessRequest::GetForce
bool GetForce() const
Definition: RevokeEndpointAccessRequest.h:181
Aws::Redshift::Model::RevokeEndpointAccessRequest::AccountHasBeenSet
bool AccountHasBeenSet() const
Definition: RevokeEndpointAccessRequest.h:89
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::RevokeEndpointAccessRequest::SetClusterIdentifier
void SetClusterIdentifier(Aws::String &&value)
Definition: RevokeEndpointAccessRequest.h:58
Aws::Redshift::Model::RevokeEndpointAccessRequest::VpcIdsHasBeenSet
bool VpcIdsHasBeenSet() const
Definition: RevokeEndpointAccessRequest.h:132
Aws::Redshift::Model::RevokeEndpointAccessRequest::WithClusterIdentifier
RevokeEndpointAccessRequest & WithClusterIdentifier(Aws::String &&value)
Definition: RevokeEndpointAccessRequest.h:73
Aws::Redshift::Model::RevokeEndpointAccessRequest::SetAccount
void SetAccount(const char *value)
Definition: RevokeEndpointAccessRequest.h:104
Aws::Redshift::Model::RevokeEndpointAccessRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Redshift::Model::RevokeEndpointAccessRequest::SetVpcIds
void SetVpcIds(Aws::Vector< Aws::String > &&value)
Definition: RevokeEndpointAccessRequest.h:144
Aws::Redshift::Model::RevokeEndpointAccessRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Redshift::Model::RevokeEndpointAccessRequest::GetClusterIdentifier
const Aws::String & GetClusterIdentifier() const
Definition: RevokeEndpointAccessRequest.h:43