AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetCustomerGatewayIds(const Aws::Vector<Aws::String>& value) { m_customerGatewayIdsHasBeenSet = true; m_customerGatewayIds = value; }
53 inline void SetCustomerGatewayIds(Aws::Vector<Aws::String>&& value) { m_customerGatewayIdsHasBeenSet = true; m_customerGatewayIds = std::move(value); }
56 inline DescribeCustomerGatewaysRequest& AddCustomerGatewayIds(const Aws::String& value) { m_customerGatewayIdsHasBeenSet = true; m_customerGatewayIds.push_back(value); return *this; }
57 inline DescribeCustomerGatewaysRequest& AddCustomerGatewayIds(Aws::String&& value) { m_customerGatewayIdsHasBeenSet = true; m_customerGatewayIds.push_back(std::move(value)); return *this; }
58 inline DescribeCustomerGatewaysRequest& AddCustomerGatewayIds(const char* value) { m_customerGatewayIdsHasBeenSet = true; m_customerGatewayIds.push_back(value); return *this; }
60
62
81 inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
82 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
83 inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
84 inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
85 inline DescribeCustomerGatewaysRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
86 inline DescribeCustomerGatewaysRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
87 inline DescribeCustomerGatewaysRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
88 inline DescribeCustomerGatewaysRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
90
92
98 inline bool GetDryRun() const{ return m_dryRun; }
99 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
100 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
101 inline DescribeCustomerGatewaysRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
103 private:
104
105 Aws::Vector<Aws::String> m_customerGatewayIds;
106 bool m_customerGatewayIdsHasBeenSet = false;
107
108 Aws::Vector<Filter> m_filters;
109 bool m_filtersHasBeenSet = false;
110
111 bool m_dryRun;
112 bool m_dryRunHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace EC2
117} // namespace Aws
DescribeCustomerGatewaysRequest & AddFilters(const Filter &value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeCustomerGatewaysRequest & AddFilters(Filter &&value)
DescribeCustomerGatewaysRequest & AddCustomerGatewayIds(const char *value)
void SetCustomerGatewayIds(Aws::Vector< Aws::String > &&value)
DescribeCustomerGatewaysRequest & AddCustomerGatewayIds(Aws::String &&value)
void SetCustomerGatewayIds(const Aws::Vector< Aws::String > &value)
DescribeCustomerGatewaysRequest & WithFilters(const Aws::Vector< Filter > &value)
DescribeCustomerGatewaysRequest & WithDryRun(bool value)
DescribeCustomerGatewaysRequest & WithFilters(Aws::Vector< Filter > &&value)
const Aws::Vector< Aws::String > & GetCustomerGatewayIds() const
DescribeCustomerGatewaysRequest & WithCustomerGatewayIds(const Aws::Vector< Aws::String > &value)
AWS_EC2_API Aws::String SerializePayload() const override
DescribeCustomerGatewaysRequest & AddCustomerGatewayIds(const Aws::String &value)
DescribeCustomerGatewaysRequest & WithCustomerGatewayIds(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector