AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeBackupsRequest.h
1
6#pragma once
7#include <aws/fsx/FSx_EXPORTS.h>
8#include <aws/fsx/FSxRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/fsx/model/Filter.h>
12#include <utility>
13
14namespace Aws
15{
16namespace FSx
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_FSX_API DescribeBackupsRequest() = default;
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_FSX_API Aws::String SerializePayload() const override;
39
41
42
44
49 inline const Aws::Vector<Aws::String>& GetBackupIds() const { return m_backupIds; }
50 inline bool BackupIdsHasBeenSet() const { return m_backupIdsHasBeenSet; }
51 template<typename BackupIdsT = Aws::Vector<Aws::String>>
52 void SetBackupIds(BackupIdsT&& value) { m_backupIdsHasBeenSet = true; m_backupIds = std::forward<BackupIdsT>(value); }
53 template<typename BackupIdsT = Aws::Vector<Aws::String>>
54 DescribeBackupsRequest& WithBackupIds(BackupIdsT&& value) { SetBackupIds(std::forward<BackupIdsT>(value)); return *this;}
55 template<typename BackupIdsT = Aws::String>
56 DescribeBackupsRequest& AddBackupIds(BackupIdsT&& value) { m_backupIdsHasBeenSet = true; m_backupIds.emplace_back(std::forward<BackupIdsT>(value)); return *this; }
58
60
65 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
66 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
67 template<typename FiltersT = Aws::Vector<Filter>>
68 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
69 template<typename FiltersT = Aws::Vector<Filter>>
70 DescribeBackupsRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
71 template<typename FiltersT = Filter>
72 DescribeBackupsRequest& AddFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters.emplace_back(std::forward<FiltersT>(value)); return *this; }
74
76
82 inline int GetMaxResults() const { return m_maxResults; }
83 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
84 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
85 inline DescribeBackupsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
87
89
94 inline const Aws::String& GetNextToken() const { return m_nextToken; }
95 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
96 template<typename NextTokenT = Aws::String>
97 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
98 template<typename NextTokenT = Aws::String>
99 DescribeBackupsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
101 private:
102
103 Aws::Vector<Aws::String> m_backupIds;
104 bool m_backupIdsHasBeenSet = false;
105
106 Aws::Vector<Filter> m_filters;
107 bool m_filtersHasBeenSet = false;
108
109 int m_maxResults{0};
110 bool m_maxResultsHasBeenSet = false;
111
112 Aws::String m_nextToken;
113 bool m_nextTokenHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace FSx
118} // namespace Aws
const Aws::Vector< Filter > & GetFilters() const
DescribeBackupsRequest & WithBackupIds(BackupIdsT &&value)
DescribeBackupsRequest & WithNextToken(NextTokenT &&value)
virtual const char * GetServiceRequestName() const override
DescribeBackupsRequest & AddFilters(FiltersT &&value)
const Aws::Vector< Aws::String > & GetBackupIds() const
AWS_FSX_API DescribeBackupsRequest()=default
DescribeBackupsRequest & AddBackupIds(BackupIdsT &&value)
DescribeBackupsRequest & WithMaxResults(int value)
AWS_FSX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeBackupsRequest & WithFilters(FiltersT &&value)
AWS_FSX_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector