AWS SDK for C++  1.9.16
AWS SDK for C++
DeleteVpcEndpointsRequest.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 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "DeleteVpcEndpoints"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  protected:
39  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40 
41  public:
42 
49  inline bool GetDryRun() const{ return m_dryRun; }
50 
57  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
58 
65  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
66 
73  inline DeleteVpcEndpointsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
74 
75 
79  inline const Aws::Vector<Aws::String>& GetVpcEndpointIds() const{ return m_vpcEndpointIds; }
80 
84  inline bool VpcEndpointIdsHasBeenSet() const { return m_vpcEndpointIdsHasBeenSet; }
85 
89  inline void SetVpcEndpointIds(const Aws::Vector<Aws::String>& value) { m_vpcEndpointIdsHasBeenSet = true; m_vpcEndpointIds = value; }
90 
94  inline void SetVpcEndpointIds(Aws::Vector<Aws::String>&& value) { m_vpcEndpointIdsHasBeenSet = true; m_vpcEndpointIds = std::move(value); }
95 
99  inline DeleteVpcEndpointsRequest& WithVpcEndpointIds(const Aws::Vector<Aws::String>& value) { SetVpcEndpointIds(value); return *this;}
100 
104  inline DeleteVpcEndpointsRequest& WithVpcEndpointIds(Aws::Vector<Aws::String>&& value) { SetVpcEndpointIds(std::move(value)); return *this;}
105 
109  inline DeleteVpcEndpointsRequest& AddVpcEndpointIds(const Aws::String& value) { m_vpcEndpointIdsHasBeenSet = true; m_vpcEndpointIds.push_back(value); return *this; }
110 
114  inline DeleteVpcEndpointsRequest& AddVpcEndpointIds(Aws::String&& value) { m_vpcEndpointIdsHasBeenSet = true; m_vpcEndpointIds.push_back(std::move(value)); return *this; }
115 
119  inline DeleteVpcEndpointsRequest& AddVpcEndpointIds(const char* value) { m_vpcEndpointIdsHasBeenSet = true; m_vpcEndpointIds.push_back(value); return *this; }
120 
121  private:
122 
123  bool m_dryRun;
124  bool m_dryRunHasBeenSet;
125 
126  Aws::Vector<Aws::String> m_vpcEndpointIds;
127  bool m_vpcEndpointIdsHasBeenSet;
128  };
129 
130 } // namespace Model
131 } // namespace EC2
132 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DeleteVpcEndpointsRequest::SetVpcEndpointIds
void SetVpcEndpointIds(Aws::Vector< Aws::String > &&value)
Definition: DeleteVpcEndpointsRequest.h:94
Aws::EC2::Model::DeleteVpcEndpointsRequest::AddVpcEndpointIds
DeleteVpcEndpointsRequest & AddVpcEndpointIds(const char *value)
Definition: DeleteVpcEndpointsRequest.h:119
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DeleteVpcEndpointsRequest::WithVpcEndpointIds
DeleteVpcEndpointsRequest & WithVpcEndpointIds(const Aws::Vector< Aws::String > &value)
Definition: DeleteVpcEndpointsRequest.h:99
AWSVector.h
Aws::EC2::Model::DeleteVpcEndpointsRequest::GetVpcEndpointIds
const Aws::Vector< Aws::String > & GetVpcEndpointIds() const
Definition: DeleteVpcEndpointsRequest.h:79
Aws::EC2::Model::DeleteVpcEndpointsRequest::WithVpcEndpointIds
DeleteVpcEndpointsRequest & WithVpcEndpointIds(Aws::Vector< Aws::String > &&value)
Definition: DeleteVpcEndpointsRequest.h:104
EC2Request.h
Aws::EC2::Model::DeleteVpcEndpointsRequest
Definition: DeleteVpcEndpointsRequest.h:26
Aws::EC2::Model::DeleteVpcEndpointsRequest::AddVpcEndpointIds
DeleteVpcEndpointsRequest & AddVpcEndpointIds(Aws::String &&value)
Definition: DeleteVpcEndpointsRequest.h:114
Aws::EC2::Model::DeleteVpcEndpointsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWSString.h
Aws::EC2::Model::DeleteVpcEndpointsRequest::DeleteVpcEndpointsRequest
DeleteVpcEndpointsRequest()
Aws::EC2::Model::DeleteVpcEndpointsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DeleteVpcEndpointsRequest::VpcEndpointIdsHasBeenSet
bool VpcEndpointIdsHasBeenSet() const
Definition: DeleteVpcEndpointsRequest.h:84
Aws::EC2::Model::DeleteVpcEndpointsRequest::WithDryRun
DeleteVpcEndpointsRequest & WithDryRun(bool value)
Definition: DeleteVpcEndpointsRequest.h:73
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DeleteVpcEndpointsRequest::SetDryRun
void SetDryRun(bool value)
Definition: DeleteVpcEndpointsRequest.h:65
Aws::EC2::Model::DeleteVpcEndpointsRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DeleteVpcEndpointsRequest.h:57
Aws::EC2::Model::DeleteVpcEndpointsRequest::SetVpcEndpointIds
void SetVpcEndpointIds(const Aws::Vector< Aws::String > &value)
Definition: DeleteVpcEndpointsRequest.h:89
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DeleteVpcEndpointsRequest::AddVpcEndpointIds
DeleteVpcEndpointsRequest & AddVpcEndpointIds(const Aws::String &value)
Definition: DeleteVpcEndpointsRequest.h:109
Aws::EC2::Model::DeleteVpcEndpointsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteVpcEndpointsRequest.h:34
EC2_EXPORTS.h
Aws::EC2::Model::DeleteVpcEndpointsRequest::GetDryRun
bool GetDryRun() const
Definition: DeleteVpcEndpointsRequest.h:49