AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeDhcpOptionsRequest.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 DescribeDhcpOptionsRequest() = 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 "DescribeDhcpOptions"; }
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>& GetDhcpOptionsIds() const { return m_dhcpOptionsIds; }
42 inline bool DhcpOptionsIdsHasBeenSet() const { return m_dhcpOptionsIdsHasBeenSet; }
43 template <typename DhcpOptionsIdsT = Aws::Vector<Aws::String>>
44 void SetDhcpOptionsIds(DhcpOptionsIdsT&& value) {
45 m_dhcpOptionsIdsHasBeenSet = true;
46 m_dhcpOptionsIds = std::forward<DhcpOptionsIdsT>(value);
47 }
48 template <typename DhcpOptionsIdsT = Aws::Vector<Aws::String>>
50 SetDhcpOptionsIds(std::forward<DhcpOptionsIdsT>(value));
51 return *this;
52 }
53 template <typename DhcpOptionsIdsT = Aws::String>
55 m_dhcpOptionsIdsHasBeenSet = true;
56 m_dhcpOptionsIds.emplace_back(std::forward<DhcpOptionsIdsT>(value));
57 return *this;
58 }
60
62
66 inline const Aws::String& GetNextToken() const { return m_nextToken; }
67 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
68 template <typename NextTokenT = Aws::String>
69 void SetNextToken(NextTokenT&& value) {
70 m_nextTokenHasBeenSet = true;
71 m_nextToken = std::forward<NextTokenT>(value);
72 }
73 template <typename NextTokenT = Aws::String>
75 SetNextToken(std::forward<NextTokenT>(value));
76 return *this;
77 }
79
81
87 inline int GetMaxResults() const { return m_maxResults; }
88 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
89 inline void SetMaxResults(int value) {
90 m_maxResultsHasBeenSet = true;
91 m_maxResults = value;
92 }
94 SetMaxResults(value);
95 return *this;
96 }
98
100
106 inline bool GetDryRun() const { return m_dryRun; }
107 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
108 inline void SetDryRun(bool value) {
109 m_dryRunHasBeenSet = true;
110 m_dryRun = value;
111 }
113 SetDryRun(value);
114 return *this;
115 }
117
119
135 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
136 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
137 template <typename FiltersT = Aws::Vector<Filter>>
138 void SetFilters(FiltersT&& value) {
139 m_filtersHasBeenSet = true;
140 m_filters = std::forward<FiltersT>(value);
141 }
142 template <typename FiltersT = Aws::Vector<Filter>>
144 SetFilters(std::forward<FiltersT>(value));
145 return *this;
146 }
147 template <typename FiltersT = Filter>
149 m_filtersHasBeenSet = true;
150 m_filters.emplace_back(std::forward<FiltersT>(value));
151 return *this;
152 }
154 private:
155 Aws::Vector<Aws::String> m_dhcpOptionsIds;
156
157 Aws::String m_nextToken;
158
159 int m_maxResults{0};
160
161 bool m_dryRun{false};
162
163 Aws::Vector<Filter> m_filters;
164 bool m_dhcpOptionsIdsHasBeenSet = false;
165 bool m_nextTokenHasBeenSet = false;
166 bool m_maxResultsHasBeenSet = false;
167 bool m_dryRunHasBeenSet = false;
168 bool m_filtersHasBeenSet = false;
169};
170
171} // namespace Model
172} // namespace EC2
173} // namespace Aws
DescribeDhcpOptionsRequest & AddDhcpOptionsIds(DhcpOptionsIdsT &&value)
DescribeDhcpOptionsRequest & AddFilters(FiltersT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Aws::String > & GetDhcpOptionsIds() const
DescribeDhcpOptionsRequest & WithNextToken(NextTokenT &&value)
DescribeDhcpOptionsRequest & WithDryRun(bool value)
DescribeDhcpOptionsRequest & WithFilters(FiltersT &&value)
DescribeDhcpOptionsRequest & WithMaxResults(int value)
AWS_EC2_API DescribeDhcpOptionsRequest()=default
AWS_EC2_API Aws::String SerializePayload() const override
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const Aws::Vector< Filter > & GetFilters() const
DescribeDhcpOptionsRequest & WithDhcpOptionsIds(DhcpOptionsIdsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector