AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
DescribeRecoverySnapshotsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/drs/DrsRequest.h>
9#include <aws/drs/Drs_EXPORTS.h>
10#include <aws/drs/model/DescribeRecoverySnapshotsRequestFilters.h>
11#include <aws/drs/model/RecoverySnapshotsOrder.h>
12
13#include <utility>
14
15namespace Aws {
16namespace drs {
17namespace Model {
18
22 public:
23 AWS_DRS_API DescribeRecoverySnapshotsRequest() = 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 "DescribeRecoverySnapshots"; }
30
31 AWS_DRS_API Aws::String SerializePayload() const override;
32
34
37 inline const DescribeRecoverySnapshotsRequestFilters& GetFilters() const { return m_filters; }
38 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
39 template <typename FiltersT = DescribeRecoverySnapshotsRequestFilters>
40 void SetFilters(FiltersT&& value) {
41 m_filtersHasBeenSet = true;
42 m_filters = std::forward<FiltersT>(value);
43 }
44 template <typename FiltersT = DescribeRecoverySnapshotsRequestFilters>
46 SetFilters(std::forward<FiltersT>(value));
47 return *this;
48 }
50
52
55 inline int GetMaxResults() const { return m_maxResults; }
56 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
57 inline void SetMaxResults(int value) {
58 m_maxResultsHasBeenSet = true;
59 m_maxResults = value;
60 }
62 SetMaxResults(value);
63 return *this;
64 }
66
68
71 inline const Aws::String& GetNextToken() const { return m_nextToken; }
72 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
73 template <typename NextTokenT = Aws::String>
74 void SetNextToken(NextTokenT&& value) {
75 m_nextTokenHasBeenSet = true;
76 m_nextToken = std::forward<NextTokenT>(value);
77 }
78 template <typename NextTokenT = Aws::String>
80 SetNextToken(std::forward<NextTokenT>(value));
81 return *this;
82 }
84
86
89 inline RecoverySnapshotsOrder GetOrder() const { return m_order; }
90 inline bool OrderHasBeenSet() const { return m_orderHasBeenSet; }
91 inline void SetOrder(RecoverySnapshotsOrder value) {
92 m_orderHasBeenSet = true;
93 m_order = value;
94 }
96 SetOrder(value);
97 return *this;
98 }
100
102
105 inline const Aws::String& GetSourceServerID() const { return m_sourceServerID; }
106 inline bool SourceServerIDHasBeenSet() const { return m_sourceServerIDHasBeenSet; }
107 template <typename SourceServerIDT = Aws::String>
108 void SetSourceServerID(SourceServerIDT&& value) {
109 m_sourceServerIDHasBeenSet = true;
110 m_sourceServerID = std::forward<SourceServerIDT>(value);
111 }
112 template <typename SourceServerIDT = Aws::String>
114 SetSourceServerID(std::forward<SourceServerIDT>(value));
115 return *this;
116 }
118 private:
120
121 int m_maxResults{0};
122
123 Aws::String m_nextToken;
124
126
127 Aws::String m_sourceServerID;
128 bool m_filtersHasBeenSet = false;
129 bool m_maxResultsHasBeenSet = false;
130 bool m_nextTokenHasBeenSet = false;
131 bool m_orderHasBeenSet = false;
132 bool m_sourceServerIDHasBeenSet = false;
133};
134
135} // namespace Model
136} // namespace drs
137} // namespace Aws
DescribeRecoverySnapshotsRequest & WithMaxResults(int value)
DescribeRecoverySnapshotsRequest & WithSourceServerID(SourceServerIDT &&value)
DescribeRecoverySnapshotsRequest & WithFilters(FiltersT &&value)
AWS_DRS_API Aws::String SerializePayload() const override
DescribeRecoverySnapshotsRequest & WithNextToken(NextTokenT &&value)
const DescribeRecoverySnapshotsRequestFilters & GetFilters() const
DescribeRecoverySnapshotsRequest & WithOrder(RecoverySnapshotsOrder value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String