AWS SDK for C++

AWS SDK for C++ Version 1.11.787

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 Aws::String& GetSourceServerID() const { return m_sourceServerID; }
38 inline bool SourceServerIDHasBeenSet() const { return m_sourceServerIDHasBeenSet; }
39 template <typename SourceServerIDT = Aws::String>
40 void SetSourceServerID(SourceServerIDT&& value) {
41 m_sourceServerIDHasBeenSet = true;
42 m_sourceServerID = std::forward<SourceServerIDT>(value);
43 }
44 template <typename SourceServerIDT = Aws::String>
46 SetSourceServerID(std::forward<SourceServerIDT>(value));
47 return *this;
48 }
50
52
55 inline const DescribeRecoverySnapshotsRequestFilters& GetFilters() const { return m_filters; }
56 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
57 template <typename FiltersT = DescribeRecoverySnapshotsRequestFilters>
58 void SetFilters(FiltersT&& value) {
59 m_filtersHasBeenSet = true;
60 m_filters = std::forward<FiltersT>(value);
61 }
62 template <typename FiltersT = DescribeRecoverySnapshotsRequestFilters>
64 SetFilters(std::forward<FiltersT>(value));
65 return *this;
66 }
68
70
73 inline RecoverySnapshotsOrder GetOrder() const { return m_order; }
74 inline bool OrderHasBeenSet() const { return m_orderHasBeenSet; }
75 inline void SetOrder(RecoverySnapshotsOrder value) {
76 m_orderHasBeenSet = true;
77 m_order = value;
78 }
80 SetOrder(value);
81 return *this;
82 }
84
86
89 inline int GetMaxResults() const { return m_maxResults; }
90 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
91 inline void SetMaxResults(int value) {
92 m_maxResultsHasBeenSet = true;
93 m_maxResults = value;
94 }
96 SetMaxResults(value);
97 return *this;
98 }
100
102
105 inline const Aws::String& GetNextToken() const { return m_nextToken; }
106 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
107 template <typename NextTokenT = Aws::String>
108 void SetNextToken(NextTokenT&& value) {
109 m_nextTokenHasBeenSet = true;
110 m_nextToken = std::forward<NextTokenT>(value);
111 }
112 template <typename NextTokenT = Aws::String>
114 SetNextToken(std::forward<NextTokenT>(value));
115 return *this;
116 }
118 private:
119 Aws::String m_sourceServerID;
120
122
124
125 int m_maxResults{0};
126
127 Aws::String m_nextToken;
128 bool m_sourceServerIDHasBeenSet = false;
129 bool m_filtersHasBeenSet = false;
130 bool m_orderHasBeenSet = false;
131 bool m_maxResultsHasBeenSet = false;
132 bool m_nextTokenHasBeenSet = 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