AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
45 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
46 inline ListSnapshotsRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
47 inline ListSnapshotsRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(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 inline void SetNamespaceArn(const Aws::String& value) { m_namespaceArnHasBeenSet = true; m_namespaceArn = value; }
69 inline void SetNamespaceArn(Aws::String&& value) { m_namespaceArnHasBeenSet = true; m_namespaceArn = std::move(value); }
70 inline void SetNamespaceArn(const char* value) { m_namespaceArnHasBeenSet = true; m_namespaceArn.assign(value); }
71 inline ListSnapshotsRequest& WithNamespaceArn(const Aws::String& value) { SetNamespaceArn(value); return *this;}
72 inline ListSnapshotsRequest& WithNamespaceArn(Aws::String&& value) { SetNamespaceArn(std::move(value)); return *this;}
73 inline ListSnapshotsRequest& WithNamespaceArn(const char* value) { SetNamespaceArn(value); return *this;}
75
77
80 inline const Aws::String& GetNamespaceName() const{ return m_namespaceName; }
81 inline bool NamespaceNameHasBeenSet() const { return m_namespaceNameHasBeenSet; }
82 inline void SetNamespaceName(const Aws::String& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = value; }
83 inline void SetNamespaceName(Aws::String&& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = std::move(value); }
84 inline void SetNamespaceName(const char* value) { m_namespaceNameHasBeenSet = true; m_namespaceName.assign(value); }
85 inline ListSnapshotsRequest& WithNamespaceName(const Aws::String& value) { SetNamespaceName(value); return *this;}
86 inline ListSnapshotsRequest& WithNamespaceName(Aws::String&& value) { SetNamespaceName(std::move(value)); return *this;}
87 inline ListSnapshotsRequest& WithNamespaceName(const char* value) { SetNamespaceName(value); return *this;}
89
91
96 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
97 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
98 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
99 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
100 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
101 inline ListSnapshotsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
102 inline ListSnapshotsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
103 inline ListSnapshotsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
105
107
110 inline const Aws::String& GetOwnerAccount() const{ return m_ownerAccount; }
111 inline bool OwnerAccountHasBeenSet() const { return m_ownerAccountHasBeenSet; }
112 inline void SetOwnerAccount(const Aws::String& value) { m_ownerAccountHasBeenSet = true; m_ownerAccount = value; }
113 inline void SetOwnerAccount(Aws::String&& value) { m_ownerAccountHasBeenSet = true; m_ownerAccount = std::move(value); }
114 inline void SetOwnerAccount(const char* value) { m_ownerAccountHasBeenSet = true; m_ownerAccount.assign(value); }
115 inline ListSnapshotsRequest& WithOwnerAccount(const Aws::String& value) { SetOwnerAccount(value); return *this;}
116 inline ListSnapshotsRequest& WithOwnerAccount(Aws::String&& value) { SetOwnerAccount(std::move(value)); return *this;}
117 inline ListSnapshotsRequest& WithOwnerAccount(const char* value) { SetOwnerAccount(value); return *this;}
119
121
124 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
125 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
126 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
127 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
128 inline ListSnapshotsRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
129 inline ListSnapshotsRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
131 private:
132
133 Aws::Utils::DateTime m_endTime;
134 bool m_endTimeHasBeenSet = false;
135
136 int m_maxResults;
137 bool m_maxResultsHasBeenSet = false;
138
139 Aws::String m_namespaceArn;
140 bool m_namespaceArnHasBeenSet = false;
141
142 Aws::String m_namespaceName;
143 bool m_namespaceNameHasBeenSet = false;
144
145 Aws::String m_nextToken;
146 bool m_nextTokenHasBeenSet = false;
147
148 Aws::String m_ownerAccount;
149 bool m_ownerAccountHasBeenSet = false;
150
151 Aws::Utils::DateTime m_startTime;
152 bool m_startTimeHasBeenSet = false;
153 };
154
155} // namespace Model
156} // namespace RedshiftServerless
157} // namespace Aws
ListSnapshotsRequest & WithNextToken(const Aws::String &value)
ListSnapshotsRequest & WithNamespaceName(const Aws::String &value)
ListSnapshotsRequest & WithNamespaceArn(const char *value)
ListSnapshotsRequest & WithStartTime(const Aws::Utils::DateTime &value)
AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override
ListSnapshotsRequest & WithEndTime(Aws::Utils::DateTime &&value)
ListSnapshotsRequest & WithNamespaceName(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
ListSnapshotsRequest & WithOwnerAccount(const Aws::String &value)
ListSnapshotsRequest & WithStartTime(Aws::Utils::DateTime &&value)
ListSnapshotsRequest & WithNextToken(Aws::String &&value)
void SetEndTime(const Aws::Utils::DateTime &value)
ListSnapshotsRequest & WithOwnerAccount(const char *value)
ListSnapshotsRequest & WithEndTime(const Aws::Utils::DateTime &value)
ListSnapshotsRequest & WithNamespaceName(const char *value)
ListSnapshotsRequest & WithNamespaceArn(Aws::String &&value)
void SetStartTime(const Aws::Utils::DateTime &value)
ListSnapshotsRequest & WithNamespaceArn(const Aws::String &value)
ListSnapshotsRequest & WithOwnerAccount(Aws::String &&value)
ListSnapshotsRequest & WithNextToken(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String