AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeVpnGatewaysRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/model/Filter.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EC2
17{
18namespace 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 "DescribeVpnGateways"; }
37
38 AWS_EC2_API Aws::String SerializePayload() const override;
39
40 protected:
41 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42
43 public:
44
46
69 inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
70 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
71 inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
72 inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
73 inline DescribeVpnGatewaysRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
74 inline DescribeVpnGatewaysRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
75 inline DescribeVpnGatewaysRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
76 inline DescribeVpnGatewaysRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
78
80
84 inline const Aws::Vector<Aws::String>& GetVpnGatewayIds() const{ return m_vpnGatewayIds; }
85 inline bool VpnGatewayIdsHasBeenSet() const { return m_vpnGatewayIdsHasBeenSet; }
86 inline void SetVpnGatewayIds(const Aws::Vector<Aws::String>& value) { m_vpnGatewayIdsHasBeenSet = true; m_vpnGatewayIds = value; }
87 inline void SetVpnGatewayIds(Aws::Vector<Aws::String>&& value) { m_vpnGatewayIdsHasBeenSet = true; m_vpnGatewayIds = std::move(value); }
90 inline DescribeVpnGatewaysRequest& AddVpnGatewayIds(const Aws::String& value) { m_vpnGatewayIdsHasBeenSet = true; m_vpnGatewayIds.push_back(value); return *this; }
91 inline DescribeVpnGatewaysRequest& AddVpnGatewayIds(Aws::String&& value) { m_vpnGatewayIdsHasBeenSet = true; m_vpnGatewayIds.push_back(std::move(value)); return *this; }
92 inline DescribeVpnGatewaysRequest& AddVpnGatewayIds(const char* value) { m_vpnGatewayIdsHasBeenSet = true; m_vpnGatewayIds.push_back(value); return *this; }
94
96
102 inline bool GetDryRun() const{ return m_dryRun; }
103 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
104 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
105 inline DescribeVpnGatewaysRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
107 private:
108
109 Aws::Vector<Filter> m_filters;
110 bool m_filtersHasBeenSet = false;
111
112 Aws::Vector<Aws::String> m_vpnGatewayIds;
113 bool m_vpnGatewayIdsHasBeenSet = false;
114
115 bool m_dryRun;
116 bool m_dryRunHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace EC2
121} // namespace Aws
DescribeVpnGatewaysRequest & WithVpnGatewayIds(const Aws::Vector< Aws::String > &value)
DescribeVpnGatewaysRequest & AddVpnGatewayIds(const char *value)
DescribeVpnGatewaysRequest & AddFilters(const Filter &value)
DescribeVpnGatewaysRequest & AddFilters(Filter &&value)
AWS_EC2_API Aws::String SerializePayload() const override
void SetVpnGatewayIds(const Aws::Vector< Aws::String > &value)
DescribeVpnGatewaysRequest & WithVpnGatewayIds(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetVpnGatewayIds() const
DescribeVpnGatewaysRequest & WithFilters(const Aws::Vector< Filter > &value)
DescribeVpnGatewaysRequest & WithDryRun(bool value)
virtual const char * GetServiceRequestName() const override
DescribeVpnGatewaysRequest & AddVpnGatewayIds(Aws::String &&value)
DescribeVpnGatewaysRequest & AddVpnGatewayIds(const Aws::String &value)
void SetVpnGatewayIds(Aws::Vector< Aws::String > &&value)
void SetFilters(const Aws::Vector< Filter > &value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeVpnGatewaysRequest & WithFilters(Aws::Vector< Filter > &&value)
const Aws::Vector< Filter > & GetFilters() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector