AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeCustomerGatewaysRequest.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/core/utils/memory/stl/AWSString.h>
11#include <aws/ec2/model/Filter.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EC2
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_EC2_API DescribeCustomerGatewaysRequest() = default;
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 "DescribeCustomerGateways"; }
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
50 inline const Aws::Vector<Aws::String>& GetCustomerGatewayIds() const { return m_customerGatewayIds; }
51 inline bool CustomerGatewayIdsHasBeenSet() const { return m_customerGatewayIdsHasBeenSet; }
52 template<typename CustomerGatewayIdsT = Aws::Vector<Aws::String>>
53 void SetCustomerGatewayIds(CustomerGatewayIdsT&& value) { m_customerGatewayIdsHasBeenSet = true; m_customerGatewayIds = std::forward<CustomerGatewayIdsT>(value); }
54 template<typename CustomerGatewayIdsT = Aws::Vector<Aws::String>>
55 DescribeCustomerGatewaysRequest& WithCustomerGatewayIds(CustomerGatewayIdsT&& value) { SetCustomerGatewayIds(std::forward<CustomerGatewayIdsT>(value)); return *this;}
56 template<typename CustomerGatewayIdsT = Aws::String>
57 DescribeCustomerGatewaysRequest& AddCustomerGatewayIds(CustomerGatewayIdsT&& value) { m_customerGatewayIdsHasBeenSet = true; m_customerGatewayIds.emplace_back(std::forward<CustomerGatewayIdsT>(value)); return *this; }
59
61
80 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
81 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
82 template<typename FiltersT = Aws::Vector<Filter>>
83 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
84 template<typename FiltersT = Aws::Vector<Filter>>
85 DescribeCustomerGatewaysRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
86 template<typename FiltersT = Filter>
87 DescribeCustomerGatewaysRequest& AddFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters.emplace_back(std::forward<FiltersT>(value)); return *this; }
89
91
97 inline bool GetDryRun() const { return m_dryRun; }
98 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
99 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
100 inline DescribeCustomerGatewaysRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
102 private:
103
104 Aws::Vector<Aws::String> m_customerGatewayIds;
105 bool m_customerGatewayIdsHasBeenSet = false;
106
107 Aws::Vector<Filter> m_filters;
108 bool m_filtersHasBeenSet = false;
109
110 bool m_dryRun{false};
111 bool m_dryRunHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace EC2
116} // namespace Aws
DescribeCustomerGatewaysRequest & AddFilters(FiltersT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeCustomerGatewaysRequest & AddCustomerGatewayIds(CustomerGatewayIdsT &&value)
DescribeCustomerGatewaysRequest & WithFilters(FiltersT &&value)
DescribeCustomerGatewaysRequest & WithDryRun(bool value)
const Aws::Vector< Aws::String > & GetCustomerGatewayIds() const
DescribeCustomerGatewaysRequest & WithCustomerGatewayIds(CustomerGatewayIdsT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector