AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeVolumesRequest.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/VolumeFilter.h>
12#include <utility>
13
14namespace Aws
15{
16namespace FSx
17{
18namespace Model
19{
20
24 {
25 public:
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 "DescribeVolumes"; }
33
34 AWS_FSX_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::Vector<Aws::String>& GetVolumeIds() const{ return m_volumeIds; }
44 inline bool VolumeIdsHasBeenSet() const { return m_volumeIdsHasBeenSet; }
45 inline void SetVolumeIds(const Aws::Vector<Aws::String>& value) { m_volumeIdsHasBeenSet = true; m_volumeIds = value; }
46 inline void SetVolumeIds(Aws::Vector<Aws::String>&& value) { m_volumeIdsHasBeenSet = true; m_volumeIds = std::move(value); }
47 inline DescribeVolumesRequest& WithVolumeIds(const Aws::Vector<Aws::String>& value) { SetVolumeIds(value); return *this;}
48 inline DescribeVolumesRequest& WithVolumeIds(Aws::Vector<Aws::String>&& value) { SetVolumeIds(std::move(value)); return *this;}
49 inline DescribeVolumesRequest& AddVolumeIds(const Aws::String& value) { m_volumeIdsHasBeenSet = true; m_volumeIds.push_back(value); return *this; }
50 inline DescribeVolumesRequest& AddVolumeIds(Aws::String&& value) { m_volumeIdsHasBeenSet = true; m_volumeIds.push_back(std::move(value)); return *this; }
51 inline DescribeVolumesRequest& AddVolumeIds(const char* value) { m_volumeIdsHasBeenSet = true; m_volumeIds.push_back(value); return *this; }
53
55
59 inline const Aws::Vector<VolumeFilter>& GetFilters() const{ return m_filters; }
60 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
61 inline void SetFilters(const Aws::Vector<VolumeFilter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
62 inline void SetFilters(Aws::Vector<VolumeFilter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
63 inline DescribeVolumesRequest& WithFilters(const Aws::Vector<VolumeFilter>& value) { SetFilters(value); return *this;}
64 inline DescribeVolumesRequest& WithFilters(Aws::Vector<VolumeFilter>&& value) { SetFilters(std::move(value)); return *this;}
65 inline DescribeVolumesRequest& AddFilters(const VolumeFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
66 inline DescribeVolumesRequest& AddFilters(VolumeFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
68
70
71 inline int GetMaxResults() const{ return m_maxResults; }
72 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
73 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
74 inline DescribeVolumesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
76
78
79 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
80 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
81 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
82 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
83 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
84 inline DescribeVolumesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
85 inline DescribeVolumesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
86 inline DescribeVolumesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
88 private:
89
90 Aws::Vector<Aws::String> m_volumeIds;
91 bool m_volumeIdsHasBeenSet = false;
92
94 bool m_filtersHasBeenSet = false;
95
96 int m_maxResults;
97 bool m_maxResultsHasBeenSet = false;
98
99 Aws::String m_nextToken;
100 bool m_nextTokenHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace FSx
105} // namespace Aws
void SetVolumeIds(const Aws::Vector< Aws::String > &value)
DescribeVolumesRequest & AddVolumeIds(const char *value)
DescribeVolumesRequest & AddVolumeIds(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
DescribeVolumesRequest & WithNextToken(const char *value)
void SetFilters(const Aws::Vector< VolumeFilter > &value)
const Aws::Vector< Aws::String > & GetVolumeIds() const
DescribeVolumesRequest & WithVolumeIds(const Aws::Vector< Aws::String > &value)
DescribeVolumesRequest & AddFilters(VolumeFilter &&value)
void SetFilters(Aws::Vector< VolumeFilter > &&value)
AWS_FSX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeVolumesRequest & WithFilters(const Aws::Vector< VolumeFilter > &value)
DescribeVolumesRequest & WithNextToken(Aws::String &&value)
AWS_FSX_API Aws::String SerializePayload() const override
void SetVolumeIds(Aws::Vector< Aws::String > &&value)
DescribeVolumesRequest & AddFilters(const VolumeFilter &value)
DescribeVolumesRequest & WithNextToken(const Aws::String &value)
DescribeVolumesRequest & WithMaxResults(int value)
const Aws::Vector< VolumeFilter > & GetFilters() const
void SetNextToken(const Aws::String &value)
DescribeVolumesRequest & AddVolumeIds(const Aws::String &value)
DescribeVolumesRequest & WithVolumeIds(Aws::Vector< Aws::String > &&value)
DescribeVolumesRequest & WithFilters(Aws::Vector< VolumeFilter > &&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