AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeVolumesRequest.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/VolumeFilter.h>
12
13#include <utility>
14
15namespace Aws {
16namespace FSx {
17namespace Model {
18
22 public:
23 AWS_FSX_API DescribeVolumesRequest() = 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 "DescribeVolumes"; }
30
31 AWS_FSX_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::Vector<Aws::String>& GetVolumeIds() const { return m_volumeIds; }
40 inline bool VolumeIdsHasBeenSet() const { return m_volumeIdsHasBeenSet; }
41 template <typename VolumeIdsT = Aws::Vector<Aws::String>>
42 void SetVolumeIds(VolumeIdsT&& value) {
43 m_volumeIdsHasBeenSet = true;
44 m_volumeIds = std::forward<VolumeIdsT>(value);
45 }
46 template <typename VolumeIdsT = Aws::Vector<Aws::String>>
48 SetVolumeIds(std::forward<VolumeIdsT>(value));
49 return *this;
50 }
51 template <typename VolumeIdsT = Aws::String>
52 DescribeVolumesRequest& AddVolumeIds(VolumeIdsT&& value) {
53 m_volumeIdsHasBeenSet = true;
54 m_volumeIds.emplace_back(std::forward<VolumeIdsT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::Vector<VolumeFilter>& GetFilters() const { return m_filters; }
65 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
66 template <typename FiltersT = Aws::Vector<VolumeFilter>>
67 void SetFilters(FiltersT&& value) {
68 m_filtersHasBeenSet = true;
69 m_filters = std::forward<FiltersT>(value);
70 }
71 template <typename FiltersT = Aws::Vector<VolumeFilter>>
73 SetFilters(std::forward<FiltersT>(value));
74 return *this;
75 }
76 template <typename FiltersT = VolumeFilter>
78 m_filtersHasBeenSet = true;
79 m_filters.emplace_back(std::forward<FiltersT>(value));
80 return *this;
81 }
83
85
86 inline int GetMaxResults() const { return m_maxResults; }
87 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
88 inline void SetMaxResults(int value) {
89 m_maxResultsHasBeenSet = true;
90 m_maxResults = value;
91 }
93 SetMaxResults(value);
94 return *this;
95 }
97
99
100 inline const Aws::String& GetNextToken() const { return m_nextToken; }
101 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
102 template <typename NextTokenT = Aws::String>
103 void SetNextToken(NextTokenT&& value) {
104 m_nextTokenHasBeenSet = true;
105 m_nextToken = std::forward<NextTokenT>(value);
106 }
107 template <typename NextTokenT = Aws::String>
109 SetNextToken(std::forward<NextTokenT>(value));
110 return *this;
111 }
113 private:
114 Aws::Vector<Aws::String> m_volumeIds;
115
117
118 int m_maxResults{0};
119
120 Aws::String m_nextToken;
121 bool m_volumeIdsHasBeenSet = false;
122 bool m_filtersHasBeenSet = false;
123 bool m_maxResultsHasBeenSet = false;
124 bool m_nextTokenHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace FSx
129} // namespace Aws
AWS_FSX_API DescribeVolumesRequest()=default
virtual const char * GetServiceRequestName() const override
DescribeVolumesRequest & WithNextToken(NextTokenT &&value)
const Aws::Vector< Aws::String > & GetVolumeIds() const
AWS_FSX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_FSX_API Aws::String SerializePayload() const override
DescribeVolumesRequest & WithFilters(FiltersT &&value)
DescribeVolumesRequest & WithMaxResults(int value)
const Aws::Vector< VolumeFilter > & GetFilters() const
DescribeVolumesRequest & WithVolumeIds(VolumeIdsT &&value)
DescribeVolumesRequest & AddVolumeIds(VolumeIdsT &&value)
DescribeVolumesRequest & AddFilters(FiltersT &&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