AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeInstanceEventWindowsRequest.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
26 public:
27 AWS_EC2_API DescribeInstanceEventWindowsRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "DescribeInstanceEventWindows"; }
34
35 AWS_EC2_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
39
40 public:
42
48 inline bool GetDryRun() const { return m_dryRun; }
49 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
50 inline void SetDryRun(bool value) {
51 m_dryRunHasBeenSet = true;
52 m_dryRun = value;
53 }
55 SetDryRun(value);
56 return *this;
57 }
59
61
64 inline const Aws::Vector<Aws::String>& GetInstanceEventWindowIds() const { return m_instanceEventWindowIds; }
65 inline bool InstanceEventWindowIdsHasBeenSet() const { return m_instanceEventWindowIdsHasBeenSet; }
66 template <typename InstanceEventWindowIdsT = Aws::Vector<Aws::String>>
67 void SetInstanceEventWindowIds(InstanceEventWindowIdsT&& value) {
68 m_instanceEventWindowIdsHasBeenSet = true;
69 m_instanceEventWindowIds = std::forward<InstanceEventWindowIdsT>(value);
70 }
71 template <typename InstanceEventWindowIdsT = Aws::Vector<Aws::String>>
73 SetInstanceEventWindowIds(std::forward<InstanceEventWindowIdsT>(value));
74 return *this;
75 }
76 template <typename InstanceEventWindowIdsT = Aws::String>
78 m_instanceEventWindowIdsHasBeenSet = true;
79 m_instanceEventWindowIds.emplace_back(std::forward<InstanceEventWindowIdsT>(value));
80 return *this;
81 }
83
85
108 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
109 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
110 template <typename FiltersT = Aws::Vector<Filter>>
111 void SetFilters(FiltersT&& value) {
112 m_filtersHasBeenSet = true;
113 m_filters = std::forward<FiltersT>(value);
114 }
115 template <typename FiltersT = Aws::Vector<Filter>>
117 SetFilters(std::forward<FiltersT>(value));
118 return *this;
119 }
120 template <typename FiltersT = Filter>
122 m_filtersHasBeenSet = true;
123 m_filters.emplace_back(std::forward<FiltersT>(value));
124 return *this;
125 }
127
129
135 inline int GetMaxResults() const { return m_maxResults; }
136 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
137 inline void SetMaxResults(int value) {
138 m_maxResultsHasBeenSet = true;
139 m_maxResults = value;
140 }
142 SetMaxResults(value);
143 return *this;
144 }
146
148
151 inline const Aws::String& GetNextToken() const { return m_nextToken; }
152 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
153 template <typename NextTokenT = Aws::String>
154 void SetNextToken(NextTokenT&& value) {
155 m_nextTokenHasBeenSet = true;
156 m_nextToken = std::forward<NextTokenT>(value);
157 }
158 template <typename NextTokenT = Aws::String>
160 SetNextToken(std::forward<NextTokenT>(value));
161 return *this;
162 }
164 private:
165 bool m_dryRun{false};
166
167 Aws::Vector<Aws::String> m_instanceEventWindowIds;
168
169 Aws::Vector<Filter> m_filters;
170
171 int m_maxResults{0};
172
173 Aws::String m_nextToken;
174 bool m_dryRunHasBeenSet = false;
175 bool m_instanceEventWindowIdsHasBeenSet = false;
176 bool m_filtersHasBeenSet = false;
177 bool m_maxResultsHasBeenSet = false;
178 bool m_nextTokenHasBeenSet = false;
179};
180
181} // namespace Model
182} // namespace EC2
183} // namespace Aws
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeInstanceEventWindowsRequest & WithInstanceEventWindowIds(InstanceEventWindowIdsT &&value)
DescribeInstanceEventWindowsRequest & AddInstanceEventWindowIds(InstanceEventWindowIdsT &&value)
DescribeInstanceEventWindowsRequest & WithMaxResults(int value)
DescribeInstanceEventWindowsRequest & WithNextToken(NextTokenT &&value)
DescribeInstanceEventWindowsRequest & WithFilters(FiltersT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
DescribeInstanceEventWindowsRequest & AddFilters(FiltersT &&value)
DescribeInstanceEventWindowsRequest & WithDryRun(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector