AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeScheduledInstanceAvailabilityRequest.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/ec2/model/SlotDateTimeRangeRequest.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/ec2/model/ScheduledInstanceRecurrenceRequest.h>
13#include <aws/ec2/model/Filter.h>
14#include <utility>
15
16namespace Aws
17{
18namespace EC2
19{
20namespace 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_EC2_API Aws::String SerializePayload() const override;
41
42 protected:
43 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
44
45 public:
46
48
54 inline bool GetDryRun() const{ return m_dryRun; }
55 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
56 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
57 inline DescribeScheduledInstanceAvailabilityRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
59
61
68 inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
69 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
70 inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
71 inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
74 inline DescribeScheduledInstanceAvailabilityRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
75 inline DescribeScheduledInstanceAvailabilityRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
77
79
82 inline const SlotDateTimeRangeRequest& GetFirstSlotStartTimeRange() const{ return m_firstSlotStartTimeRange; }
83 inline bool FirstSlotStartTimeRangeHasBeenSet() const { return m_firstSlotStartTimeRangeHasBeenSet; }
84 inline void SetFirstSlotStartTimeRange(const SlotDateTimeRangeRequest& value) { m_firstSlotStartTimeRangeHasBeenSet = true; m_firstSlotStartTimeRange = value; }
85 inline void SetFirstSlotStartTimeRange(SlotDateTimeRangeRequest&& value) { m_firstSlotStartTimeRangeHasBeenSet = true; m_firstSlotStartTimeRange = std::move(value); }
89
91
96 inline int GetMaxResults() const{ return m_maxResults; }
97 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
98 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
101
103
107 inline int GetMaxSlotDurationInHours() const{ return m_maxSlotDurationInHours; }
108 inline bool MaxSlotDurationInHoursHasBeenSet() const { return m_maxSlotDurationInHoursHasBeenSet; }
109 inline void SetMaxSlotDurationInHours(int value) { m_maxSlotDurationInHoursHasBeenSet = true; m_maxSlotDurationInHours = value; }
112
114
120 inline int GetMinSlotDurationInHours() const{ return m_minSlotDurationInHours; }
121 inline bool MinSlotDurationInHoursHasBeenSet() const { return m_minSlotDurationInHoursHasBeenSet; }
122 inline void SetMinSlotDurationInHours(int value) { m_minSlotDurationInHoursHasBeenSet = true; m_minSlotDurationInHours = value; }
125
127
130 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
131 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
132 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
133 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
134 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
136 inline DescribeScheduledInstanceAvailabilityRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
137 inline DescribeScheduledInstanceAvailabilityRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
139
141
144 inline const ScheduledInstanceRecurrenceRequest& GetRecurrence() const{ return m_recurrence; }
145 inline bool RecurrenceHasBeenSet() const { return m_recurrenceHasBeenSet; }
146 inline void SetRecurrence(const ScheduledInstanceRecurrenceRequest& value) { m_recurrenceHasBeenSet = true; m_recurrence = value; }
147 inline void SetRecurrence(ScheduledInstanceRecurrenceRequest&& value) { m_recurrenceHasBeenSet = true; m_recurrence = std::move(value); }
151 private:
152
153 bool m_dryRun;
154 bool m_dryRunHasBeenSet = false;
155
156 Aws::Vector<Filter> m_filters;
157 bool m_filtersHasBeenSet = false;
158
159 SlotDateTimeRangeRequest m_firstSlotStartTimeRange;
160 bool m_firstSlotStartTimeRangeHasBeenSet = false;
161
162 int m_maxResults;
163 bool m_maxResultsHasBeenSet = false;
164
165 int m_maxSlotDurationInHours;
166 bool m_maxSlotDurationInHoursHasBeenSet = false;
167
168 int m_minSlotDurationInHours;
169 bool m_minSlotDurationInHoursHasBeenSet = false;
170
171 Aws::String m_nextToken;
172 bool m_nextTokenHasBeenSet = false;
173
175 bool m_recurrenceHasBeenSet = false;
176 };
177
178} // namespace Model
179} // namespace EC2
180} // namespace Aws
DescribeScheduledInstanceAvailabilityRequest & WithFirstSlotStartTimeRange(SlotDateTimeRangeRequest &&value)
DescribeScheduledInstanceAvailabilityRequest & WithRecurrence(ScheduledInstanceRecurrenceRequest &&value)
AWS_EC2_API Aws::String SerializePayload() const override
DescribeScheduledInstanceAvailabilityRequest & AddFilters(const Filter &value)
DescribeScheduledInstanceAvailabilityRequest & WithFilters(const Aws::Vector< Filter > &value)
DescribeScheduledInstanceAvailabilityRequest & WithRecurrence(const ScheduledInstanceRecurrenceRequest &value)
DescribeScheduledInstanceAvailabilityRequest & WithMinSlotDurationInHours(int value)
DescribeScheduledInstanceAvailabilityRequest & WithNextToken(const char *value)
DescribeScheduledInstanceAvailabilityRequest & AddFilters(Filter &&value)
DescribeScheduledInstanceAvailabilityRequest & WithNextToken(Aws::String &&value)
DescribeScheduledInstanceAvailabilityRequest & WithFirstSlotStartTimeRange(const SlotDateTimeRangeRequest &value)
DescribeScheduledInstanceAvailabilityRequest & WithFilters(Aws::Vector< Filter > &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeScheduledInstanceAvailabilityRequest & WithMaxSlotDurationInHours(int value)
DescribeScheduledInstanceAvailabilityRequest & WithNextToken(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector