AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ListSnapshotsRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/redshift-serverless/RedshiftServerlessRequest.h>
10#include <aws/redshift-serverless/RedshiftServerless_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace RedshiftServerless {
16namespace Model {
17
21 public:
22 AWS_REDSHIFTSERVERLESS_API ListSnapshotsRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "ListSnapshots"; }
29
30 AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override;
31
32 AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
38 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
39 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
40 template <typename EndTimeT = Aws::Utils::DateTime>
41 void SetEndTime(EndTimeT&& value) {
42 m_endTimeHasBeenSet = true;
43 m_endTime = std::forward<EndTimeT>(value);
44 }
45 template <typename EndTimeT = Aws::Utils::DateTime>
46 ListSnapshotsRequest& WithEndTime(EndTimeT&& value) {
47 SetEndTime(std::forward<EndTimeT>(value));
48 return *this;
49 }
51
53
57 inline int GetMaxResults() const { return m_maxResults; }
58 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
59 inline void SetMaxResults(int value) {
60 m_maxResultsHasBeenSet = true;
61 m_maxResults = value;
62 }
64 SetMaxResults(value);
65 return *this;
66 }
68
70
74 inline const Aws::String& GetNamespaceArn() const { return m_namespaceArn; }
75 inline bool NamespaceArnHasBeenSet() const { return m_namespaceArnHasBeenSet; }
76 template <typename NamespaceArnT = Aws::String>
77 void SetNamespaceArn(NamespaceArnT&& value) {
78 m_namespaceArnHasBeenSet = true;
79 m_namespaceArn = std::forward<NamespaceArnT>(value);
80 }
81 template <typename NamespaceArnT = Aws::String>
82 ListSnapshotsRequest& WithNamespaceArn(NamespaceArnT&& value) {
83 SetNamespaceArn(std::forward<NamespaceArnT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetNamespaceName() const { return m_namespaceName; }
93 inline bool NamespaceNameHasBeenSet() const { return m_namespaceNameHasBeenSet; }
94 template <typename NamespaceNameT = Aws::String>
95 void SetNamespaceName(NamespaceNameT&& value) {
96 m_namespaceNameHasBeenSet = true;
97 m_namespaceName = std::forward<NamespaceNameT>(value);
98 }
99 template <typename NamespaceNameT = Aws::String>
100 ListSnapshotsRequest& WithNamespaceName(NamespaceNameT&& value) {
101 SetNamespaceName(std::forward<NamespaceNameT>(value));
102 return *this;
103 }
105
107
112 inline const Aws::String& GetNextToken() const { return m_nextToken; }
113 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
114 template <typename NextTokenT = Aws::String>
115 void SetNextToken(NextTokenT&& value) {
116 m_nextTokenHasBeenSet = true;
117 m_nextToken = std::forward<NextTokenT>(value);
118 }
119 template <typename NextTokenT = Aws::String>
120 ListSnapshotsRequest& WithNextToken(NextTokenT&& value) {
121 SetNextToken(std::forward<NextTokenT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::String& GetOwnerAccount() const { return m_ownerAccount; }
131 inline bool OwnerAccountHasBeenSet() const { return m_ownerAccountHasBeenSet; }
132 template <typename OwnerAccountT = Aws::String>
133 void SetOwnerAccount(OwnerAccountT&& value) {
134 m_ownerAccountHasBeenSet = true;
135 m_ownerAccount = std::forward<OwnerAccountT>(value);
136 }
137 template <typename OwnerAccountT = Aws::String>
138 ListSnapshotsRequest& WithOwnerAccount(OwnerAccountT&& value) {
139 SetOwnerAccount(std::forward<OwnerAccountT>(value));
140 return *this;
141 }
143
145
148 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
149 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
150 template <typename StartTimeT = Aws::Utils::DateTime>
151 void SetStartTime(StartTimeT&& value) {
152 m_startTimeHasBeenSet = true;
153 m_startTime = std::forward<StartTimeT>(value);
154 }
155 template <typename StartTimeT = Aws::Utils::DateTime>
156 ListSnapshotsRequest& WithStartTime(StartTimeT&& value) {
157 SetStartTime(std::forward<StartTimeT>(value));
158 return *this;
159 }
161 private:
162 Aws::Utils::DateTime m_endTime{};
163
164 int m_maxResults{0};
165
166 Aws::String m_namespaceArn;
167
168 Aws::String m_namespaceName;
169
170 Aws::String m_nextToken;
171
172 Aws::String m_ownerAccount;
173
174 Aws::Utils::DateTime m_startTime{};
175 bool m_endTimeHasBeenSet = false;
176 bool m_maxResultsHasBeenSet = false;
177 bool m_namespaceArnHasBeenSet = false;
178 bool m_namespaceNameHasBeenSet = false;
179 bool m_nextTokenHasBeenSet = false;
180 bool m_ownerAccountHasBeenSet = false;
181 bool m_startTimeHasBeenSet = false;
182};
183
184} // namespace Model
185} // namespace RedshiftServerless
186} // namespace Aws
ListSnapshotsRequest & WithStartTime(StartTimeT &&value)
AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override
ListSnapshotsRequest & WithOwnerAccount(OwnerAccountT &&value)
virtual const char * GetServiceRequestName() const override
ListSnapshotsRequest & WithNamespaceName(NamespaceNameT &&value)
ListSnapshotsRequest & WithNextToken(NextTokenT &&value)
ListSnapshotsRequest & WithEndTime(EndTimeT &&value)
ListSnapshotsRequest & WithNamespaceArn(NamespaceArnT &&value)
AWS_REDSHIFTSERVERLESS_API ListSnapshotsRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String