AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
ListBackupsRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/dynamodb/DynamoDBRequest.h>
10#include <aws/dynamodb/DynamoDB_EXPORTS.h>
11#include <aws/dynamodb/model/BackupTypeFilter.h>
12
13#include <utility>
14
15namespace Aws {
16namespace DynamoDB {
17namespace Model {
18
22 public:
23 AWS_DYNAMODB_API ListBackupsRequest() = 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 "ListBackups"; }
30
31 AWS_DYNAMODB_API Aws::String SerializePayload() const override;
32
34
38 AWS_DYNAMODB_API EndpointParameters GetEndpointContextParams() const override;
39
41
45 inline const Aws::String& GetTableName() const { return m_tableName; }
46 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
47 template <typename TableNameT = Aws::String>
48 void SetTableName(TableNameT&& value) {
49 m_tableNameHasBeenSet = true;
50 m_tableName = std::forward<TableNameT>(value);
51 }
52 template <typename TableNameT = Aws::String>
53 ListBackupsRequest& WithTableName(TableNameT&& value) {
54 SetTableName(std::forward<TableNameT>(value));
55 return *this;
56 }
58
60
63 inline int GetLimit() const { return m_limit; }
64 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
65 inline void SetLimit(int value) {
66 m_limitHasBeenSet = true;
67 m_limit = value;
68 }
69 inline ListBackupsRequest& WithLimit(int value) {
70 SetLimit(value);
71 return *this;
72 }
74
76
80 inline const Aws::Utils::DateTime& GetTimeRangeLowerBound() const { return m_timeRangeLowerBound; }
81 inline bool TimeRangeLowerBoundHasBeenSet() const { return m_timeRangeLowerBoundHasBeenSet; }
82 template <typename TimeRangeLowerBoundT = Aws::Utils::DateTime>
83 void SetTimeRangeLowerBound(TimeRangeLowerBoundT&& value) {
84 m_timeRangeLowerBoundHasBeenSet = true;
85 m_timeRangeLowerBound = std::forward<TimeRangeLowerBoundT>(value);
86 }
87 template <typename TimeRangeLowerBoundT = Aws::Utils::DateTime>
88 ListBackupsRequest& WithTimeRangeLowerBound(TimeRangeLowerBoundT&& value) {
89 SetTimeRangeLowerBound(std::forward<TimeRangeLowerBoundT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::Utils::DateTime& GetTimeRangeUpperBound() const { return m_timeRangeUpperBound; }
100 inline bool TimeRangeUpperBoundHasBeenSet() const { return m_timeRangeUpperBoundHasBeenSet; }
101 template <typename TimeRangeUpperBoundT = Aws::Utils::DateTime>
102 void SetTimeRangeUpperBound(TimeRangeUpperBoundT&& value) {
103 m_timeRangeUpperBoundHasBeenSet = true;
104 m_timeRangeUpperBound = std::forward<TimeRangeUpperBoundT>(value);
105 }
106 template <typename TimeRangeUpperBoundT = Aws::Utils::DateTime>
107 ListBackupsRequest& WithTimeRangeUpperBound(TimeRangeUpperBoundT&& value) {
108 SetTimeRangeUpperBound(std::forward<TimeRangeUpperBoundT>(value));
109 return *this;
110 }
112
114
121 inline const Aws::String& GetExclusiveStartBackupArn() const { return m_exclusiveStartBackupArn; }
122 inline bool ExclusiveStartBackupArnHasBeenSet() const { return m_exclusiveStartBackupArnHasBeenSet; }
123 template <typename ExclusiveStartBackupArnT = Aws::String>
124 void SetExclusiveStartBackupArn(ExclusiveStartBackupArnT&& value) {
125 m_exclusiveStartBackupArnHasBeenSet = true;
126 m_exclusiveStartBackupArn = std::forward<ExclusiveStartBackupArnT>(value);
127 }
128 template <typename ExclusiveStartBackupArnT = Aws::String>
129 ListBackupsRequest& WithExclusiveStartBackupArn(ExclusiveStartBackupArnT&& value) {
130 SetExclusiveStartBackupArn(std::forward<ExclusiveStartBackupArnT>(value));
131 return *this;
132 }
134
136
145 inline BackupTypeFilter GetBackupType() const { return m_backupType; }
146 inline bool BackupTypeHasBeenSet() const { return m_backupTypeHasBeenSet; }
147 inline void SetBackupType(BackupTypeFilter value) {
148 m_backupTypeHasBeenSet = true;
149 m_backupType = value;
150 }
152 SetBackupType(value);
153 return *this;
154 }
156 private:
157 Aws::String m_tableName;
158
159 int m_limit{0};
160
161 Aws::Utils::DateTime m_timeRangeLowerBound{};
162
163 Aws::Utils::DateTime m_timeRangeUpperBound{};
164
165 Aws::String m_exclusiveStartBackupArn;
166
168 bool m_tableNameHasBeenSet = false;
169 bool m_limitHasBeenSet = false;
170 bool m_timeRangeLowerBoundHasBeenSet = false;
171 bool m_timeRangeUpperBoundHasBeenSet = false;
172 bool m_exclusiveStartBackupArnHasBeenSet = false;
173 bool m_backupTypeHasBeenSet = false;
174};
175
176} // namespace Model
177} // namespace DynamoDB
178} // namespace Aws
Aws::Endpoint::EndpointParameters EndpointParameters
void SetExclusiveStartBackupArn(ExclusiveStartBackupArnT &&value)
ListBackupsRequest & WithLimit(int value)
void SetTimeRangeLowerBound(TimeRangeLowerBoundT &&value)
const Aws::String & GetExclusiveStartBackupArn() const
AWS_DYNAMODB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetBackupType(BackupTypeFilter value)
ListBackupsRequest & WithTableName(TableNameT &&value)
void SetTimeRangeUpperBound(TimeRangeUpperBoundT &&value)
AWS_DYNAMODB_API ListBackupsRequest()=default
ListBackupsRequest & WithBackupType(BackupTypeFilter value)
virtual const char * GetServiceRequestName() const override
ListBackupsRequest & WithTimeRangeLowerBound(TimeRangeLowerBoundT &&value)
const Aws::Utils::DateTime & GetTimeRangeLowerBound() const
ListBackupsRequest & WithExclusiveStartBackupArn(ExclusiveStartBackupArnT &&value)
AWS_DYNAMODB_API EndpointParameters GetEndpointContextParams() const override
const Aws::Utils::DateTime & GetTimeRangeUpperBound() const
ListBackupsRequest & WithTimeRangeUpperBound(TimeRangeUpperBoundT &&value)
AWS_DYNAMODB_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String