AWS SDK for C++  1.8.7
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
DeleteVpcEndpointsRequest & WithDryRun(bool value)
void SetVpcEndpointIds(Aws::Vector< Aws::String > &&value)
DeleteVpcEndpointsRequest & AddVpcEndpointIds(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
DeleteVpcEndpointsRequest & WithVpcEndpointIds(Aws::Vector< Aws::String > &&value)
void SetVpcEndpointIds(const Aws::Vector< Aws::String > &value)
virtual const char * GetServiceRequestName() const override
DeleteVpcEndpointsRequest & AddVpcEndpointIds(const char *value)
DeleteVpcEndpointsRequest & AddVpcEndpointIds(Aws::String &&value)
const Aws::Vector< Aws::String > & GetVpcEndpointIds() const
DeleteVpcEndpointsRequest & WithVpcEndpointIds(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28