AWS SDK for C++  1.8.71
AWS SDK for C++
DescribeScheduledInstancesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
12 #include <aws/ec2/model/Filter.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace EC2
18 {
19 namespace Model
20 {
21 
29  {
30  public:
32 
33  // Service request name is the Operation name which will send this request out,
34  // each operation should has unique request name, so that we can get operation's name from this request.
35  // Note: this is not true for response, multiple operations may have the same response name,
36  // so we can not get operation's name from response.
37  inline virtual const char* GetServiceRequestName() const override { return "DescribeScheduledInstances"; }
38 
39  Aws::String SerializePayload() const override;
40 
41  protected:
42  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
43 
44  public:
45 
52  inline bool GetDryRun() const{ return m_dryRun; }
53 
60  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
61 
68  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
69 
76  inline DescribeScheduledInstancesRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
77 
78 
88  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
89 
99  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
100 
110  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
111 
121  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
122 
132  inline DescribeScheduledInstancesRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
133 
143  inline DescribeScheduledInstancesRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
144 
154  inline DescribeScheduledInstancesRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
155 
165  inline DescribeScheduledInstancesRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
166 
167 
173  inline int GetMaxResults() const{ return m_maxResults; }
174 
180  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
181 
187  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
188 
194  inline DescribeScheduledInstancesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
195 
196 
200  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
201 
205  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
206 
210  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
211 
215  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
216 
220  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
221 
225  inline DescribeScheduledInstancesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
226 
230  inline DescribeScheduledInstancesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
231 
235  inline DescribeScheduledInstancesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
236 
237 
241  inline const Aws::Vector<Aws::String>& GetScheduledInstanceIds() const{ return m_scheduledInstanceIds; }
242 
246  inline bool ScheduledInstanceIdsHasBeenSet() const { return m_scheduledInstanceIdsHasBeenSet; }
247 
251  inline void SetScheduledInstanceIds(const Aws::Vector<Aws::String>& value) { m_scheduledInstanceIdsHasBeenSet = true; m_scheduledInstanceIds = value; }
252 
256  inline void SetScheduledInstanceIds(Aws::Vector<Aws::String>&& value) { m_scheduledInstanceIdsHasBeenSet = true; m_scheduledInstanceIds = std::move(value); }
257 
261  inline DescribeScheduledInstancesRequest& WithScheduledInstanceIds(const Aws::Vector<Aws::String>& value) { SetScheduledInstanceIds(value); return *this;}
262 
266  inline DescribeScheduledInstancesRequest& WithScheduledInstanceIds(Aws::Vector<Aws::String>&& value) { SetScheduledInstanceIds(std::move(value)); return *this;}
267 
271  inline DescribeScheduledInstancesRequest& AddScheduledInstanceIds(const Aws::String& value) { m_scheduledInstanceIdsHasBeenSet = true; m_scheduledInstanceIds.push_back(value); return *this; }
272 
276  inline DescribeScheduledInstancesRequest& AddScheduledInstanceIds(Aws::String&& value) { m_scheduledInstanceIdsHasBeenSet = true; m_scheduledInstanceIds.push_back(std::move(value)); return *this; }
277 
281  inline DescribeScheduledInstancesRequest& AddScheduledInstanceIds(const char* value) { m_scheduledInstanceIdsHasBeenSet = true; m_scheduledInstanceIds.push_back(value); return *this; }
282 
283 
287  inline const SlotStartTimeRangeRequest& GetSlotStartTimeRange() const{ return m_slotStartTimeRange; }
288 
292  inline bool SlotStartTimeRangeHasBeenSet() const { return m_slotStartTimeRangeHasBeenSet; }
293 
297  inline void SetSlotStartTimeRange(const SlotStartTimeRangeRequest& value) { m_slotStartTimeRangeHasBeenSet = true; m_slotStartTimeRange = value; }
298 
302  inline void SetSlotStartTimeRange(SlotStartTimeRangeRequest&& value) { m_slotStartTimeRangeHasBeenSet = true; m_slotStartTimeRange = std::move(value); }
303 
307  inline DescribeScheduledInstancesRequest& WithSlotStartTimeRange(const SlotStartTimeRangeRequest& value) { SetSlotStartTimeRange(value); return *this;}
308 
312  inline DescribeScheduledInstancesRequest& WithSlotStartTimeRange(SlotStartTimeRangeRequest&& value) { SetSlotStartTimeRange(std::move(value)); return *this;}
313 
314  private:
315 
316  bool m_dryRun;
317  bool m_dryRunHasBeenSet;
318 
319  Aws::Vector<Filter> m_filters;
320  bool m_filtersHasBeenSet;
321 
322  int m_maxResults;
323  bool m_maxResultsHasBeenSet;
324 
325  Aws::String m_nextToken;
326  bool m_nextTokenHasBeenSet;
327 
328  Aws::Vector<Aws::String> m_scheduledInstanceIds;
329  bool m_scheduledInstanceIdsHasBeenSet;
330 
331  SlotStartTimeRangeRequest m_slotStartTimeRange;
332  bool m_slotStartTimeRangeHasBeenSet;
333  };
334 
335 } // namespace Model
336 } // namespace EC2
337 } // namespace Aws
DescribeScheduledInstancesRequest & WithNextToken(const Aws::String &value)
DescribeScheduledInstancesRequest & WithFilters(const Aws::Vector< Filter > &value)
DescribeScheduledInstancesRequest & WithNextToken(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
void SetScheduledInstanceIds(const Aws::Vector< Aws::String > &value)
DescribeScheduledInstancesRequest & AddScheduledInstanceIds(const Aws::String &value)
DescribeScheduledInstancesRequest & WithDryRun(bool value)
DescribeScheduledInstancesRequest & WithMaxResults(int value)
DescribeScheduledInstancesRequest & AddFilters(const Filter &value)
void SetSlotStartTimeRange(const SlotStartTimeRangeRequest &value)
DescribeScheduledInstancesRequest & WithSlotStartTimeRange(const SlotStartTimeRangeRequest &value)
DescribeScheduledInstancesRequest & WithScheduledInstanceIds(const Aws::Vector< Aws::String > &value)
const SlotStartTimeRangeRequest & GetSlotStartTimeRange() const
DescribeScheduledInstancesRequest & WithScheduledInstanceIds(Aws::Vector< Aws::String > &&value)
void SetScheduledInstanceIds(Aws::Vector< Aws::String > &&value)
DescribeScheduledInstancesRequest & AddFilters(Filter &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeScheduledInstancesRequest & WithFilters(Aws::Vector< Filter > &&value)
DescribeScheduledInstancesRequest & WithNextToken(const char *value)
DescribeScheduledInstancesRequest & AddScheduledInstanceIds(const char *value)
DescribeScheduledInstancesRequest & AddScheduledInstanceIds(Aws::String &&value)
DescribeScheduledInstancesRequest & WithSlotStartTimeRange(SlotStartTimeRangeRequest &&value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
const Aws::Vector< Aws::String > & GetScheduledInstanceIds() const