AWS SDK for C++  1.9.15
AWS SDK for C++
DescribeFastSnapshotRestoresRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
11 #include <aws/ec2/model/Filter.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace EC2
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "DescribeFastSnapshotRestores"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
51  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
52 
63  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
64 
75  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
76 
87  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
88 
99  inline DescribeFastSnapshotRestoresRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
100 
111  inline DescribeFastSnapshotRestoresRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
112 
123  inline DescribeFastSnapshotRestoresRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
124 
135  inline DescribeFastSnapshotRestoresRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
136 
137 
143  inline int GetMaxResults() const{ return m_maxResults; }
144 
150  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
151 
157  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
158 
164  inline DescribeFastSnapshotRestoresRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
165 
166 
170  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
171 
175  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
176 
180  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
181 
185  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
186 
190  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
191 
195  inline DescribeFastSnapshotRestoresRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
196 
200  inline DescribeFastSnapshotRestoresRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
201 
205  inline DescribeFastSnapshotRestoresRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
206 
207 
214  inline bool GetDryRun() const{ return m_dryRun; }
215 
222  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
223 
230  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
231 
238  inline DescribeFastSnapshotRestoresRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
239 
240  private:
241 
242  Aws::Vector<Filter> m_filters;
243  bool m_filtersHasBeenSet;
244 
245  int m_maxResults;
246  bool m_maxResultsHasBeenSet;
247 
248  Aws::String m_nextToken;
249  bool m_nextTokenHasBeenSet;
250 
251  bool m_dryRun;
252  bool m_dryRunHasBeenSet;
253  };
254 
255 } // namespace Model
256 } // namespace EC2
257 } // namespace Aws
Aws::EC2::Model::DescribeFastSnapshotRestoresRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeFastSnapshotRestoresRequest.h:63
Aws::EC2::Model::DescribeFastSnapshotRestoresRequest::WithDryRun
DescribeFastSnapshotRestoresRequest & WithDryRun(bool value)
Definition: DescribeFastSnapshotRestoresRequest.h:238
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeFastSnapshotRestoresRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeFastSnapshotRestoresRequest.h:75
Aws::EC2::Model::DescribeFastSnapshotRestoresRequest::WithNextToken
DescribeFastSnapshotRestoresRequest & WithNextToken(const char *value)
Definition: DescribeFastSnapshotRestoresRequest.h:205
Aws::EC2::Model::DescribeFastSnapshotRestoresRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribeFastSnapshotRestoresRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeFastSnapshotRestoresRequest.h:32
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeFastSnapshotRestoresRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeFastSnapshotRestoresRequest.h:230
Aws::EC2::Model::DescribeFastSnapshotRestoresRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeFastSnapshotRestoresRequest.h:175
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeFastSnapshotRestoresRequest::WithNextToken
DescribeFastSnapshotRestoresRequest & WithNextToken(const Aws::String &value)
Definition: DescribeFastSnapshotRestoresRequest.h:195
Aws::EC2::Model::DescribeFastSnapshotRestoresRequest::WithMaxResults
DescribeFastSnapshotRestoresRequest & WithMaxResults(int value)
Definition: DescribeFastSnapshotRestoresRequest.h:164
Aws::EC2::Model::DescribeFastSnapshotRestoresRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeFastSnapshotRestoresRequest.h:157
AWSVector.h
Aws::EC2::Model::DescribeFastSnapshotRestoresRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeFastSnapshotRestoresRequest.h:185
Filter.h
Aws::EC2::Model::DescribeFastSnapshotRestoresRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeFastSnapshotRestoresRequest.h:150
Aws::EC2::Model::DescribeFastSnapshotRestoresRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeFastSnapshotRestoresRequest.h:222
Aws::EC2::Model::DescribeFastSnapshotRestoresRequest::AddFilters
DescribeFastSnapshotRestoresRequest & AddFilters(const Filter &value)
Definition: DescribeFastSnapshotRestoresRequest.h:123
EC2Request.h
Aws::EC2::Model::DescribeFastSnapshotRestoresRequest::AddFilters
DescribeFastSnapshotRestoresRequest & AddFilters(Filter &&value)
Definition: DescribeFastSnapshotRestoresRequest.h:135
AWSString.h
Aws::EC2::Model::DescribeFastSnapshotRestoresRequest::WithFilters
DescribeFastSnapshotRestoresRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeFastSnapshotRestoresRequest.h:99
Aws::EC2::Model::DescribeFastSnapshotRestoresRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeFastSnapshotRestoresRequest.h:170
Aws::EC2::Model::DescribeFastSnapshotRestoresRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeFastSnapshotRestoresRequest.h:143
Aws::EC2::Model::DescribeFastSnapshotRestoresRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeFastSnapshotRestoresRequest.h:190
Aws::EC2::Model::DescribeFastSnapshotRestoresRequest::DescribeFastSnapshotRestoresRequest
DescribeFastSnapshotRestoresRequest()
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeFastSnapshotRestoresRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeFastSnapshotRestoresRequest.h:51
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DescribeFastSnapshotRestoresRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeFastSnapshotRestoresRequest.h:87
Aws::EC2::Model::DescribeFastSnapshotRestoresRequest
Definition: DescribeFastSnapshotRestoresRequest.h:24
Aws::EC2::Model::DescribeFastSnapshotRestoresRequest::SerializePayload
Aws::String SerializePayload() const override
EC2_EXPORTS.h
Aws::EC2::Model::DescribeFastSnapshotRestoresRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeFastSnapshotRestoresRequest.h:214
Aws::EC2::Model::DescribeFastSnapshotRestoresRequest::WithFilters
DescribeFastSnapshotRestoresRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeFastSnapshotRestoresRequest.h:111
Aws::EC2::Model::DescribeFastSnapshotRestoresRequest::WithNextToken
DescribeFastSnapshotRestoresRequest & WithNextToken(Aws::String &&value)
Definition: DescribeFastSnapshotRestoresRequest.h:200
Aws::EC2::Model::DescribeFastSnapshotRestoresRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeFastSnapshotRestoresRequest.h:180