AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeScheduledInstancesRequest.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/SlotStartTimeRangeRequest.h>
12#include <aws/ec2/model/Filter.h>
13#include <utility>
14
15namespace Aws
16{
17namespace EC2
18{
19namespace 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_EC2_API Aws::String SerializePayload() const override;
40
41 protected:
42 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
43
44 public:
45
47
53 inline bool GetDryRun() const{ return m_dryRun; }
54 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
55 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
56 inline DescribeScheduledInstancesRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
58
60
67 inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
68 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
69 inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
70 inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
71 inline DescribeScheduledInstancesRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
72 inline DescribeScheduledInstancesRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
73 inline DescribeScheduledInstancesRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
74 inline DescribeScheduledInstancesRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
76
78
83 inline int GetMaxResults() const{ return m_maxResults; }
84 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
85 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
86 inline DescribeScheduledInstancesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
88
90
93 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
94 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
95 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
96 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
97 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
98 inline DescribeScheduledInstancesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
99 inline DescribeScheduledInstancesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
100 inline DescribeScheduledInstancesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
102
104
107 inline const Aws::Vector<Aws::String>& GetScheduledInstanceIds() const{ return m_scheduledInstanceIds; }
108 inline bool ScheduledInstanceIdsHasBeenSet() const { return m_scheduledInstanceIdsHasBeenSet; }
109 inline void SetScheduledInstanceIds(const Aws::Vector<Aws::String>& value) { m_scheduledInstanceIdsHasBeenSet = true; m_scheduledInstanceIds = value; }
110 inline void SetScheduledInstanceIds(Aws::Vector<Aws::String>&& value) { m_scheduledInstanceIdsHasBeenSet = true; m_scheduledInstanceIds = std::move(value); }
113 inline DescribeScheduledInstancesRequest& AddScheduledInstanceIds(const Aws::String& value) { m_scheduledInstanceIdsHasBeenSet = true; m_scheduledInstanceIds.push_back(value); return *this; }
114 inline DescribeScheduledInstancesRequest& AddScheduledInstanceIds(Aws::String&& value) { m_scheduledInstanceIdsHasBeenSet = true; m_scheduledInstanceIds.push_back(std::move(value)); return *this; }
115 inline DescribeScheduledInstancesRequest& AddScheduledInstanceIds(const char* value) { m_scheduledInstanceIdsHasBeenSet = true; m_scheduledInstanceIds.push_back(value); return *this; }
117
119
122 inline const SlotStartTimeRangeRequest& GetSlotStartTimeRange() const{ return m_slotStartTimeRange; }
123 inline bool SlotStartTimeRangeHasBeenSet() const { return m_slotStartTimeRangeHasBeenSet; }
124 inline void SetSlotStartTimeRange(const SlotStartTimeRangeRequest& value) { m_slotStartTimeRangeHasBeenSet = true; m_slotStartTimeRange = value; }
125 inline void SetSlotStartTimeRange(SlotStartTimeRangeRequest&& value) { m_slotStartTimeRangeHasBeenSet = true; m_slotStartTimeRange = std::move(value); }
129 private:
130
131 bool m_dryRun;
132 bool m_dryRunHasBeenSet = false;
133
134 Aws::Vector<Filter> m_filters;
135 bool m_filtersHasBeenSet = false;
136
137 int m_maxResults;
138 bool m_maxResultsHasBeenSet = false;
139
140 Aws::String m_nextToken;
141 bool m_nextTokenHasBeenSet = false;
142
143 Aws::Vector<Aws::String> m_scheduledInstanceIds;
144 bool m_scheduledInstanceIdsHasBeenSet = false;
145
146 SlotStartTimeRangeRequest m_slotStartTimeRange;
147 bool m_slotStartTimeRangeHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace EC2
152} // namespace Aws
DescribeScheduledInstancesRequest & WithFilters(const Aws::Vector< Filter > &value)
DescribeScheduledInstancesRequest & WithScheduledInstanceIds(Aws::Vector< Aws::String > &&value)
DescribeScheduledInstancesRequest & WithSlotStartTimeRange(SlotStartTimeRangeRequest &&value)
DescribeScheduledInstancesRequest & WithScheduledInstanceIds(const Aws::Vector< Aws::String > &value)
DescribeScheduledInstancesRequest & WithNextToken(Aws::String &&value)
DescribeScheduledInstancesRequest & AddScheduledInstanceIds(Aws::String &&value)
DescribeScheduledInstancesRequest & AddScheduledInstanceIds(const char *value)
void SetScheduledInstanceIds(const Aws::Vector< Aws::String > &value)
DescribeScheduledInstancesRequest & AddFilters(Filter &&value)
AWS_EC2_API Aws::String SerializePayload() const override
void SetSlotStartTimeRange(const SlotStartTimeRangeRequest &value)
DescribeScheduledInstancesRequest & WithSlotStartTimeRange(const SlotStartTimeRangeRequest &value)
DescribeScheduledInstancesRequest & AddFilters(const Filter &value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeScheduledInstancesRequest & WithMaxResults(int value)
DescribeScheduledInstancesRequest & WithDryRun(bool value)
DescribeScheduledInstancesRequest & WithFilters(Aws::Vector< Filter > &&value)
const Aws::Vector< Aws::String > & GetScheduledInstanceIds() const
DescribeScheduledInstancesRequest & WithNextToken(const char *value)
DescribeScheduledInstancesRequest & WithNextToken(const Aws::String &value)
DescribeScheduledInstancesRequest & AddScheduledInstanceIds(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector