AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ListSnapshotsRequest.h
1
6#pragma once
7#include <aws/redshift-serverless/RedshiftServerless_EXPORTS.h>
8#include <aws/redshift-serverless/RedshiftServerlessRequest.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace RedshiftServerless
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_REDSHIFTSERVERLESS_API ListSnapshotsRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ListSnapshots"; }
32
33 AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override;
34
35 AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
42 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
43 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
44 template<typename EndTimeT = Aws::Utils::DateTime>
45 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
46 template<typename EndTimeT = Aws::Utils::DateTime>
47 ListSnapshotsRequest& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
49
51
55 inline int GetMaxResults() const { return m_maxResults; }
56 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
57 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
58 inline ListSnapshotsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
60
62
66 inline const Aws::String& GetNamespaceArn() const { return m_namespaceArn; }
67 inline bool NamespaceArnHasBeenSet() const { return m_namespaceArnHasBeenSet; }
68 template<typename NamespaceArnT = Aws::String>
69 void SetNamespaceArn(NamespaceArnT&& value) { m_namespaceArnHasBeenSet = true; m_namespaceArn = std::forward<NamespaceArnT>(value); }
70 template<typename NamespaceArnT = Aws::String>
71 ListSnapshotsRequest& WithNamespaceArn(NamespaceArnT&& value) { SetNamespaceArn(std::forward<NamespaceArnT>(value)); return *this;}
73
75
78 inline const Aws::String& GetNamespaceName() const { return m_namespaceName; }
79 inline bool NamespaceNameHasBeenSet() const { return m_namespaceNameHasBeenSet; }
80 template<typename NamespaceNameT = Aws::String>
81 void SetNamespaceName(NamespaceNameT&& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = std::forward<NamespaceNameT>(value); }
82 template<typename NamespaceNameT = Aws::String>
83 ListSnapshotsRequest& WithNamespaceName(NamespaceNameT&& value) { SetNamespaceName(std::forward<NamespaceNameT>(value)); return *this;}
85
87
92 inline const Aws::String& GetNextToken() const { return m_nextToken; }
93 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
94 template<typename NextTokenT = Aws::String>
95 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
96 template<typename NextTokenT = Aws::String>
97 ListSnapshotsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
99
101
104 inline const Aws::String& GetOwnerAccount() const { return m_ownerAccount; }
105 inline bool OwnerAccountHasBeenSet() const { return m_ownerAccountHasBeenSet; }
106 template<typename OwnerAccountT = Aws::String>
107 void SetOwnerAccount(OwnerAccountT&& value) { m_ownerAccountHasBeenSet = true; m_ownerAccount = std::forward<OwnerAccountT>(value); }
108 template<typename OwnerAccountT = Aws::String>
109 ListSnapshotsRequest& WithOwnerAccount(OwnerAccountT&& value) { SetOwnerAccount(std::forward<OwnerAccountT>(value)); return *this;}
111
113
116 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
117 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
118 template<typename StartTimeT = Aws::Utils::DateTime>
119 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
120 template<typename StartTimeT = Aws::Utils::DateTime>
121 ListSnapshotsRequest& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
123 private:
124
125 Aws::Utils::DateTime m_endTime{};
126 bool m_endTimeHasBeenSet = false;
127
128 int m_maxResults{0};
129 bool m_maxResultsHasBeenSet = false;
130
131 Aws::String m_namespaceArn;
132 bool m_namespaceArnHasBeenSet = false;
133
134 Aws::String m_namespaceName;
135 bool m_namespaceNameHasBeenSet = false;
136
137 Aws::String m_nextToken;
138 bool m_nextTokenHasBeenSet = false;
139
140 Aws::String m_ownerAccount;
141 bool m_ownerAccountHasBeenSet = false;
142
143 Aws::Utils::DateTime m_startTime{};
144 bool m_startTimeHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace RedshiftServerless
149} // 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