AWS SDK for C++  1.9.65
AWS SDK for C++
DescribeDhcpOptionsRequest.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 "DescribeDhcpOptions"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
45  inline const Aws::Vector<Aws::String>& GetDhcpOptionsIds() const{ return m_dhcpOptionsIds; }
46 
51  inline bool DhcpOptionsIdsHasBeenSet() const { return m_dhcpOptionsIdsHasBeenSet; }
52 
57  inline void SetDhcpOptionsIds(const Aws::Vector<Aws::String>& value) { m_dhcpOptionsIdsHasBeenSet = true; m_dhcpOptionsIds = value; }
58 
63  inline void SetDhcpOptionsIds(Aws::Vector<Aws::String>&& value) { m_dhcpOptionsIdsHasBeenSet = true; m_dhcpOptionsIds = std::move(value); }
64 
69  inline DescribeDhcpOptionsRequest& WithDhcpOptionsIds(const Aws::Vector<Aws::String>& value) { SetDhcpOptionsIds(value); return *this;}
70 
75  inline DescribeDhcpOptionsRequest& WithDhcpOptionsIds(Aws::Vector<Aws::String>&& value) { SetDhcpOptionsIds(std::move(value)); return *this;}
76 
81  inline DescribeDhcpOptionsRequest& AddDhcpOptionsIds(const Aws::String& value) { m_dhcpOptionsIdsHasBeenSet = true; m_dhcpOptionsIds.push_back(value); return *this; }
82 
87  inline DescribeDhcpOptionsRequest& AddDhcpOptionsIds(Aws::String&& value) { m_dhcpOptionsIdsHasBeenSet = true; m_dhcpOptionsIds.push_back(std::move(value)); return *this; }
88 
93  inline DescribeDhcpOptionsRequest& AddDhcpOptionsIds(const char* value) { m_dhcpOptionsIdsHasBeenSet = true; m_dhcpOptionsIds.push_back(value); return *this; }
94 
95 
111  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
112 
128  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
129 
145  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
146 
162  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
163 
179  inline DescribeDhcpOptionsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
180 
196  inline DescribeDhcpOptionsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
197 
213  inline DescribeDhcpOptionsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
214 
230  inline DescribeDhcpOptionsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
231 
232 
239  inline bool GetDryRun() const{ return m_dryRun; }
240 
247  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
248 
255  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
256 
263  inline DescribeDhcpOptionsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
264 
265 
269  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
270 
274  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
275 
279  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
280 
284  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
285 
289  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
290 
294  inline DescribeDhcpOptionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
295 
299  inline DescribeDhcpOptionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
300 
304  inline DescribeDhcpOptionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
305 
306 
312  inline int GetMaxResults() const{ return m_maxResults; }
313 
319  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
320 
326  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
327 
333  inline DescribeDhcpOptionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
334 
335  private:
336 
337  Aws::Vector<Aws::String> m_dhcpOptionsIds;
338  bool m_dhcpOptionsIdsHasBeenSet;
339 
340  Aws::Vector<Filter> m_filters;
341  bool m_filtersHasBeenSet;
342 
343  bool m_dryRun;
344  bool m_dryRunHasBeenSet;
345 
346  Aws::String m_nextToken;
347  bool m_nextTokenHasBeenSet;
348 
349  int m_maxResults;
350  bool m_maxResultsHasBeenSet;
351  };
352 
353 } // namespace Model
354 } // namespace EC2
355 } // namespace Aws
Aws::EC2::Model::DescribeDhcpOptionsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeDhcpOptionsRequest.h:284
Aws::EC2::Model::DescribeDhcpOptionsRequest::WithFilters
DescribeDhcpOptionsRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeDhcpOptionsRequest.h:196
Aws::EC2::Model::DescribeDhcpOptionsRequest::WithNextToken
DescribeDhcpOptionsRequest & WithNextToken(const char *value)
Definition: DescribeDhcpOptionsRequest.h:304
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeDhcpOptionsRequest::GetDhcpOptionsIds
const Aws::Vector< Aws::String > & GetDhcpOptionsIds() const
Definition: DescribeDhcpOptionsRequest.h:45
Aws::EC2::Model::DescribeDhcpOptionsRequest::WithMaxResults
DescribeDhcpOptionsRequest & WithMaxResults(int value)
Definition: DescribeDhcpOptionsRequest.h:333
Aws::EC2::Model::DescribeDhcpOptionsRequest::WithDryRun
DescribeDhcpOptionsRequest & WithDryRun(bool value)
Definition: DescribeDhcpOptionsRequest.h:263
Aws::EC2::Model::DescribeDhcpOptionsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeDhcpOptionsRequest.h:289
Aws::EC2::Model::DescribeDhcpOptionsRequest::AddDhcpOptionsIds
DescribeDhcpOptionsRequest & AddDhcpOptionsIds(const char *value)
Definition: DescribeDhcpOptionsRequest.h:93
Aws::EC2::Model::DescribeDhcpOptionsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeDhcpOptionsRequest.h:274
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeDhcpOptionsRequest::DescribeDhcpOptionsRequest
DescribeDhcpOptionsRequest()
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::EC2::Model::DescribeDhcpOptionsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeDhcpOptionsRequest.h:319
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeDhcpOptionsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeDhcpOptionsRequest.h:326
Aws::EC2::Model::DescribeDhcpOptionsRequest::WithNextToken
DescribeDhcpOptionsRequest & WithNextToken(Aws::String &&value)
Definition: DescribeDhcpOptionsRequest.h:299
AWSVector.h
Filter.h
Aws::EC2::Model::DescribeDhcpOptionsRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeDhcpOptionsRequest.h:162
Aws::EC2::Model::DescribeDhcpOptionsRequest
Definition: DescribeDhcpOptionsRequest.h:24
Aws::EC2::Model::DescribeDhcpOptionsRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeDhcpOptionsRequest.h:312
Aws::EC2::Model::DescribeDhcpOptionsRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeDhcpOptionsRequest.h:247
Aws::EC2::Model::DescribeDhcpOptionsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeDhcpOptionsRequest.h:279
Aws::EC2::Model::DescribeDhcpOptionsRequest::AddFilters
DescribeDhcpOptionsRequest & AddFilters(const Filter &value)
Definition: DescribeDhcpOptionsRequest.h:213
Aws::EC2::Model::DescribeDhcpOptionsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeDhcpOptionsRequest.h:269
EC2Request.h
AWSString.h
Aws::EC2::Model::DescribeDhcpOptionsRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeDhcpOptionsRequest.h:128
Aws::EC2::Model::DescribeDhcpOptionsRequest::WithNextToken
DescribeDhcpOptionsRequest & WithNextToken(const Aws::String &value)
Definition: DescribeDhcpOptionsRequest.h:294
Aws::EC2::Model::DescribeDhcpOptionsRequest::SetDhcpOptionsIds
void SetDhcpOptionsIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeDhcpOptionsRequest.h:57
Aws::EC2::Model::DescribeDhcpOptionsRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeDhcpOptionsRequest.h:145
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeDhcpOptionsRequest::AddDhcpOptionsIds
DescribeDhcpOptionsRequest & AddDhcpOptionsIds(Aws::String &&value)
Definition: DescribeDhcpOptionsRequest.h:87
Aws::EC2::Model::DescribeDhcpOptionsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribeDhcpOptionsRequest::DhcpOptionsIdsHasBeenSet
bool DhcpOptionsIdsHasBeenSet() const
Definition: DescribeDhcpOptionsRequest.h:51
Aws::EC2::Model::DescribeDhcpOptionsRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeDhcpOptionsRequest.h:255
Aws::EC2::Model::DescribeDhcpOptionsRequest::WithFilters
DescribeDhcpOptionsRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeDhcpOptionsRequest.h:179
Aws::EC2::Model::DescribeDhcpOptionsRequest::AddDhcpOptionsIds
DescribeDhcpOptionsRequest & AddDhcpOptionsIds(const Aws::String &value)
Definition: DescribeDhcpOptionsRequest.h:81
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DescribeDhcpOptionsRequest::SetDhcpOptionsIds
void SetDhcpOptionsIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeDhcpOptionsRequest.h:63
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DescribeDhcpOptionsRequest::AddFilters
DescribeDhcpOptionsRequest & AddFilters(Filter &&value)
Definition: DescribeDhcpOptionsRequest.h:230
Aws::EC2::Model::DescribeDhcpOptionsRequest::WithDhcpOptionsIds
DescribeDhcpOptionsRequest & WithDhcpOptionsIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeDhcpOptionsRequest.h:69
Aws::EC2::Model::DescribeDhcpOptionsRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeDhcpOptionsRequest.h:111
Aws::EC2::Model::DescribeDhcpOptionsRequest::WithDhcpOptionsIds
DescribeDhcpOptionsRequest & WithDhcpOptionsIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeDhcpOptionsRequest.h:75
EC2_EXPORTS.h
Aws::EC2::Model::DescribeDhcpOptionsRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeDhcpOptionsRequest.h:239
Aws::EC2::Model::DescribeDhcpOptionsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeDhcpOptionsRequest.h:32
Aws::EC2::Model::DescribeDhcpOptionsRequest::SerializePayload
Aws::String SerializePayload() const override