AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeCarrierGatewaysRequest.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
22 public:
23 AWS_EC2_API DescribeCarrierGatewaysRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "DescribeCarrierGateways"; }
30
31 AWS_EC2_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
41 inline const Aws::Vector<Aws::String>& GetCarrierGatewayIds() const { return m_carrierGatewayIds; }
42 inline bool CarrierGatewayIdsHasBeenSet() const { return m_carrierGatewayIdsHasBeenSet; }
43 template <typename CarrierGatewayIdsT = Aws::Vector<Aws::String>>
44 void SetCarrierGatewayIds(CarrierGatewayIdsT&& value) {
45 m_carrierGatewayIdsHasBeenSet = true;
46 m_carrierGatewayIds = std::forward<CarrierGatewayIdsT>(value);
47 }
48 template <typename CarrierGatewayIdsT = Aws::Vector<Aws::String>>
50 SetCarrierGatewayIds(std::forward<CarrierGatewayIdsT>(value));
51 return *this;
52 }
53 template <typename CarrierGatewayIdsT = Aws::String>
55 m_carrierGatewayIdsHasBeenSet = true;
56 m_carrierGatewayIds.emplace_back(std::forward<CarrierGatewayIdsT>(value));
57 return *this;
58 }
60
62
79 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
80 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
81 template <typename FiltersT = Aws::Vector<Filter>>
82 void SetFilters(FiltersT&& value) {
83 m_filtersHasBeenSet = true;
84 m_filters = std::forward<FiltersT>(value);
85 }
86 template <typename FiltersT = Aws::Vector<Filter>>
88 SetFilters(std::forward<FiltersT>(value));
89 return *this;
90 }
91 template <typename FiltersT = Filter>
93 m_filtersHasBeenSet = true;
94 m_filters.emplace_back(std::forward<FiltersT>(value));
95 return *this;
96 }
98
100
105 inline int GetMaxResults() const { return m_maxResults; }
106 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
107 inline void SetMaxResults(int value) {
108 m_maxResultsHasBeenSet = true;
109 m_maxResults = value;
110 }
112 SetMaxResults(value);
113 return *this;
114 }
116
118
121 inline const Aws::String& GetNextToken() const { return m_nextToken; }
122 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
123 template <typename NextTokenT = Aws::String>
124 void SetNextToken(NextTokenT&& value) {
125 m_nextTokenHasBeenSet = true;
126 m_nextToken = std::forward<NextTokenT>(value);
127 }
128 template <typename NextTokenT = Aws::String>
130 SetNextToken(std::forward<NextTokenT>(value));
131 return *this;
132 }
134
136
142 inline bool GetDryRun() const { return m_dryRun; }
143 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
144 inline void SetDryRun(bool value) {
145 m_dryRunHasBeenSet = true;
146 m_dryRun = value;
147 }
149 SetDryRun(value);
150 return *this;
151 }
153 private:
154 Aws::Vector<Aws::String> m_carrierGatewayIds;
155
156 Aws::Vector<Filter> m_filters;
157
158 int m_maxResults{0};
159
160 Aws::String m_nextToken;
161
162 bool m_dryRun{false};
163 bool m_carrierGatewayIdsHasBeenSet = false;
164 bool m_filtersHasBeenSet = false;
165 bool m_maxResultsHasBeenSet = false;
166 bool m_nextTokenHasBeenSet = false;
167 bool m_dryRunHasBeenSet = false;
168};
169
170} // namespace Model
171} // namespace EC2
172} // namespace Aws
const Aws::Vector< Aws::String > & GetCarrierGatewayIds() const
DescribeCarrierGatewaysRequest & WithDryRun(bool value)
DescribeCarrierGatewaysRequest & WithMaxResults(int value)
AWS_EC2_API Aws::String SerializePayload() const override
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeCarrierGatewaysRequest & AddCarrierGatewayIds(CarrierGatewayIdsT &&value)
virtual const char * GetServiceRequestName() const override
DescribeCarrierGatewaysRequest & WithCarrierGatewayIds(CarrierGatewayIdsT &&value)
DescribeCarrierGatewaysRequest & WithNextToken(NextTokenT &&value)
DescribeCarrierGatewaysRequest & AddFilters(FiltersT &&value)
DescribeCarrierGatewaysRequest & WithFilters(FiltersT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector