AWS SDK for C++  1.8.71
AWS SDK for C++
DescribeScheduledInstanceAvailabilityRequest.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>
13 #include <aws/ec2/model/Filter.h>
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace EC2
19 {
20 namespace Model
21 {
22 
30  {
31  public:
33 
34  // Service request name is the Operation name which will send this request out,
35  // each operation should has unique request name, so that we can get operation's name from this request.
36  // Note: this is not true for response, multiple operations may have the same response name,
37  // so we can not get operation's name from response.
38  inline virtual const char* GetServiceRequestName() const override { return "DescribeScheduledInstanceAvailability"; }
39 
40  Aws::String SerializePayload() const override;
41 
42  protected:
43  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
44 
45  public:
46 
53  inline bool GetDryRun() const{ return m_dryRun; }
54 
61  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
62 
69  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
70 
77  inline DescribeScheduledInstanceAvailabilityRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
78 
79 
89  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
90 
100  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
101 
111  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
112 
122  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
123 
133  inline DescribeScheduledInstanceAvailabilityRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
134 
144  inline DescribeScheduledInstanceAvailabilityRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
145 
155  inline DescribeScheduledInstanceAvailabilityRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
156 
166  inline DescribeScheduledInstanceAvailabilityRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
167 
168 
172  inline const SlotDateTimeRangeRequest& GetFirstSlotStartTimeRange() const{ return m_firstSlotStartTimeRange; }
173 
177  inline bool FirstSlotStartTimeRangeHasBeenSet() const { return m_firstSlotStartTimeRangeHasBeenSet; }
178 
182  inline void SetFirstSlotStartTimeRange(const SlotDateTimeRangeRequest& value) { m_firstSlotStartTimeRangeHasBeenSet = true; m_firstSlotStartTimeRange = value; }
183 
187  inline void SetFirstSlotStartTimeRange(SlotDateTimeRangeRequest&& value) { m_firstSlotStartTimeRangeHasBeenSet = true; m_firstSlotStartTimeRange = std::move(value); }
188 
192  inline DescribeScheduledInstanceAvailabilityRequest& WithFirstSlotStartTimeRange(const SlotDateTimeRangeRequest& value) { SetFirstSlotStartTimeRange(value); return *this;}
193 
197  inline DescribeScheduledInstanceAvailabilityRequest& WithFirstSlotStartTimeRange(SlotDateTimeRangeRequest&& value) { SetFirstSlotStartTimeRange(std::move(value)); return *this;}
198 
199 
205  inline int GetMaxResults() const{ return m_maxResults; }
206 
212  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
213 
219  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
220 
226  inline DescribeScheduledInstanceAvailabilityRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
227 
228 
233  inline int GetMaxSlotDurationInHours() const{ return m_maxSlotDurationInHours; }
234 
239  inline bool MaxSlotDurationInHoursHasBeenSet() const { return m_maxSlotDurationInHoursHasBeenSet; }
240 
245  inline void SetMaxSlotDurationInHours(int value) { m_maxSlotDurationInHoursHasBeenSet = true; m_maxSlotDurationInHours = value; }
246 
251  inline DescribeScheduledInstanceAvailabilityRequest& WithMaxSlotDurationInHours(int value) { SetMaxSlotDurationInHours(value); return *this;}
252 
253 
260  inline int GetMinSlotDurationInHours() const{ return m_minSlotDurationInHours; }
261 
268  inline bool MinSlotDurationInHoursHasBeenSet() const { return m_minSlotDurationInHoursHasBeenSet; }
269 
276  inline void SetMinSlotDurationInHours(int value) { m_minSlotDurationInHoursHasBeenSet = true; m_minSlotDurationInHours = value; }
277 
284  inline DescribeScheduledInstanceAvailabilityRequest& WithMinSlotDurationInHours(int value) { SetMinSlotDurationInHours(value); return *this;}
285 
286 
290  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
291 
295  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
296 
300  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
301 
305  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
306 
310  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
311 
315  inline DescribeScheduledInstanceAvailabilityRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
316 
320  inline DescribeScheduledInstanceAvailabilityRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
321 
325  inline DescribeScheduledInstanceAvailabilityRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
326 
327 
331  inline const ScheduledInstanceRecurrenceRequest& GetRecurrence() const{ return m_recurrence; }
332 
336  inline bool RecurrenceHasBeenSet() const { return m_recurrenceHasBeenSet; }
337 
341  inline void SetRecurrence(const ScheduledInstanceRecurrenceRequest& value) { m_recurrenceHasBeenSet = true; m_recurrence = value; }
342 
346  inline void SetRecurrence(ScheduledInstanceRecurrenceRequest&& value) { m_recurrenceHasBeenSet = true; m_recurrence = std::move(value); }
347 
351  inline DescribeScheduledInstanceAvailabilityRequest& WithRecurrence(const ScheduledInstanceRecurrenceRequest& value) { SetRecurrence(value); return *this;}
352 
356  inline DescribeScheduledInstanceAvailabilityRequest& WithRecurrence(ScheduledInstanceRecurrenceRequest&& value) { SetRecurrence(std::move(value)); return *this;}
357 
358  private:
359 
360  bool m_dryRun;
361  bool m_dryRunHasBeenSet;
362 
363  Aws::Vector<Filter> m_filters;
364  bool m_filtersHasBeenSet;
365 
366  SlotDateTimeRangeRequest m_firstSlotStartTimeRange;
367  bool m_firstSlotStartTimeRangeHasBeenSet;
368 
369  int m_maxResults;
370  bool m_maxResultsHasBeenSet;
371 
372  int m_maxSlotDurationInHours;
373  bool m_maxSlotDurationInHoursHasBeenSet;
374 
375  int m_minSlotDurationInHours;
376  bool m_minSlotDurationInHoursHasBeenSet;
377 
378  Aws::String m_nextToken;
379  bool m_nextTokenHasBeenSet;
380 
382  bool m_recurrenceHasBeenSet;
383  };
384 
385 } // namespace Model
386 } // namespace EC2
387 } // namespace Aws
DescribeScheduledInstanceAvailabilityRequest & WithRecurrence(const ScheduledInstanceRecurrenceRequest &value)
DescribeScheduledInstanceAvailabilityRequest & WithMinSlotDurationInHours(int value)
DescribeScheduledInstanceAvailabilityRequest & WithFirstSlotStartTimeRange(SlotDateTimeRangeRequest &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
DescribeScheduledInstanceAvailabilityRequest & WithFilters(const Aws::Vector< Filter > &value)
DescribeScheduledInstanceAvailabilityRequest & WithNextToken(Aws::String &&value)
DescribeScheduledInstanceAvailabilityRequest & WithFilters(Aws::Vector< Filter > &&value)
DescribeScheduledInstanceAvailabilityRequest & AddFilters(Filter &&value)
DescribeScheduledInstanceAvailabilityRequest & AddFilters(const Filter &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeScheduledInstanceAvailabilityRequest & WithRecurrence(ScheduledInstanceRecurrenceRequest &&value)
DescribeScheduledInstanceAvailabilityRequest & WithNextToken(const Aws::String &value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
DescribeScheduledInstanceAvailabilityRequest & WithMaxSlotDurationInHours(int value)
DescribeScheduledInstanceAvailabilityRequest & WithNextToken(const char *value)
DescribeScheduledInstanceAvailabilityRequest & WithFirstSlotStartTimeRange(const SlotDateTimeRangeRequest &value)