AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DescribeLockedSnapshotsRequest.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 DescribeLockedSnapshotsRequest() = 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 "DescribeLockedSnapshots"; }
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
43 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
44 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
45 template <typename FiltersT = Aws::Vector<Filter>>
46 void SetFilters(FiltersT&& value) {
47 m_filtersHasBeenSet = true;
48 m_filters = std::forward<FiltersT>(value);
49 }
50 template <typename FiltersT = Aws::Vector<Filter>>
52 SetFilters(std::forward<FiltersT>(value));
53 return *this;
54 }
55 template <typename FiltersT = Filter>
57 m_filtersHasBeenSet = true;
58 m_filters.emplace_back(std::forward<FiltersT>(value));
59 return *this;
60 }
62
64
70 inline int GetMaxResults() const { return m_maxResults; }
71 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
72 inline void SetMaxResults(int value) {
73 m_maxResultsHasBeenSet = true;
74 m_maxResults = value;
75 }
77 SetMaxResults(value);
78 return *this;
79 }
81
83
87 inline const Aws::String& GetNextToken() const { return m_nextToken; }
88 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
89 template <typename NextTokenT = Aws::String>
90 void SetNextToken(NextTokenT&& value) {
91 m_nextTokenHasBeenSet = true;
92 m_nextToken = std::forward<NextTokenT>(value);
93 }
94 template <typename NextTokenT = Aws::String>
96 SetNextToken(std::forward<NextTokenT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::Vector<Aws::String>& GetSnapshotIds() const { return m_snapshotIds; }
106 inline bool SnapshotIdsHasBeenSet() const { return m_snapshotIdsHasBeenSet; }
107 template <typename SnapshotIdsT = Aws::Vector<Aws::String>>
108 void SetSnapshotIds(SnapshotIdsT&& value) {
109 m_snapshotIdsHasBeenSet = true;
110 m_snapshotIds = std::forward<SnapshotIdsT>(value);
111 }
112 template <typename SnapshotIdsT = Aws::Vector<Aws::String>>
114 SetSnapshotIds(std::forward<SnapshotIdsT>(value));
115 return *this;
116 }
117 template <typename SnapshotIdsT = Aws::String>
119 m_snapshotIdsHasBeenSet = true;
120 m_snapshotIds.emplace_back(std::forward<SnapshotIdsT>(value));
121 return *this;
122 }
124
126
132 inline bool GetDryRun() const { return m_dryRun; }
133 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
134 inline void SetDryRun(bool value) {
135 m_dryRunHasBeenSet = true;
136 m_dryRun = value;
137 }
139 SetDryRun(value);
140 return *this;
141 }
143 private:
144 Aws::Vector<Filter> m_filters;
145
146 int m_maxResults{0};
147
148 Aws::String m_nextToken;
149
150 Aws::Vector<Aws::String> m_snapshotIds;
151
152 bool m_dryRun{false};
153 bool m_filtersHasBeenSet = false;
154 bool m_maxResultsHasBeenSet = false;
155 bool m_nextTokenHasBeenSet = false;
156 bool m_snapshotIdsHasBeenSet = false;
157 bool m_dryRunHasBeenSet = false;
158};
159
160} // namespace Model
161} // namespace EC2
162} // namespace Aws
DescribeLockedSnapshotsRequest & WithSnapshotIds(SnapshotIdsT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeLockedSnapshotsRequest & AddFilters(FiltersT &&value)
DescribeLockedSnapshotsRequest & WithMaxResults(int value)
AWS_EC2_API Aws::String SerializePayload() const override
DescribeLockedSnapshotsRequest & WithFilters(FiltersT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Aws::String > & GetSnapshotIds() const
DescribeLockedSnapshotsRequest & AddSnapshotIds(SnapshotIdsT &&value)
DescribeLockedSnapshotsRequest & WithNextToken(NextTokenT &&value)
DescribeLockedSnapshotsRequest & WithDryRun(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector