AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeHostReservationsRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ec2/model/Filter.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EC2
17{
18namespace 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 "DescribeHostReservations"; }
33
34 AWS_EC2_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
58 inline const Aws::Vector<Filter>& GetFilter() const{ return m_filter; }
59 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
60 inline void SetFilter(const Aws::Vector<Filter>& value) { m_filterHasBeenSet = true; m_filter = value; }
61 inline void SetFilter(Aws::Vector<Filter>&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
62 inline DescribeHostReservationsRequest& WithFilter(const Aws::Vector<Filter>& value) { SetFilter(value); return *this;}
63 inline DescribeHostReservationsRequest& WithFilter(Aws::Vector<Filter>&& value) { SetFilter(std::move(value)); return *this;}
64 inline DescribeHostReservationsRequest& AddFilter(const Filter& value) { m_filterHasBeenSet = true; m_filter.push_back(value); return *this; }
65 inline DescribeHostReservationsRequest& AddFilter(Filter&& value) { m_filterHasBeenSet = true; m_filter.push_back(std::move(value)); return *this; }
67
69
72 inline const Aws::Vector<Aws::String>& GetHostReservationIdSet() const{ return m_hostReservationIdSet; }
73 inline bool HostReservationIdSetHasBeenSet() const { return m_hostReservationIdSetHasBeenSet; }
74 inline void SetHostReservationIdSet(const Aws::Vector<Aws::String>& value) { m_hostReservationIdSetHasBeenSet = true; m_hostReservationIdSet = value; }
75 inline void SetHostReservationIdSet(Aws::Vector<Aws::String>&& value) { m_hostReservationIdSetHasBeenSet = true; m_hostReservationIdSet = std::move(value); }
78 inline DescribeHostReservationsRequest& AddHostReservationIdSet(const Aws::String& value) { m_hostReservationIdSetHasBeenSet = true; m_hostReservationIdSet.push_back(value); return *this; }
79 inline DescribeHostReservationsRequest& AddHostReservationIdSet(Aws::String&& value) { m_hostReservationIdSetHasBeenSet = true; m_hostReservationIdSet.push_back(std::move(value)); return *this; }
80 inline DescribeHostReservationsRequest& AddHostReservationIdSet(const char* value) { m_hostReservationIdSetHasBeenSet = true; m_hostReservationIdSet.push_back(value); return *this; }
82
84
91 inline int GetMaxResults() const{ return m_maxResults; }
92 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
93 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
94 inline DescribeHostReservationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
96
98
101 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
102 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
103 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
104 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
105 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
106 inline DescribeHostReservationsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
107 inline DescribeHostReservationsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
108 inline DescribeHostReservationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
110 private:
111
112 Aws::Vector<Filter> m_filter;
113 bool m_filterHasBeenSet = false;
114
115 Aws::Vector<Aws::String> m_hostReservationIdSet;
116 bool m_hostReservationIdSetHasBeenSet = false;
117
118 int m_maxResults;
119 bool m_maxResultsHasBeenSet = false;
120
121 Aws::String m_nextToken;
122 bool m_nextTokenHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace EC2
127} // namespace Aws
DescribeHostReservationsRequest & WithFilter(Aws::Vector< Filter > &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeHostReservationsRequest & WithFilter(const Aws::Vector< Filter > &value)
void SetHostReservationIdSet(Aws::Vector< Aws::String > &&value)
DescribeHostReservationsRequest & AddHostReservationIdSet(Aws::String &&value)
DescribeHostReservationsRequest & WithNextToken(Aws::String &&value)
const Aws::Vector< Aws::String > & GetHostReservationIdSet() const
DescribeHostReservationsRequest & WithHostReservationIdSet(Aws::Vector< Aws::String > &&value)
DescribeHostReservationsRequest & WithHostReservationIdSet(const Aws::Vector< Aws::String > &value)
void SetHostReservationIdSet(const Aws::Vector< Aws::String > &value)
DescribeHostReservationsRequest & WithMaxResults(int value)
DescribeHostReservationsRequest & AddFilter(Filter &&value)
DescribeHostReservationsRequest & AddHostReservationIdSet(const Aws::String &value)
DescribeHostReservationsRequest & AddHostReservationIdSet(const char *value)
DescribeHostReservationsRequest & WithNextToken(const Aws::String &value)
AWS_EC2_API Aws::String SerializePayload() const override
DescribeHostReservationsRequest & WithNextToken(const char *value)
DescribeHostReservationsRequest & AddFilter(const Filter &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector