AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeHostReservationsRequest.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 DescribeHostReservationsRequest() = 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 "DescribeHostReservations"; }
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
54 inline const Aws::Vector<Filter>& GetFilter() const { return m_filter; }
55 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
56 template <typename FilterT = Aws::Vector<Filter>>
57 void SetFilter(FilterT&& value) {
58 m_filterHasBeenSet = true;
59 m_filter = std::forward<FilterT>(value);
60 }
61 template <typename FilterT = Aws::Vector<Filter>>
63 SetFilter(std::forward<FilterT>(value));
64 return *this;
65 }
66 template <typename FilterT = Filter>
68 m_filterHasBeenSet = true;
69 m_filter.emplace_back(std::forward<FilterT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Vector<Aws::String>& GetHostReservationIdSet() const { return m_hostReservationIdSet; }
79 inline bool HostReservationIdSetHasBeenSet() const { return m_hostReservationIdSetHasBeenSet; }
80 template <typename HostReservationIdSetT = Aws::Vector<Aws::String>>
81 void SetHostReservationIdSet(HostReservationIdSetT&& value) {
82 m_hostReservationIdSetHasBeenSet = true;
83 m_hostReservationIdSet = std::forward<HostReservationIdSetT>(value);
84 }
85 template <typename HostReservationIdSetT = Aws::Vector<Aws::String>>
87 SetHostReservationIdSet(std::forward<HostReservationIdSetT>(value));
88 return *this;
89 }
90 template <typename HostReservationIdSetT = Aws::String>
92 m_hostReservationIdSetHasBeenSet = true;
93 m_hostReservationIdSet.emplace_back(std::forward<HostReservationIdSetT>(value));
94 return *this;
95 }
97
99
106 inline int GetMaxResults() const { return m_maxResults; }
107 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
108 inline void SetMaxResults(int value) {
109 m_maxResultsHasBeenSet = true;
110 m_maxResults = value;
111 }
113 SetMaxResults(value);
114 return *this;
115 }
117
119
122 inline const Aws::String& GetNextToken() const { return m_nextToken; }
123 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
124 template <typename NextTokenT = Aws::String>
125 void SetNextToken(NextTokenT&& value) {
126 m_nextTokenHasBeenSet = true;
127 m_nextToken = std::forward<NextTokenT>(value);
128 }
129 template <typename NextTokenT = Aws::String>
131 SetNextToken(std::forward<NextTokenT>(value));
132 return *this;
133 }
135 private:
136 Aws::Vector<Filter> m_filter;
137
138 Aws::Vector<Aws::String> m_hostReservationIdSet;
139
140 int m_maxResults{0};
141
142 Aws::String m_nextToken;
143 bool m_filterHasBeenSet = false;
144 bool m_hostReservationIdSetHasBeenSet = false;
145 bool m_maxResultsHasBeenSet = false;
146 bool m_nextTokenHasBeenSet = false;
147};
148
149} // namespace Model
150} // namespace EC2
151} // namespace Aws
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeHostReservationsRequest & WithHostReservationIdSet(HostReservationIdSetT &&value)
const Aws::Vector< Aws::String > & GetHostReservationIdSet() const
DescribeHostReservationsRequest & WithNextToken(NextTokenT &&value)
DescribeHostReservationsRequest & WithMaxResults(int value)
DescribeHostReservationsRequest & AddFilter(FilterT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
DescribeHostReservationsRequest & WithFilter(FilterT &&value)
DescribeHostReservationsRequest & AddHostReservationIdSet(HostReservationIdSetT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector