AWS SDK for C++  1.9.71
AWS SDK for C++
ModifyVpcEndpointServicePermissionsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace EC2
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 "ModifyVpcEndpointServicePermissions"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
46  inline bool GetDryRun() const{ return m_dryRun; }
47 
54  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
55 
62  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
63 
70  inline ModifyVpcEndpointServicePermissionsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
71 
72 
76  inline const Aws::String& GetServiceId() const{ return m_serviceId; }
77 
81  inline bool ServiceIdHasBeenSet() const { return m_serviceIdHasBeenSet; }
82 
86  inline void SetServiceId(const Aws::String& value) { m_serviceIdHasBeenSet = true; m_serviceId = value; }
87 
91  inline void SetServiceId(Aws::String&& value) { m_serviceIdHasBeenSet = true; m_serviceId = std::move(value); }
92 
96  inline void SetServiceId(const char* value) { m_serviceIdHasBeenSet = true; m_serviceId.assign(value); }
97 
101  inline ModifyVpcEndpointServicePermissionsRequest& WithServiceId(const Aws::String& value) { SetServiceId(value); return *this;}
102 
106  inline ModifyVpcEndpointServicePermissionsRequest& WithServiceId(Aws::String&& value) { SetServiceId(std::move(value)); return *this;}
107 
111  inline ModifyVpcEndpointServicePermissionsRequest& WithServiceId(const char* value) { SetServiceId(value); return *this;}
112 
113 
119  inline const Aws::Vector<Aws::String>& GetAddAllowedPrincipals() const{ return m_addAllowedPrincipals; }
120 
126  inline bool AddAllowedPrincipalsHasBeenSet() const { return m_addAllowedPrincipalsHasBeenSet; }
127 
133  inline void SetAddAllowedPrincipals(const Aws::Vector<Aws::String>& value) { m_addAllowedPrincipalsHasBeenSet = true; m_addAllowedPrincipals = value; }
134 
140  inline void SetAddAllowedPrincipals(Aws::Vector<Aws::String>&& value) { m_addAllowedPrincipalsHasBeenSet = true; m_addAllowedPrincipals = std::move(value); }
141 
147  inline ModifyVpcEndpointServicePermissionsRequest& WithAddAllowedPrincipals(const Aws::Vector<Aws::String>& value) { SetAddAllowedPrincipals(value); return *this;}
148 
154  inline ModifyVpcEndpointServicePermissionsRequest& WithAddAllowedPrincipals(Aws::Vector<Aws::String>&& value) { SetAddAllowedPrincipals(std::move(value)); return *this;}
155 
161  inline ModifyVpcEndpointServicePermissionsRequest& AddAddAllowedPrincipals(const Aws::String& value) { m_addAllowedPrincipalsHasBeenSet = true; m_addAllowedPrincipals.push_back(value); return *this; }
162 
168  inline ModifyVpcEndpointServicePermissionsRequest& AddAddAllowedPrincipals(Aws::String&& value) { m_addAllowedPrincipalsHasBeenSet = true; m_addAllowedPrincipals.push_back(std::move(value)); return *this; }
169 
175  inline ModifyVpcEndpointServicePermissionsRequest& AddAddAllowedPrincipals(const char* value) { m_addAllowedPrincipalsHasBeenSet = true; m_addAllowedPrincipals.push_back(value); return *this; }
176 
177 
182  inline const Aws::Vector<Aws::String>& GetRemoveAllowedPrincipals() const{ return m_removeAllowedPrincipals; }
183 
188  inline bool RemoveAllowedPrincipalsHasBeenSet() const { return m_removeAllowedPrincipalsHasBeenSet; }
189 
194  inline void SetRemoveAllowedPrincipals(const Aws::Vector<Aws::String>& value) { m_removeAllowedPrincipalsHasBeenSet = true; m_removeAllowedPrincipals = value; }
195 
200  inline void SetRemoveAllowedPrincipals(Aws::Vector<Aws::String>&& value) { m_removeAllowedPrincipalsHasBeenSet = true; m_removeAllowedPrincipals = std::move(value); }
201 
206  inline ModifyVpcEndpointServicePermissionsRequest& WithRemoveAllowedPrincipals(const Aws::Vector<Aws::String>& value) { SetRemoveAllowedPrincipals(value); return *this;}
207 
212  inline ModifyVpcEndpointServicePermissionsRequest& WithRemoveAllowedPrincipals(Aws::Vector<Aws::String>&& value) { SetRemoveAllowedPrincipals(std::move(value)); return *this;}
213 
218  inline ModifyVpcEndpointServicePermissionsRequest& AddRemoveAllowedPrincipals(const Aws::String& value) { m_removeAllowedPrincipalsHasBeenSet = true; m_removeAllowedPrincipals.push_back(value); return *this; }
219 
224  inline ModifyVpcEndpointServicePermissionsRequest& AddRemoveAllowedPrincipals(Aws::String&& value) { m_removeAllowedPrincipalsHasBeenSet = true; m_removeAllowedPrincipals.push_back(std::move(value)); return *this; }
225 
230  inline ModifyVpcEndpointServicePermissionsRequest& AddRemoveAllowedPrincipals(const char* value) { m_removeAllowedPrincipalsHasBeenSet = true; m_removeAllowedPrincipals.push_back(value); return *this; }
231 
232  private:
233 
234  bool m_dryRun;
235  bool m_dryRunHasBeenSet;
236 
237  Aws::String m_serviceId;
238  bool m_serviceIdHasBeenSet;
239 
240  Aws::Vector<Aws::String> m_addAllowedPrincipals;
241  bool m_addAllowedPrincipalsHasBeenSet;
242 
243  Aws::Vector<Aws::String> m_removeAllowedPrincipals;
244  bool m_removeAllowedPrincipalsHasBeenSet;
245  };
246 
247 } // namespace Model
248 } // namespace EC2
249 } // namespace Aws
Aws::EC2::Model::ModifyVpcEndpointServicePermissionsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::ModifyVpcEndpointServicePermissionsRequest::ServiceIdHasBeenSet
bool ServiceIdHasBeenSet() const
Definition: ModifyVpcEndpointServicePermissionsRequest.h:81
Aws::EC2::Model::ModifyVpcEndpointServicePermissionsRequest::AddAddAllowedPrincipals
ModifyVpcEndpointServicePermissionsRequest & AddAddAllowedPrincipals(const char *value)
Definition: ModifyVpcEndpointServicePermissionsRequest.h:175
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::ModifyVpcEndpointServicePermissionsRequest::WithRemoveAllowedPrincipals
ModifyVpcEndpointServicePermissionsRequest & WithRemoveAllowedPrincipals(Aws::Vector< Aws::String > &&value)
Definition: ModifyVpcEndpointServicePermissionsRequest.h:212
Aws::EC2::Model::ModifyVpcEndpointServicePermissionsRequest::WithServiceId
ModifyVpcEndpointServicePermissionsRequest & WithServiceId(const char *value)
Definition: ModifyVpcEndpointServicePermissionsRequest.h:111
Aws::EC2::Model::ModifyVpcEndpointServicePermissionsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::ModifyVpcEndpointServicePermissionsRequest::SetServiceId
void SetServiceId(Aws::String &&value)
Definition: ModifyVpcEndpointServicePermissionsRequest.h:91
Aws::EC2::Model::ModifyVpcEndpointServicePermissionsRequest::WithServiceId
ModifyVpcEndpointServicePermissionsRequest & WithServiceId(const Aws::String &value)
Definition: ModifyVpcEndpointServicePermissionsRequest.h:101
Aws::EC2::Model::ModifyVpcEndpointServicePermissionsRequest::WithDryRun
ModifyVpcEndpointServicePermissionsRequest & WithDryRun(bool value)
Definition: ModifyVpcEndpointServicePermissionsRequest.h:70
Aws::EC2::Model::ModifyVpcEndpointServicePermissionsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ModifyVpcEndpointServicePermissionsRequest.h:31
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ModifyVpcEndpointServicePermissionsRequest::AddAddAllowedPrincipals
ModifyVpcEndpointServicePermissionsRequest & AddAddAllowedPrincipals(const Aws::String &value)
Definition: ModifyVpcEndpointServicePermissionsRequest.h:161
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::EC2::Model::ModifyVpcEndpointServicePermissionsRequest::SetAddAllowedPrincipals
void SetAddAllowedPrincipals(const Aws::Vector< Aws::String > &value)
Definition: ModifyVpcEndpointServicePermissionsRequest.h:133
Aws::EC2::Model::ModifyVpcEndpointServicePermissionsRequest::AddRemoveAllowedPrincipals
ModifyVpcEndpointServicePermissionsRequest & AddRemoveAllowedPrincipals(Aws::String &&value)
Definition: ModifyVpcEndpointServicePermissionsRequest.h:224
Aws::EC2::Model::ModifyVpcEndpointServicePermissionsRequest::RemoveAllowedPrincipalsHasBeenSet
bool RemoveAllowedPrincipalsHasBeenSet() const
Definition: ModifyVpcEndpointServicePermissionsRequest.h:188
Aws::EC2::Model::ModifyVpcEndpointServicePermissionsRequest
Definition: ModifyVpcEndpointServicePermissionsRequest.h:23
Aws::EC2::Model::ModifyVpcEndpointServicePermissionsRequest::SetRemoveAllowedPrincipals
void SetRemoveAllowedPrincipals(const Aws::Vector< Aws::String > &value)
Definition: ModifyVpcEndpointServicePermissionsRequest.h:194
Aws::EC2::Model::ModifyVpcEndpointServicePermissionsRequest::GetDryRun
bool GetDryRun() const
Definition: ModifyVpcEndpointServicePermissionsRequest.h:46
EC2Request.h
Aws::EC2::Model::ModifyVpcEndpointServicePermissionsRequest::SetAddAllowedPrincipals
void SetAddAllowedPrincipals(Aws::Vector< Aws::String > &&value)
Definition: ModifyVpcEndpointServicePermissionsRequest.h:140
Aws::EC2::Model::ModifyVpcEndpointServicePermissionsRequest::WithRemoveAllowedPrincipals
ModifyVpcEndpointServicePermissionsRequest & WithRemoveAllowedPrincipals(const Aws::Vector< Aws::String > &value)
Definition: ModifyVpcEndpointServicePermissionsRequest.h:206
Aws::EC2::Model::ModifyVpcEndpointServicePermissionsRequest::WithAddAllowedPrincipals
ModifyVpcEndpointServicePermissionsRequest & WithAddAllowedPrincipals(const Aws::Vector< Aws::String > &value)
Definition: ModifyVpcEndpointServicePermissionsRequest.h:147
AWSString.h
Aws::EC2::Model::ModifyVpcEndpointServicePermissionsRequest::AddAllowedPrincipalsHasBeenSet
bool AddAllowedPrincipalsHasBeenSet() const
Definition: ModifyVpcEndpointServicePermissionsRequest.h:126
Aws::EC2::Model::ModifyVpcEndpointServicePermissionsRequest::SetDryRun
void SetDryRun(bool value)
Definition: ModifyVpcEndpointServicePermissionsRequest.h:62
Aws::EC2::Model::ModifyVpcEndpointServicePermissionsRequest::WithServiceId
ModifyVpcEndpointServicePermissionsRequest & WithServiceId(Aws::String &&value)
Definition: ModifyVpcEndpointServicePermissionsRequest.h:106
Aws::EC2::Model::ModifyVpcEndpointServicePermissionsRequest::ModifyVpcEndpointServicePermissionsRequest
ModifyVpcEndpointServicePermissionsRequest()
Aws::EC2::Model::ModifyVpcEndpointServicePermissionsRequest::WithAddAllowedPrincipals
ModifyVpcEndpointServicePermissionsRequest & WithAddAllowedPrincipals(Aws::Vector< Aws::String > &&value)
Definition: ModifyVpcEndpointServicePermissionsRequest.h:154
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ModifyVpcEndpointServicePermissionsRequest::SetServiceId
void SetServiceId(const char *value)
Definition: ModifyVpcEndpointServicePermissionsRequest.h:96
Aws::EC2::Model::ModifyVpcEndpointServicePermissionsRequest::AddRemoveAllowedPrincipals
ModifyVpcEndpointServicePermissionsRequest & AddRemoveAllowedPrincipals(const Aws::String &value)
Definition: ModifyVpcEndpointServicePermissionsRequest.h:218
Aws::EC2::Model::ModifyVpcEndpointServicePermissionsRequest::AddAddAllowedPrincipals
ModifyVpcEndpointServicePermissionsRequest & AddAddAllowedPrincipals(Aws::String &&value)
Definition: ModifyVpcEndpointServicePermissionsRequest.h:168
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::ModifyVpcEndpointServicePermissionsRequest::SetRemoveAllowedPrincipals
void SetRemoveAllowedPrincipals(Aws::Vector< Aws::String > &&value)
Definition: ModifyVpcEndpointServicePermissionsRequest.h:200
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::ModifyVpcEndpointServicePermissionsRequest::AddRemoveAllowedPrincipals
ModifyVpcEndpointServicePermissionsRequest & AddRemoveAllowedPrincipals(const char *value)
Definition: ModifyVpcEndpointServicePermissionsRequest.h:230
Aws::EC2::Model::ModifyVpcEndpointServicePermissionsRequest::GetServiceId
const Aws::String & GetServiceId() const
Definition: ModifyVpcEndpointServicePermissionsRequest.h:76
Aws::EC2::Model::ModifyVpcEndpointServicePermissionsRequest::GetAddAllowedPrincipals
const Aws::Vector< Aws::String > & GetAddAllowedPrincipals() const
Definition: ModifyVpcEndpointServicePermissionsRequest.h:119
Aws::EC2::Model::ModifyVpcEndpointServicePermissionsRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: ModifyVpcEndpointServicePermissionsRequest.h:54
EC2_EXPORTS.h
Aws::EC2::Model::ModifyVpcEndpointServicePermissionsRequest::GetRemoveAllowedPrincipals
const Aws::Vector< Aws::String > & GetRemoveAllowedPrincipals() const
Definition: ModifyVpcEndpointServicePermissionsRequest.h:182
Aws::EC2::Model::ModifyVpcEndpointServicePermissionsRequest::SetServiceId
void SetServiceId(const Aws::String &value)
Definition: ModifyVpcEndpointServicePermissionsRequest.h:86