AWS SDK for C++  1.7.243
AWS SDK for C++
DeleteVpcEndpointsRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 
16 #pragma once
17 #include <aws/ec2/EC2_EXPORTS.h>
18 #include <aws/ec2/EC2Request.h>
21 #include <utility>
22 
23 namespace Aws
24 {
25 namespace EC2
26 {
27 namespace Model
28 {
29 
36  {
37  public:
39 
40  // Service request name is the Operation name which will send this request out,
41  // each operation should has unique request name, so that we can get operation's name from this request.
42  // Note: this is not true for response, multiple operations may have the same response name,
43  // so we can not get operation's name from response.
44  inline virtual const char* GetServiceRequestName() const override { return "DeleteVpcEndpoints"; }
45 
46  Aws::String SerializePayload() const override;
47 
48  protected:
49  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
50 
51  public:
52 
59  inline bool GetDryRun() const{ return m_dryRun; }
60 
67  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
68 
75  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
76 
83  inline DeleteVpcEndpointsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
84 
85 
89  inline const Aws::Vector<Aws::String>& GetVpcEndpointIds() const{ return m_vpcEndpointIds; }
90 
94  inline bool VpcEndpointIdsHasBeenSet() const { return m_vpcEndpointIdsHasBeenSet; }
95 
99  inline void SetVpcEndpointIds(const Aws::Vector<Aws::String>& value) { m_vpcEndpointIdsHasBeenSet = true; m_vpcEndpointIds = value; }
100 
104  inline void SetVpcEndpointIds(Aws::Vector<Aws::String>&& value) { m_vpcEndpointIdsHasBeenSet = true; m_vpcEndpointIds = std::move(value); }
105 
109  inline DeleteVpcEndpointsRequest& WithVpcEndpointIds(const Aws::Vector<Aws::String>& value) { SetVpcEndpointIds(value); return *this;}
110 
114  inline DeleteVpcEndpointsRequest& WithVpcEndpointIds(Aws::Vector<Aws::String>&& value) { SetVpcEndpointIds(std::move(value)); return *this;}
115 
119  inline DeleteVpcEndpointsRequest& AddVpcEndpointIds(const Aws::String& value) { m_vpcEndpointIdsHasBeenSet = true; m_vpcEndpointIds.push_back(value); return *this; }
120 
124  inline DeleteVpcEndpointsRequest& AddVpcEndpointIds(Aws::String&& value) { m_vpcEndpointIdsHasBeenSet = true; m_vpcEndpointIds.push_back(std::move(value)); return *this; }
125 
129  inline DeleteVpcEndpointsRequest& AddVpcEndpointIds(const char* value) { m_vpcEndpointIdsHasBeenSet = true; m_vpcEndpointIds.push_back(value); return *this; }
130 
131  private:
132 
133  bool m_dryRun;
134  bool m_dryRunHasBeenSet;
135 
136  Aws::Vector<Aws::String> m_vpcEndpointIds;
137  bool m_vpcEndpointIdsHasBeenSet;
138  };
139 
140 } // namespace Model
141 } // namespace EC2
142 } // 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:27
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:107
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:38