AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeSnapshotsRequest.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/SnapshotFilter.h>
12#include <utility>
13
14namespace Aws
15{
16namespace FSx
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_FSX_API DescribeSnapshotsRequest() = default;
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 "DescribeSnapshots"; }
33
34 AWS_FSX_API Aws::String SerializePayload() const override;
35
37
38
40
45 inline const Aws::Vector<Aws::String>& GetSnapshotIds() const { return m_snapshotIds; }
46 inline bool SnapshotIdsHasBeenSet() const { return m_snapshotIdsHasBeenSet; }
47 template<typename SnapshotIdsT = Aws::Vector<Aws::String>>
48 void SetSnapshotIds(SnapshotIdsT&& value) { m_snapshotIdsHasBeenSet = true; m_snapshotIds = std::forward<SnapshotIdsT>(value); }
49 template<typename SnapshotIdsT = Aws::Vector<Aws::String>>
50 DescribeSnapshotsRequest& WithSnapshotIds(SnapshotIdsT&& value) { SetSnapshotIds(std::forward<SnapshotIdsT>(value)); return *this;}
51 template<typename SnapshotIdsT = Aws::String>
52 DescribeSnapshotsRequest& AddSnapshotIds(SnapshotIdsT&& value) { m_snapshotIdsHasBeenSet = true; m_snapshotIds.emplace_back(std::forward<SnapshotIdsT>(value)); return *this; }
54
56
60 inline const Aws::Vector<SnapshotFilter>& GetFilters() const { return m_filters; }
61 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
62 template<typename FiltersT = Aws::Vector<SnapshotFilter>>
63 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
64 template<typename FiltersT = Aws::Vector<SnapshotFilter>>
65 DescribeSnapshotsRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
66 template<typename FiltersT = SnapshotFilter>
67 DescribeSnapshotsRequest& AddFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters.emplace_back(std::forward<FiltersT>(value)); return *this; }
69
71
72 inline int GetMaxResults() const { return m_maxResults; }
73 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
74 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
75 inline DescribeSnapshotsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
77
79
80 inline const Aws::String& GetNextToken() const { return m_nextToken; }
81 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
82 template<typename NextTokenT = Aws::String>
83 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
84 template<typename NextTokenT = Aws::String>
85 DescribeSnapshotsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
87
89
95 inline bool GetIncludeShared() const { return m_includeShared; }
96 inline bool IncludeSharedHasBeenSet() const { return m_includeSharedHasBeenSet; }
97 inline void SetIncludeShared(bool value) { m_includeSharedHasBeenSet = true; m_includeShared = value; }
98 inline DescribeSnapshotsRequest& WithIncludeShared(bool value) { SetIncludeShared(value); return *this;}
100 private:
101
102 Aws::Vector<Aws::String> m_snapshotIds;
103 bool m_snapshotIdsHasBeenSet = false;
104
106 bool m_filtersHasBeenSet = false;
107
108 int m_maxResults{0};
109 bool m_maxResultsHasBeenSet = false;
110
111 Aws::String m_nextToken;
112 bool m_nextTokenHasBeenSet = false;
113
114 bool m_includeShared{false};
115 bool m_includeSharedHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace FSx
120} // 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