AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeMacHostsRequest.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 DescribeMacHostsRequest() = 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 "DescribeMacHosts"; }
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
44 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
45 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
46 template <typename FiltersT = Aws::Vector<Filter>>
47 void SetFilters(FiltersT&& value) {
48 m_filtersHasBeenSet = true;
49 m_filters = std::forward<FiltersT>(value);
50 }
51 template <typename FiltersT = Aws::Vector<Filter>>
53 SetFilters(std::forward<FiltersT>(value));
54 return *this;
55 }
56 template <typename FiltersT = Filter>
58 m_filtersHasBeenSet = true;
59 m_filters.emplace_back(std::forward<FiltersT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::Vector<Aws::String>& GetHostIds() const { return m_hostIds; }
69 inline bool HostIdsHasBeenSet() const { return m_hostIdsHasBeenSet; }
70 template <typename HostIdsT = Aws::Vector<Aws::String>>
71 void SetHostIds(HostIdsT&& value) {
72 m_hostIdsHasBeenSet = true;
73 m_hostIds = std::forward<HostIdsT>(value);
74 }
75 template <typename HostIdsT = Aws::Vector<Aws::String>>
77 SetHostIds(std::forward<HostIdsT>(value));
78 return *this;
79 }
80 template <typename HostIdsT = Aws::String>
82 m_hostIdsHasBeenSet = true;
83 m_hostIds.emplace_back(std::forward<HostIdsT>(value));
84 return *this;
85 }
87
89
96 inline int GetMaxResults() const { return m_maxResults; }
97 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
98 inline void SetMaxResults(int value) {
99 m_maxResultsHasBeenSet = true;
100 m_maxResults = value;
101 }
103 SetMaxResults(value);
104 return *this;
105 }
107
109
112 inline const Aws::String& GetNextToken() const { return m_nextToken; }
113 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
114 template <typename NextTokenT = Aws::String>
115 void SetNextToken(NextTokenT&& value) {
116 m_nextTokenHasBeenSet = true;
117 m_nextToken = std::forward<NextTokenT>(value);
118 }
119 template <typename NextTokenT = Aws::String>
121 SetNextToken(std::forward<NextTokenT>(value));
122 return *this;
123 }
125 private:
126 Aws::Vector<Filter> m_filters;
127
128 Aws::Vector<Aws::String> m_hostIds;
129
130 int m_maxResults{0};
131
132 Aws::String m_nextToken;
133 bool m_filtersHasBeenSet = false;
134 bool m_hostIdsHasBeenSet = false;
135 bool m_maxResultsHasBeenSet = false;
136 bool m_nextTokenHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace EC2
141} // namespace Aws
const Aws::Vector< Filter > & GetFilters() const
DescribeMacHostsRequest & WithHostIds(HostIdsT &&value)
DescribeMacHostsRequest & WithFilters(FiltersT &&value)
AWS_EC2_API DescribeMacHostsRequest()=default
virtual const char * GetServiceRequestName() const override
AWS_EC2_API Aws::String SerializePayload() const override
DescribeMacHostsRequest & AddFilters(FiltersT &&value)
const Aws::Vector< Aws::String > & GetHostIds() const
DescribeMacHostsRequest & AddHostIds(HostIdsT &&value)
DescribeMacHostsRequest & WithNextToken(NextTokenT &&value)
DescribeMacHostsRequest & WithMaxResults(int value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector