AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeBackupsRequest.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/fsx/FSxRequest.h>
10#include <aws/fsx/FSx_EXPORTS.h>
11#include <aws/fsx/model/Filter.h>
12
13#include <utility>
14
15namespace Aws {
16namespace FSx {
17namespace Model {
18
26 public:
27 AWS_FSX_API DescribeBackupsRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "DescribeBackups"; }
34
35 AWS_FSX_API Aws::String SerializePayload() const override;
36
38
40
45 inline const Aws::Vector<Aws::String>& GetBackupIds() const { return m_backupIds; }
46 inline bool BackupIdsHasBeenSet() const { return m_backupIdsHasBeenSet; }
47 template <typename BackupIdsT = Aws::Vector<Aws::String>>
48 void SetBackupIds(BackupIdsT&& value) {
49 m_backupIdsHasBeenSet = true;
50 m_backupIds = std::forward<BackupIdsT>(value);
51 }
52 template <typename BackupIdsT = Aws::Vector<Aws::String>>
54 SetBackupIds(std::forward<BackupIdsT>(value));
55 return *this;
56 }
57 template <typename BackupIdsT = Aws::String>
58 DescribeBackupsRequest& AddBackupIds(BackupIdsT&& value) {
59 m_backupIdsHasBeenSet = true;
60 m_backupIds.emplace_back(std::forward<BackupIdsT>(value));
61 return *this;
62 }
64
66
71 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
72 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
73 template <typename FiltersT = Aws::Vector<Filter>>
74 void SetFilters(FiltersT&& value) {
75 m_filtersHasBeenSet = true;
76 m_filters = std::forward<FiltersT>(value);
77 }
78 template <typename FiltersT = Aws::Vector<Filter>>
80 SetFilters(std::forward<FiltersT>(value));
81 return *this;
82 }
83 template <typename FiltersT = Filter>
85 m_filtersHasBeenSet = true;
86 m_filters.emplace_back(std::forward<FiltersT>(value));
87 return *this;
88 }
90
92
98 inline int GetMaxResults() const { return m_maxResults; }
99 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
100 inline void SetMaxResults(int value) {
101 m_maxResultsHasBeenSet = true;
102 m_maxResults = value;
103 }
105 SetMaxResults(value);
106 return *this;
107 }
109
111
116 inline const Aws::String& GetNextToken() const { return m_nextToken; }
117 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
118 template <typename NextTokenT = Aws::String>
119 void SetNextToken(NextTokenT&& value) {
120 m_nextTokenHasBeenSet = true;
121 m_nextToken = std::forward<NextTokenT>(value);
122 }
123 template <typename NextTokenT = Aws::String>
125 SetNextToken(std::forward<NextTokenT>(value));
126 return *this;
127 }
129 private:
130 Aws::Vector<Aws::String> m_backupIds;
131
132 Aws::Vector<Filter> m_filters;
133
134 int m_maxResults{0};
135
136 Aws::String m_nextToken;
137 bool m_backupIdsHasBeenSet = false;
138 bool m_filtersHasBeenSet = false;
139 bool m_maxResultsHasBeenSet = false;
140 bool m_nextTokenHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace FSx
145} // 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