AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeMacModificationTasksRequest.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
22 public:
23 AWS_EC2_API DescribeMacModificationTasksRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "DescribeMacModificationTasks"; }
30
31 AWS_EC2_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
44 inline bool GetDryRun() const { return m_dryRun; }
45 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
46 inline void SetDryRun(bool value) {
47 m_dryRunHasBeenSet = true;
48 m_dryRun = value;
49 }
51 SetDryRun(value);
52 return *this;
53 }
55
57
70 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
71 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
72 template <typename FiltersT = Aws::Vector<Filter>>
73 void SetFilters(FiltersT&& value) {
74 m_filtersHasBeenSet = true;
75 m_filters = std::forward<FiltersT>(value);
76 }
77 template <typename FiltersT = Aws::Vector<Filter>>
79 SetFilters(std::forward<FiltersT>(value));
80 return *this;
81 }
82 template <typename FiltersT = Filter>
84 m_filtersHasBeenSet = true;
85 m_filters.emplace_back(std::forward<FiltersT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::Vector<Aws::String>& GetMacModificationTaskIds() const { return m_macModificationTaskIds; }
95 inline bool MacModificationTaskIdsHasBeenSet() const { return m_macModificationTaskIdsHasBeenSet; }
96 template <typename MacModificationTaskIdsT = Aws::Vector<Aws::String>>
97 void SetMacModificationTaskIds(MacModificationTaskIdsT&& value) {
98 m_macModificationTaskIdsHasBeenSet = true;
99 m_macModificationTaskIds = std::forward<MacModificationTaskIdsT>(value);
100 }
101 template <typename MacModificationTaskIdsT = Aws::Vector<Aws::String>>
103 SetMacModificationTaskIds(std::forward<MacModificationTaskIdsT>(value));
104 return *this;
105 }
106 template <typename MacModificationTaskIdsT = Aws::String>
108 m_macModificationTaskIdsHasBeenSet = true;
109 m_macModificationTaskIds.emplace_back(std::forward<MacModificationTaskIdsT>(value));
110 return *this;
111 }
113
115
122 inline int GetMaxResults() const { return m_maxResults; }
123 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
124 inline void SetMaxResults(int value) {
125 m_maxResultsHasBeenSet = true;
126 m_maxResults = value;
127 }
129 SetMaxResults(value);
130 return *this;
131 }
133
135
138 inline const Aws::String& GetNextToken() const { return m_nextToken; }
139 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
140 template <typename NextTokenT = Aws::String>
141 void SetNextToken(NextTokenT&& value) {
142 m_nextTokenHasBeenSet = true;
143 m_nextToken = std::forward<NextTokenT>(value);
144 }
145 template <typename NextTokenT = Aws::String>
147 SetNextToken(std::forward<NextTokenT>(value));
148 return *this;
149 }
151 private:
152 bool m_dryRun{false};
153
154 Aws::Vector<Filter> m_filters;
155
156 Aws::Vector<Aws::String> m_macModificationTaskIds;
157
158 int m_maxResults{0};
159
160 Aws::String m_nextToken;
161 bool m_dryRunHasBeenSet = false;
162 bool m_filtersHasBeenSet = false;
163 bool m_macModificationTaskIdsHasBeenSet = false;
164 bool m_maxResultsHasBeenSet = false;
165 bool m_nextTokenHasBeenSet = false;
166};
167
168} // namespace Model
169} // namespace EC2
170} // namespace Aws
DescribeMacModificationTasksRequest & AddFilters(FiltersT &&value)
DescribeMacModificationTasksRequest & WithDryRun(bool value)
DescribeMacModificationTasksRequest & AddMacModificationTaskIds(MacModificationTaskIdsT &&value)
DescribeMacModificationTasksRequest & WithMacModificationTaskIds(MacModificationTaskIdsT &&value)
DescribeMacModificationTasksRequest & WithMaxResults(int value)
DescribeMacModificationTasksRequest & WithFilters(FiltersT &&value)
DescribeMacModificationTasksRequest & WithNextToken(NextTokenT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_EC2_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector