AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeCustomerGatewaysRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2Request.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/Filter.h>
12
13#include <utility>
14
15namespace Aws {
16namespace EC2 {
17namespace Model {
18
26 public:
27 AWS_EC2_API DescribeCustomerGatewaysRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "DescribeCustomerGateways"; }
34
35 AWS_EC2_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
39
40 public:
42
46 inline const Aws::Vector<Aws::String>& GetCustomerGatewayIds() const { return m_customerGatewayIds; }
47 inline bool CustomerGatewayIdsHasBeenSet() const { return m_customerGatewayIdsHasBeenSet; }
48 template <typename CustomerGatewayIdsT = Aws::Vector<Aws::String>>
49 void SetCustomerGatewayIds(CustomerGatewayIdsT&& value) {
50 m_customerGatewayIdsHasBeenSet = true;
51 m_customerGatewayIds = std::forward<CustomerGatewayIdsT>(value);
52 }
53 template <typename CustomerGatewayIdsT = Aws::Vector<Aws::String>>
55 SetCustomerGatewayIds(std::forward<CustomerGatewayIdsT>(value));
56 return *this;
57 }
58 template <typename CustomerGatewayIdsT = Aws::String>
60 m_customerGatewayIdsHasBeenSet = true;
61 m_customerGatewayIds.emplace_back(std::forward<CustomerGatewayIdsT>(value));
62 return *this;
63 }
65
67
86 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
87 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
88 template <typename FiltersT = Aws::Vector<Filter>>
89 void SetFilters(FiltersT&& value) {
90 m_filtersHasBeenSet = true;
91 m_filters = std::forward<FiltersT>(value);
92 }
93 template <typename FiltersT = Aws::Vector<Filter>>
95 SetFilters(std::forward<FiltersT>(value));
96 return *this;
97 }
98 template <typename FiltersT = Filter>
100 m_filtersHasBeenSet = true;
101 m_filters.emplace_back(std::forward<FiltersT>(value));
102 return *this;
103 }
105
107
113 inline bool GetDryRun() const { return m_dryRun; }
114 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
115 inline void SetDryRun(bool value) {
116 m_dryRunHasBeenSet = true;
117 m_dryRun = value;
118 }
120 SetDryRun(value);
121 return *this;
122 }
124 private:
125 Aws::Vector<Aws::String> m_customerGatewayIds;
126
127 Aws::Vector<Filter> m_filters;
128
129 bool m_dryRun{false};
130 bool m_customerGatewayIdsHasBeenSet = false;
131 bool m_filtersHasBeenSet = false;
132 bool m_dryRunHasBeenSet = false;
133};
134
135} // namespace Model
136} // namespace EC2
137} // 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