AWS SDK for C++  1.8.71
AWS SDK for C++
DescribeBackupsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/fsx/FSx_EXPORTS.h>
8 #include <aws/fsx/FSxRequest.h>
11 #include <aws/fsx/model/Filter.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace FSx
17 {
18 namespace Model
19 {
20 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "DescribeBackups"; }
37 
38  Aws::String SerializePayload() const override;
39 
40  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
41 
42 
47  inline const Aws::Vector<Aws::String>& GetBackupIds() const{ return m_backupIds; }
48 
53  inline bool BackupIdsHasBeenSet() const { return m_backupIdsHasBeenSet; }
54 
59  inline void SetBackupIds(const Aws::Vector<Aws::String>& value) { m_backupIdsHasBeenSet = true; m_backupIds = value; }
60 
65  inline void SetBackupIds(Aws::Vector<Aws::String>&& value) { m_backupIdsHasBeenSet = true; m_backupIds = std::move(value); }
66 
71  inline DescribeBackupsRequest& WithBackupIds(const Aws::Vector<Aws::String>& value) { SetBackupIds(value); return *this;}
72 
77  inline DescribeBackupsRequest& WithBackupIds(Aws::Vector<Aws::String>&& value) { SetBackupIds(std::move(value)); return *this;}
78 
83  inline DescribeBackupsRequest& AddBackupIds(const Aws::String& value) { m_backupIdsHasBeenSet = true; m_backupIds.push_back(value); return *this; }
84 
89  inline DescribeBackupsRequest& AddBackupIds(Aws::String&& value) { m_backupIdsHasBeenSet = true; m_backupIds.push_back(std::move(value)); return *this; }
90 
95  inline DescribeBackupsRequest& AddBackupIds(const char* value) { m_backupIdsHasBeenSet = true; m_backupIds.push_back(value); return *this; }
96 
97 
101  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
102 
106  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
107 
111  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
112 
116  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
117 
121  inline DescribeBackupsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
122 
126  inline DescribeBackupsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
127 
131  inline DescribeBackupsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
132 
136  inline DescribeBackupsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
137 
138 
145  inline int GetMaxResults() const{ return m_maxResults; }
146 
153  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
154 
161  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
162 
169  inline DescribeBackupsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
170 
171 
177  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
178 
184  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
185 
191  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
192 
198  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
199 
205  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
206 
212  inline DescribeBackupsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
213 
219  inline DescribeBackupsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
220 
226  inline DescribeBackupsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
227 
228  private:
229 
230  Aws::Vector<Aws::String> m_backupIds;
231  bool m_backupIdsHasBeenSet;
232 
233  Aws::Vector<Filter> m_filters;
234  bool m_filtersHasBeenSet;
235 
236  int m_maxResults;
237  bool m_maxResultsHasBeenSet;
238 
239  Aws::String m_nextToken;
240  bool m_nextTokenHasBeenSet;
241  };
242 
243 } // namespace Model
244 } // namespace FSx
245 } // namespace Aws
DescribeBackupsRequest & AddBackupIds(const char *value)
DescribeBackupsRequest & WithNextToken(Aws::String &&value)
void SetFilters(Aws::Vector< Filter > &&value)
DescribeBackupsRequest & WithNextToken(const Aws::String &value)
DescribeBackupsRequest & AddBackupIds(const Aws::String &value)
DescribeBackupsRequest & WithBackupIds(const Aws::Vector< Aws::String > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
const Aws::Vector< Filter > & GetFilters() const
virtual const char * GetServiceRequestName() const override
void SetFilters(const Aws::Vector< Filter > &value)
const Aws::Vector< Aws::String > & GetBackupIds() const
DescribeBackupsRequest & WithNextToken(const char *value)
#define AWS_FSX_API
Definition: FSx_EXPORTS.h:28
DescribeBackupsRequest & WithMaxResults(int value)
void SetBackupIds(Aws::Vector< Aws::String > &&value)
DescribeBackupsRequest & AddFilters(const Filter &value)
DescribeBackupsRequest & WithFilters(Aws::Vector< Filter > &&value)
DescribeBackupsRequest & AddBackupIds(Aws::String &&value)
void SetNextToken(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeBackupsRequest & WithFilters(const Aws::Vector< Filter > &value)
DescribeBackupsRequest & WithBackupIds(Aws::Vector< Aws::String > &&value)
DescribeBackupsRequest & AddFilters(Filter &&value)
void SetBackupIds(const Aws::Vector< Aws::String > &value)