AWS SDK for C++  1.8.71
AWS SDK for C++
DescribeCarrierGatewaysRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
11 #include <aws/ec2/model/Filter.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace EC2
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "DescribeCarrierGateways"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
44  inline const Aws::Vector<Aws::String>& GetCarrierGatewayIds() const{ return m_carrierGatewayIds; }
45 
49  inline bool CarrierGatewayIdsHasBeenSet() const { return m_carrierGatewayIdsHasBeenSet; }
50 
54  inline void SetCarrierGatewayIds(const Aws::Vector<Aws::String>& value) { m_carrierGatewayIdsHasBeenSet = true; m_carrierGatewayIds = value; }
55 
59  inline void SetCarrierGatewayIds(Aws::Vector<Aws::String>&& value) { m_carrierGatewayIdsHasBeenSet = true; m_carrierGatewayIds = std::move(value); }
60 
64  inline DescribeCarrierGatewaysRequest& WithCarrierGatewayIds(const Aws::Vector<Aws::String>& value) { SetCarrierGatewayIds(value); return *this;}
65 
69  inline DescribeCarrierGatewaysRequest& WithCarrierGatewayIds(Aws::Vector<Aws::String>&& value) { SetCarrierGatewayIds(std::move(value)); return *this;}
70 
74  inline DescribeCarrierGatewaysRequest& AddCarrierGatewayIds(const Aws::String& value) { m_carrierGatewayIdsHasBeenSet = true; m_carrierGatewayIds.push_back(value); return *this; }
75 
79  inline DescribeCarrierGatewaysRequest& AddCarrierGatewayIds(Aws::String&& value) { m_carrierGatewayIdsHasBeenSet = true; m_carrierGatewayIds.push_back(std::move(value)); return *this; }
80 
84  inline DescribeCarrierGatewaysRequest& AddCarrierGatewayIds(const char* value) { m_carrierGatewayIdsHasBeenSet = true; m_carrierGatewayIds.push_back(value); return *this; }
85 
86 
104  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
105 
123  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
124 
142  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
143 
161  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
162 
180  inline DescribeCarrierGatewaysRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
181 
199  inline DescribeCarrierGatewaysRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
200 
218  inline DescribeCarrierGatewaysRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
219 
237  inline DescribeCarrierGatewaysRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
238 
239 
245  inline int GetMaxResults() const{ return m_maxResults; }
246 
252  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
253 
259  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
260 
266  inline DescribeCarrierGatewaysRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
267 
268 
272  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
273 
277  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
278 
282  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
283 
287  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
288 
292  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
293 
297  inline DescribeCarrierGatewaysRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
298 
302  inline DescribeCarrierGatewaysRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
303 
307  inline DescribeCarrierGatewaysRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
308 
309 
316  inline bool GetDryRun() const{ return m_dryRun; }
317 
324  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
325 
332  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
333 
340  inline DescribeCarrierGatewaysRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
341 
342  private:
343 
344  Aws::Vector<Aws::String> m_carrierGatewayIds;
345  bool m_carrierGatewayIdsHasBeenSet;
346 
347  Aws::Vector<Filter> m_filters;
348  bool m_filtersHasBeenSet;
349 
350  int m_maxResults;
351  bool m_maxResultsHasBeenSet;
352 
353  Aws::String m_nextToken;
354  bool m_nextTokenHasBeenSet;
355 
356  bool m_dryRun;
357  bool m_dryRunHasBeenSet;
358  };
359 
360 } // namespace Model
361 } // namespace EC2
362 } // namespace Aws
void SetCarrierGatewayIds(const Aws::Vector< Aws::String > &value)
DescribeCarrierGatewaysRequest & AddCarrierGatewayIds(Aws::String &&value)
DescribeCarrierGatewaysRequest & AddFilters(Filter &&value)
virtual const char * GetServiceRequestName() const override
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
void SetCarrierGatewayIds(Aws::Vector< Aws::String > &&value)
DescribeCarrierGatewaysRequest & WithFilters(const Aws::Vector< Filter > &value)
DescribeCarrierGatewaysRequest & WithCarrierGatewayIds(const Aws::Vector< Aws::String > &value)
DescribeCarrierGatewaysRequest & WithNextToken(const Aws::String &value)
DescribeCarrierGatewaysRequest & WithDryRun(bool value)
DescribeCarrierGatewaysRequest & WithNextToken(Aws::String &&value)
DescribeCarrierGatewaysRequest & WithMaxResults(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeCarrierGatewaysRequest & AddCarrierGatewayIds(const Aws::String &value)
DescribeCarrierGatewaysRequest & WithNextToken(const char *value)
DescribeCarrierGatewaysRequest & AddFilters(const Filter &value)
const Aws::Vector< Aws::String > & GetCarrierGatewayIds() const
DescribeCarrierGatewaysRequest & WithFilters(Aws::Vector< Filter > &&value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
DescribeCarrierGatewaysRequest & AddCarrierGatewayIds(const char *value)
DescribeCarrierGatewaysRequest & WithCarrierGatewayIds(Aws::Vector< Aws::String > &&value)