AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeHostsRequest.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 DescribeHostsRequest() = 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 "DescribeHosts"; }
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
42 inline const Aws::Vector<Aws::String>& GetHostIds() const { return m_hostIds; }
43 inline bool HostIdsHasBeenSet() const { return m_hostIdsHasBeenSet; }
44 template <typename HostIdsT = Aws::Vector<Aws::String>>
45 void SetHostIds(HostIdsT&& value) {
46 m_hostIdsHasBeenSet = true;
47 m_hostIds = std::forward<HostIdsT>(value);
48 }
49 template <typename HostIdsT = Aws::Vector<Aws::String>>
50 DescribeHostsRequest& WithHostIds(HostIdsT&& value) {
51 SetHostIds(std::forward<HostIdsT>(value));
52 return *this;
53 }
54 template <typename HostIdsT = Aws::String>
55 DescribeHostsRequest& AddHostIds(HostIdsT&& value) {
56 m_hostIdsHasBeenSet = true;
57 m_hostIds.emplace_back(std::forward<HostIdsT>(value));
58 return *this;
59 }
61
63
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>
74 DescribeHostsRequest& WithNextToken(NextTokenT&& value) {
75 SetNextToken(std::forward<NextTokenT>(value));
76 return *this;
77 }
79
81
89 inline int GetMaxResults() const { return m_maxResults; }
90 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
91 inline void SetMaxResults(int value) {
92 m_maxResultsHasBeenSet = true;
93 m_maxResults = value;
94 }
96 SetMaxResults(value);
97 return *this;
98 }
100
102
119 inline const Aws::Vector<Filter>& GetFilter() const { return m_filter; }
120 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
121 template <typename FilterT = Aws::Vector<Filter>>
122 void SetFilter(FilterT&& value) {
123 m_filterHasBeenSet = true;
124 m_filter = std::forward<FilterT>(value);
125 }
126 template <typename FilterT = Aws::Vector<Filter>>
128 SetFilter(std::forward<FilterT>(value));
129 return *this;
130 }
131 template <typename FilterT = Filter>
132 DescribeHostsRequest& AddFilter(FilterT&& value) {
133 m_filterHasBeenSet = true;
134 m_filter.emplace_back(std::forward<FilterT>(value));
135 return *this;
136 }
138 private:
139 Aws::Vector<Aws::String> m_hostIds;
140
141 Aws::String m_nextToken;
142
143 int m_maxResults{0};
144
145 Aws::Vector<Filter> m_filter;
146 bool m_hostIdsHasBeenSet = false;
147 bool m_nextTokenHasBeenSet = false;
148 bool m_maxResultsHasBeenSet = false;
149 bool m_filterHasBeenSet = false;
150};
151
152} // namespace Model
153} // namespace EC2
154} // namespace Aws
DescribeHostsRequest & AddHostIds(HostIdsT &&value)
AWS_EC2_API DescribeHostsRequest()=default
DescribeHostsRequest & WithNextToken(NextTokenT &&value)
virtual const char * GetServiceRequestName() const override
DescribeHostsRequest & WithFilter(FilterT &&value)
const Aws::Vector< Aws::String > & GetHostIds() const
DescribeHostsRequest & WithMaxResults(int value)
AWS_EC2_API Aws::String SerializePayload() const override
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeHostsRequest & WithHostIds(HostIdsT &&value)
DescribeHostsRequest & AddFilter(FilterT &&value)
const Aws::Vector< Filter > & GetFilter() const
const Aws::String & GetNextToken() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector