AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeVpnConnectionsRequest.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 "DescribeVpnConnections"; }
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
74 inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
75 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
76 inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
77 inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
78 inline DescribeVpnConnectionsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
79 inline DescribeVpnConnectionsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
80 inline DescribeVpnConnectionsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
81 inline DescribeVpnConnectionsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
83
85
89 inline const Aws::Vector<Aws::String>& GetVpnConnectionIds() const{ return m_vpnConnectionIds; }
90 inline bool VpnConnectionIdsHasBeenSet() const { return m_vpnConnectionIdsHasBeenSet; }
91 inline void SetVpnConnectionIds(const Aws::Vector<Aws::String>& value) { m_vpnConnectionIdsHasBeenSet = true; m_vpnConnectionIds = value; }
92 inline void SetVpnConnectionIds(Aws::Vector<Aws::String>&& value) { m_vpnConnectionIdsHasBeenSet = true; m_vpnConnectionIds = std::move(value); }
95 inline DescribeVpnConnectionsRequest& AddVpnConnectionIds(const Aws::String& value) { m_vpnConnectionIdsHasBeenSet = true; m_vpnConnectionIds.push_back(value); return *this; }
96 inline DescribeVpnConnectionsRequest& AddVpnConnectionIds(Aws::String&& value) { m_vpnConnectionIdsHasBeenSet = true; m_vpnConnectionIds.push_back(std::move(value)); return *this; }
97 inline DescribeVpnConnectionsRequest& AddVpnConnectionIds(const char* value) { m_vpnConnectionIdsHasBeenSet = true; m_vpnConnectionIds.push_back(value); return *this; }
99
101
107 inline bool GetDryRun() const{ return m_dryRun; }
108 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
109 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
110 inline DescribeVpnConnectionsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
112 private:
113
114 Aws::Vector<Filter> m_filters;
115 bool m_filtersHasBeenSet = false;
116
117 Aws::Vector<Aws::String> m_vpnConnectionIds;
118 bool m_vpnConnectionIdsHasBeenSet = false;
119
120 bool m_dryRun;
121 bool m_dryRunHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace EC2
126} // namespace Aws
DescribeVpnConnectionsRequest & WithDryRun(bool value)
DescribeVpnConnectionsRequest & WithFilters(const Aws::Vector< Filter > &value)
void SetVpnConnectionIds(Aws::Vector< Aws::String > &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const Aws::Vector< Aws::String > & GetVpnConnectionIds() const
DescribeVpnConnectionsRequest & AddVpnConnectionIds(Aws::String &&value)
DescribeVpnConnectionsRequest & AddFilters(Filter &&value)
DescribeVpnConnectionsRequest & WithFilters(Aws::Vector< Filter > &&value)
void SetVpnConnectionIds(const Aws::Vector< Aws::String > &value)
AWS_EC2_API Aws::String SerializePayload() const override
DescribeVpnConnectionsRequest & WithVpnConnectionIds(Aws::Vector< Aws::String > &&value)
DescribeVpnConnectionsRequest & AddVpnConnectionIds(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
void SetFilters(const Aws::Vector< Filter > &value)
DescribeVpnConnectionsRequest & AddVpnConnectionIds(const char *value)
DescribeVpnConnectionsRequest & AddFilters(const Filter &value)
DescribeVpnConnectionsRequest & WithVpnConnectionIds(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector