AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeFleetInstancesRequest.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 DescribeFleetInstancesRequest() = 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 "DescribeFleetInstances"; }
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 bool GetDryRun() const { return m_dryRun; }
45 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
46 inline void SetDryRun(bool value) {
47 m_dryRunHasBeenSet = true;
48 m_dryRun = value;
49 }
51 SetDryRun(value);
52 return *this;
53 }
55
57
63 inline int GetMaxResults() const { return m_maxResults; }
64 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
65 inline void SetMaxResults(int value) {
66 m_maxResultsHasBeenSet = true;
67 m_maxResults = value;
68 }
70 SetMaxResults(value);
71 return *this;
72 }
74
76
80 inline const Aws::String& GetNextToken() const { return m_nextToken; }
81 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
82 template <typename NextTokenT = Aws::String>
83 void SetNextToken(NextTokenT&& value) {
84 m_nextTokenHasBeenSet = true;
85 m_nextToken = std::forward<NextTokenT>(value);
86 }
87 template <typename NextTokenT = Aws::String>
89 SetNextToken(std::forward<NextTokenT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetFleetId() const { return m_fleetId; }
99 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
100 template <typename FleetIdT = Aws::String>
101 void SetFleetId(FleetIdT&& value) {
102 m_fleetIdHasBeenSet = true;
103 m_fleetId = std::forward<FleetIdT>(value);
104 }
105 template <typename FleetIdT = Aws::String>
107 SetFleetId(std::forward<FleetIdT>(value));
108 return *this;
109 }
111
113
117 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
118 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
119 template <typename FiltersT = Aws::Vector<Filter>>
120 void SetFilters(FiltersT&& value) {
121 m_filtersHasBeenSet = true;
122 m_filters = std::forward<FiltersT>(value);
123 }
124 template <typename FiltersT = Aws::Vector<Filter>>
126 SetFilters(std::forward<FiltersT>(value));
127 return *this;
128 }
129 template <typename FiltersT = Filter>
131 m_filtersHasBeenSet = true;
132 m_filters.emplace_back(std::forward<FiltersT>(value));
133 return *this;
134 }
136 private:
137 bool m_dryRun{false};
138
139 int m_maxResults{0};
140
141 Aws::String m_nextToken;
142
143 Aws::String m_fleetId;
144
145 Aws::Vector<Filter> m_filters;
146 bool m_dryRunHasBeenSet = false;
147 bool m_maxResultsHasBeenSet = false;
148 bool m_nextTokenHasBeenSet = false;
149 bool m_fleetIdHasBeenSet = false;
150 bool m_filtersHasBeenSet = false;
151};
152
153} // namespace Model
154} // namespace EC2
155} // namespace Aws
DescribeFleetInstancesRequest & WithFleetId(FleetIdT &&value)
virtual const char * GetServiceRequestName() const override
DescribeFleetInstancesRequest & WithFilters(FiltersT &&value)
DescribeFleetInstancesRequest & WithDryRun(bool value)
DescribeFleetInstancesRequest & WithNextToken(NextTokenT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_EC2_API Aws::String SerializePayload() const override
DescribeFleetInstancesRequest & WithMaxResults(int value)
DescribeFleetInstancesRequest & AddFilters(FiltersT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector