AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetSnapshotIds(const Aws::Vector<Aws::String>& value) { m_snapshotIdsHasBeenSet = true; m_snapshotIds = value; }
48 inline void SetSnapshotIds(Aws::Vector<Aws::String>&& value) { m_snapshotIdsHasBeenSet = true; m_snapshotIds = std::move(value); }
50 inline DescribeSnapshotsRequest& WithSnapshotIds(Aws::Vector<Aws::String>&& value) { SetSnapshotIds(std::move(value)); return *this;}
51 inline DescribeSnapshotsRequest& AddSnapshotIds(const Aws::String& value) { m_snapshotIdsHasBeenSet = true; m_snapshotIds.push_back(value); return *this; }
52 inline DescribeSnapshotsRequest& AddSnapshotIds(Aws::String&& value) { m_snapshotIdsHasBeenSet = true; m_snapshotIds.push_back(std::move(value)); return *this; }
53 inline DescribeSnapshotsRequest& AddSnapshotIds(const char* value) { m_snapshotIdsHasBeenSet = true; m_snapshotIds.push_back(value); return *this; }
55
57
61 inline const Aws::Vector<SnapshotFilter>& GetFilters() const{ return m_filters; }
62 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
63 inline void SetFilters(const Aws::Vector<SnapshotFilter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
64 inline void SetFilters(Aws::Vector<SnapshotFilter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
65 inline DescribeSnapshotsRequest& WithFilters(const Aws::Vector<SnapshotFilter>& value) { SetFilters(value); return *this;}
66 inline DescribeSnapshotsRequest& WithFilters(Aws::Vector<SnapshotFilter>&& value) { SetFilters(std::move(value)); return *this;}
67 inline DescribeSnapshotsRequest& AddFilters(const SnapshotFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
68 inline DescribeSnapshotsRequest& AddFilters(SnapshotFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
70
72
73 inline int GetMaxResults() const{ return m_maxResults; }
74 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
75 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
76 inline DescribeSnapshotsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
78
80
81 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
82 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
83 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
84 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
85 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
86 inline DescribeSnapshotsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
87 inline DescribeSnapshotsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
88 inline DescribeSnapshotsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
90
92
98 inline bool GetIncludeShared() const{ return m_includeShared; }
99 inline bool IncludeSharedHasBeenSet() const { return m_includeSharedHasBeenSet; }
100 inline void SetIncludeShared(bool value) { m_includeSharedHasBeenSet = true; m_includeShared = value; }
101 inline DescribeSnapshotsRequest& WithIncludeShared(bool value) { SetIncludeShared(value); return *this;}
103 private:
104
105 Aws::Vector<Aws::String> m_snapshotIds;
106 bool m_snapshotIdsHasBeenSet = false;
107
109 bool m_filtersHasBeenSet = false;
110
111 int m_maxResults;
112 bool m_maxResultsHasBeenSet = false;
113
114 Aws::String m_nextToken;
115 bool m_nextTokenHasBeenSet = false;
116
117 bool m_includeShared;
118 bool m_includeSharedHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace FSx
123} // namespace Aws
DescribeSnapshotsRequest & AddSnapshotIds(const char *value)
DescribeSnapshotsRequest & AddSnapshotIds(const Aws::String &value)
AWS_FSX_API Aws::String SerializePayload() const override
DescribeSnapshotsRequest & WithSnapshotIds(const Aws::Vector< Aws::String > &value)
DescribeSnapshotsRequest & WithNextToken(const Aws::String &value)
DescribeSnapshotsRequest & WithNextToken(const char *value)
void SetFilters(Aws::Vector< SnapshotFilter > &&value)
DescribeSnapshotsRequest & WithMaxResults(int value)
DescribeSnapshotsRequest & WithSnapshotIds(Aws::Vector< Aws::String > &&value)
const Aws::Vector< SnapshotFilter > & GetFilters() const
const Aws::Vector< Aws::String > & GetSnapshotIds() const
void SetSnapshotIds(Aws::Vector< Aws::String > &&value)
DescribeSnapshotsRequest & AddSnapshotIds(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
DescribeSnapshotsRequest & WithFilters(Aws::Vector< SnapshotFilter > &&value)
DescribeSnapshotsRequest & WithIncludeShared(bool value)
DescribeSnapshotsRequest & WithFilters(const Aws::Vector< SnapshotFilter > &value)
AWS_FSX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeSnapshotsRequest & AddFilters(const SnapshotFilter &value)
DescribeSnapshotsRequest & WithNextToken(Aws::String &&value)
void SetFilters(const Aws::Vector< SnapshotFilter > &value)
DescribeSnapshotsRequest & AddFilters(SnapshotFilter &&value)
void SetSnapshotIds(const Aws::Vector< Aws::String > &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