AWS SDK for C++  1.8.56
AWS SDK for C++
DescribeVpnConnectionsRequest.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>
10 #include <aws/ec2/model/Filter.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace EC2
17 {
18 namespace Model
19 {
20 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "DescribeVpnConnections"; }
37 
38  Aws::String SerializePayload() const override;
39 
40  protected:
41  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42 
43  public:
44 
73  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
74 
103  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
104 
133  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
134 
163  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
164 
193  inline DescribeVpnConnectionsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
194 
223  inline DescribeVpnConnectionsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
224 
253  inline DescribeVpnConnectionsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
254 
283  inline DescribeVpnConnectionsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
284 
285 
290  inline const Aws::Vector<Aws::String>& GetVpnConnectionIds() const{ return m_vpnConnectionIds; }
291 
296  inline bool VpnConnectionIdsHasBeenSet() const { return m_vpnConnectionIdsHasBeenSet; }
297 
302  inline void SetVpnConnectionIds(const Aws::Vector<Aws::String>& value) { m_vpnConnectionIdsHasBeenSet = true; m_vpnConnectionIds = value; }
303 
308  inline void SetVpnConnectionIds(Aws::Vector<Aws::String>&& value) { m_vpnConnectionIdsHasBeenSet = true; m_vpnConnectionIds = std::move(value); }
309 
314  inline DescribeVpnConnectionsRequest& WithVpnConnectionIds(const Aws::Vector<Aws::String>& value) { SetVpnConnectionIds(value); return *this;}
315 
320  inline DescribeVpnConnectionsRequest& WithVpnConnectionIds(Aws::Vector<Aws::String>&& value) { SetVpnConnectionIds(std::move(value)); return *this;}
321 
326  inline DescribeVpnConnectionsRequest& AddVpnConnectionIds(const Aws::String& value) { m_vpnConnectionIdsHasBeenSet = true; m_vpnConnectionIds.push_back(value); return *this; }
327 
332  inline DescribeVpnConnectionsRequest& AddVpnConnectionIds(Aws::String&& value) { m_vpnConnectionIdsHasBeenSet = true; m_vpnConnectionIds.push_back(std::move(value)); return *this; }
333 
338  inline DescribeVpnConnectionsRequest& AddVpnConnectionIds(const char* value) { m_vpnConnectionIdsHasBeenSet = true; m_vpnConnectionIds.push_back(value); return *this; }
339 
340 
347  inline bool GetDryRun() const{ return m_dryRun; }
348 
355  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
356 
363  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
364 
371  inline DescribeVpnConnectionsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
372 
373  private:
374 
375  Aws::Vector<Filter> m_filters;
376  bool m_filtersHasBeenSet;
377 
378  Aws::Vector<Aws::String> m_vpnConnectionIds;
379  bool m_vpnConnectionIdsHasBeenSet;
380 
381  bool m_dryRun;
382  bool m_dryRunHasBeenSet;
383  };
384 
385 } // namespace Model
386 } // namespace EC2
387 } // namespace Aws
DescribeVpnConnectionsRequest & WithVpnConnectionIds(Aws::Vector< Aws::String > &&value)
DescribeVpnConnectionsRequest & WithDryRun(bool value)
virtual const char * GetServiceRequestName() const override
DescribeVpnConnectionsRequest & WithFilters(Aws::Vector< Filter > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
void SetFilters(const Aws::Vector< Filter > &value)
void SetVpnConnectionIds(Aws::Vector< Aws::String > &&value)
void SetVpnConnectionIds(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetVpnConnectionIds() const
DescribeVpnConnectionsRequest & AddVpnConnectionIds(Aws::String &&value)
DescribeVpnConnectionsRequest & AddVpnConnectionIds(const Aws::String &value)
DescribeVpnConnectionsRequest & AddFilters(Filter &&value)
DescribeVpnConnectionsRequest & AddVpnConnectionIds(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeVpnConnectionsRequest & WithFilters(const Aws::Vector< Filter > &value)
DescribeVpnConnectionsRequest & WithVpnConnectionIds(const Aws::Vector< Aws::String > &value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
DescribeVpnConnectionsRequest & AddFilters(const Filter &value)