AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeSnapshotsRequest.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/SnapshotFilter.h>
12
13#include <utility>
14
15namespace Aws {
16namespace FSx {
17namespace Model {
18
22 public:
23 AWS_FSX_API DescribeSnapshotsRequest() = 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 "DescribeSnapshots"; }
30
31 AWS_FSX_API Aws::String SerializePayload() const override;
32
34
36
41 inline const Aws::Vector<Aws::String>& GetSnapshotIds() const { return m_snapshotIds; }
42 inline bool SnapshotIdsHasBeenSet() const { return m_snapshotIdsHasBeenSet; }
43 template <typename SnapshotIdsT = Aws::Vector<Aws::String>>
44 void SetSnapshotIds(SnapshotIdsT&& value) {
45 m_snapshotIdsHasBeenSet = true;
46 m_snapshotIds = std::forward<SnapshotIdsT>(value);
47 }
48 template <typename SnapshotIdsT = Aws::Vector<Aws::String>>
50 SetSnapshotIds(std::forward<SnapshotIdsT>(value));
51 return *this;
52 }
53 template <typename SnapshotIdsT = Aws::String>
55 m_snapshotIdsHasBeenSet = true;
56 m_snapshotIds.emplace_back(std::forward<SnapshotIdsT>(value));
57 return *this;
58 }
60
62
66 inline const Aws::Vector<SnapshotFilter>& GetFilters() const { return m_filters; }
67 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
68 template <typename FiltersT = Aws::Vector<SnapshotFilter>>
69 void SetFilters(FiltersT&& value) {
70 m_filtersHasBeenSet = true;
71 m_filters = std::forward<FiltersT>(value);
72 }
73 template <typename FiltersT = Aws::Vector<SnapshotFilter>>
75 SetFilters(std::forward<FiltersT>(value));
76 return *this;
77 }
78 template <typename FiltersT = SnapshotFilter>
80 m_filtersHasBeenSet = true;
81 m_filters.emplace_back(std::forward<FiltersT>(value));
82 return *this;
83 }
85
87
88 inline int GetMaxResults() const { return m_maxResults; }
89 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
90 inline void SetMaxResults(int value) {
91 m_maxResultsHasBeenSet = true;
92 m_maxResults = value;
93 }
95 SetMaxResults(value);
96 return *this;
97 }
99
101
102 inline const Aws::String& GetNextToken() const { return m_nextToken; }
103 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
104 template <typename NextTokenT = Aws::String>
105 void SetNextToken(NextTokenT&& value) {
106 m_nextTokenHasBeenSet = true;
107 m_nextToken = std::forward<NextTokenT>(value);
108 }
109 template <typename NextTokenT = Aws::String>
111 SetNextToken(std::forward<NextTokenT>(value));
112 return *this;
113 }
115
117
123 inline bool GetIncludeShared() const { return m_includeShared; }
124 inline bool IncludeSharedHasBeenSet() const { return m_includeSharedHasBeenSet; }
125 inline void SetIncludeShared(bool value) {
126 m_includeSharedHasBeenSet = true;
127 m_includeShared = value;
128 }
130 SetIncludeShared(value);
131 return *this;
132 }
134 private:
135 Aws::Vector<Aws::String> m_snapshotIds;
136
138
139 int m_maxResults{0};
140
141 Aws::String m_nextToken;
142
143 bool m_includeShared{false};
144 bool m_snapshotIdsHasBeenSet = false;
145 bool m_filtersHasBeenSet = false;
146 bool m_maxResultsHasBeenSet = false;
147 bool m_nextTokenHasBeenSet = false;
148 bool m_includeSharedHasBeenSet = false;
149};
150
151} // namespace Model
152} // namespace FSx
153} // namespace Aws
AWS_FSX_API Aws::String SerializePayload() const override
DescribeSnapshotsRequest & WithNextToken(NextTokenT &&value)
DescribeSnapshotsRequest & WithMaxResults(int value)
const Aws::Vector< SnapshotFilter > & GetFilters() const
const Aws::Vector< Aws::String > & GetSnapshotIds() const
DescribeSnapshotsRequest & AddFilters(FiltersT &&value)
virtual const char * GetServiceRequestName() const override
DescribeSnapshotsRequest & WithIncludeShared(bool value)
AWS_FSX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_FSX_API DescribeSnapshotsRequest()=default
DescribeSnapshotsRequest & WithFilters(FiltersT &&value)
DescribeSnapshotsRequest & AddSnapshotIds(SnapshotIdsT &&value)
DescribeSnapshotsRequest & WithSnapshotIds(SnapshotIdsT &&value)
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