AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
RestoreTableFromBackupRequest.h
1
6#pragma once
7#include <aws/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/dynamodb/DynamoDBRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/dynamodb/model/BillingMode.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/dynamodb/model/ProvisionedThroughput.h>
13#include <aws/dynamodb/model/OnDemandThroughput.h>
14#include <aws/dynamodb/model/SSESpecification.h>
15#include <aws/dynamodb/model/GlobalSecondaryIndex.h>
16#include <aws/dynamodb/model/LocalSecondaryIndex.h>
17#include <utility>
18
19namespace Aws
20{
21namespace DynamoDB
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_DYNAMODB_API RestoreTableFromBackupRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "RestoreTableFromBackup"; }
38
39 AWS_DYNAMODB_API Aws::String SerializePayload() const override;
40
42
46 AWS_DYNAMODB_API EndpointParameters GetEndpointContextParams() const override;
47
49
52 inline const Aws::String& GetTargetTableName() const { return m_targetTableName; }
53 inline bool TargetTableNameHasBeenSet() const { return m_targetTableNameHasBeenSet; }
54 template<typename TargetTableNameT = Aws::String>
55 void SetTargetTableName(TargetTableNameT&& value) { m_targetTableNameHasBeenSet = true; m_targetTableName = std::forward<TargetTableNameT>(value); }
56 template<typename TargetTableNameT = Aws::String>
57 RestoreTableFromBackupRequest& WithTargetTableName(TargetTableNameT&& value) { SetTargetTableName(std::forward<TargetTableNameT>(value)); return *this;}
59
61
64 inline const Aws::String& GetBackupArn() const { return m_backupArn; }
65 inline bool BackupArnHasBeenSet() const { return m_backupArnHasBeenSet; }
66 template<typename BackupArnT = Aws::String>
67 void SetBackupArn(BackupArnT&& value) { m_backupArnHasBeenSet = true; m_backupArn = std::forward<BackupArnT>(value); }
68 template<typename BackupArnT = Aws::String>
69 RestoreTableFromBackupRequest& WithBackupArn(BackupArnT&& value) { SetBackupArn(std::forward<BackupArnT>(value)); return *this;}
71
73
76 inline BillingMode GetBillingModeOverride() const { return m_billingModeOverride; }
77 inline bool BillingModeOverrideHasBeenSet() const { return m_billingModeOverrideHasBeenSet; }
78 inline void SetBillingModeOverride(BillingMode value) { m_billingModeOverrideHasBeenSet = true; m_billingModeOverride = value; }
81
83
88 inline const Aws::Vector<GlobalSecondaryIndex>& GetGlobalSecondaryIndexOverride() const { return m_globalSecondaryIndexOverride; }
89 inline bool GlobalSecondaryIndexOverrideHasBeenSet() const { return m_globalSecondaryIndexOverrideHasBeenSet; }
90 template<typename GlobalSecondaryIndexOverrideT = Aws::Vector<GlobalSecondaryIndex>>
91 void SetGlobalSecondaryIndexOverride(GlobalSecondaryIndexOverrideT&& value) { m_globalSecondaryIndexOverrideHasBeenSet = true; m_globalSecondaryIndexOverride = std::forward<GlobalSecondaryIndexOverrideT>(value); }
92 template<typename GlobalSecondaryIndexOverrideT = Aws::Vector<GlobalSecondaryIndex>>
93 RestoreTableFromBackupRequest& WithGlobalSecondaryIndexOverride(GlobalSecondaryIndexOverrideT&& value) { SetGlobalSecondaryIndexOverride(std::forward<GlobalSecondaryIndexOverrideT>(value)); return *this;}
94 template<typename GlobalSecondaryIndexOverrideT = GlobalSecondaryIndex>
95 RestoreTableFromBackupRequest& AddGlobalSecondaryIndexOverride(GlobalSecondaryIndexOverrideT&& value) { m_globalSecondaryIndexOverrideHasBeenSet = true; m_globalSecondaryIndexOverride.emplace_back(std::forward<GlobalSecondaryIndexOverrideT>(value)); return *this; }
97
99
104 inline const Aws::Vector<LocalSecondaryIndex>& GetLocalSecondaryIndexOverride() const { return m_localSecondaryIndexOverride; }
105 inline bool LocalSecondaryIndexOverrideHasBeenSet() const { return m_localSecondaryIndexOverrideHasBeenSet; }
106 template<typename LocalSecondaryIndexOverrideT = Aws::Vector<LocalSecondaryIndex>>
107 void SetLocalSecondaryIndexOverride(LocalSecondaryIndexOverrideT&& value) { m_localSecondaryIndexOverrideHasBeenSet = true; m_localSecondaryIndexOverride = std::forward<LocalSecondaryIndexOverrideT>(value); }
108 template<typename LocalSecondaryIndexOverrideT = Aws::Vector<LocalSecondaryIndex>>
109 RestoreTableFromBackupRequest& WithLocalSecondaryIndexOverride(LocalSecondaryIndexOverrideT&& value) { SetLocalSecondaryIndexOverride(std::forward<LocalSecondaryIndexOverrideT>(value)); return *this;}
110 template<typename LocalSecondaryIndexOverrideT = LocalSecondaryIndex>
111 RestoreTableFromBackupRequest& AddLocalSecondaryIndexOverride(LocalSecondaryIndexOverrideT&& value) { m_localSecondaryIndexOverrideHasBeenSet = true; m_localSecondaryIndexOverride.emplace_back(std::forward<LocalSecondaryIndexOverrideT>(value)); return *this; }
113
115
118 inline const ProvisionedThroughput& GetProvisionedThroughputOverride() const { return m_provisionedThroughputOverride; }
119 inline bool ProvisionedThroughputOverrideHasBeenSet() const { return m_provisionedThroughputOverrideHasBeenSet; }
120 template<typename ProvisionedThroughputOverrideT = ProvisionedThroughput>
121 void SetProvisionedThroughputOverride(ProvisionedThroughputOverrideT&& value) { m_provisionedThroughputOverrideHasBeenSet = true; m_provisionedThroughputOverride = std::forward<ProvisionedThroughputOverrideT>(value); }
122 template<typename ProvisionedThroughputOverrideT = ProvisionedThroughput>
123 RestoreTableFromBackupRequest& WithProvisionedThroughputOverride(ProvisionedThroughputOverrideT&& value) { SetProvisionedThroughputOverride(std::forward<ProvisionedThroughputOverrideT>(value)); return *this;}
125
127
128 inline const OnDemandThroughput& GetOnDemandThroughputOverride() const { return m_onDemandThroughputOverride; }
129 inline bool OnDemandThroughputOverrideHasBeenSet() const { return m_onDemandThroughputOverrideHasBeenSet; }
130 template<typename OnDemandThroughputOverrideT = OnDemandThroughput>
131 void SetOnDemandThroughputOverride(OnDemandThroughputOverrideT&& value) { m_onDemandThroughputOverrideHasBeenSet = true; m_onDemandThroughputOverride = std::forward<OnDemandThroughputOverrideT>(value); }
132 template<typename OnDemandThroughputOverrideT = OnDemandThroughput>
133 RestoreTableFromBackupRequest& WithOnDemandThroughputOverride(OnDemandThroughputOverrideT&& value) { SetOnDemandThroughputOverride(std::forward<OnDemandThroughputOverrideT>(value)); return *this;}
135
137
140 inline const SSESpecification& GetSSESpecificationOverride() const { return m_sSESpecificationOverride; }
141 inline bool SSESpecificationOverrideHasBeenSet() const { return m_sSESpecificationOverrideHasBeenSet; }
142 template<typename SSESpecificationOverrideT = SSESpecification>
143 void SetSSESpecificationOverride(SSESpecificationOverrideT&& value) { m_sSESpecificationOverrideHasBeenSet = true; m_sSESpecificationOverride = std::forward<SSESpecificationOverrideT>(value); }
144 template<typename SSESpecificationOverrideT = SSESpecification>
145 RestoreTableFromBackupRequest& WithSSESpecificationOverride(SSESpecificationOverrideT&& value) { SetSSESpecificationOverride(std::forward<SSESpecificationOverrideT>(value)); return *this;}
147 private:
148
149 Aws::String m_targetTableName;
150 bool m_targetTableNameHasBeenSet = false;
151
152 Aws::String m_backupArn;
153 bool m_backupArnHasBeenSet = false;
154
155 BillingMode m_billingModeOverride{BillingMode::NOT_SET};
156 bool m_billingModeOverrideHasBeenSet = false;
157
158 Aws::Vector<GlobalSecondaryIndex> m_globalSecondaryIndexOverride;
159 bool m_globalSecondaryIndexOverrideHasBeenSet = false;
160
161 Aws::Vector<LocalSecondaryIndex> m_localSecondaryIndexOverride;
162 bool m_localSecondaryIndexOverrideHasBeenSet = false;
163
164 ProvisionedThroughput m_provisionedThroughputOverride;
165 bool m_provisionedThroughputOverrideHasBeenSet = false;
166
167 OnDemandThroughput m_onDemandThroughputOverride;
168 bool m_onDemandThroughputOverrideHasBeenSet = false;
169
170 SSESpecification m_sSESpecificationOverride;
171 bool m_sSESpecificationOverrideHasBeenSet = false;
172 };
173
174} // namespace Model
175} // namespace DynamoDB
176} // namespace Aws
Aws::Endpoint::EndpointParameters EndpointParameters
void SetProvisionedThroughputOverride(ProvisionedThroughputOverrideT &&value)
void SetSSESpecificationOverride(SSESpecificationOverrideT &&value)
void SetLocalSecondaryIndexOverride(LocalSecondaryIndexOverrideT &&value)
AWS_DYNAMODB_API RestoreTableFromBackupRequest()=default
RestoreTableFromBackupRequest & WithProvisionedThroughputOverride(ProvisionedThroughputOverrideT &&value)
AWS_DYNAMODB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
RestoreTableFromBackupRequest & WithBillingModeOverride(BillingMode value)
RestoreTableFromBackupRequest & WithSSESpecificationOverride(SSESpecificationOverrideT &&value)
AWS_DYNAMODB_API Aws::String SerializePayload() const override
RestoreTableFromBackupRequest & WithBackupArn(BackupArnT &&value)
RestoreTableFromBackupRequest & WithLocalSecondaryIndexOverride(LocalSecondaryIndexOverrideT &&value)
RestoreTableFromBackupRequest & AddLocalSecondaryIndexOverride(LocalSecondaryIndexOverrideT &&value)
RestoreTableFromBackupRequest & AddGlobalSecondaryIndexOverride(GlobalSecondaryIndexOverrideT &&value)
void SetOnDemandThroughputOverride(OnDemandThroughputOverrideT &&value)
const ProvisionedThroughput & GetProvisionedThroughputOverride() const
const Aws::Vector< LocalSecondaryIndex > & GetLocalSecondaryIndexOverride() const
const Aws::Vector< GlobalSecondaryIndex > & GetGlobalSecondaryIndexOverride() const
AWS_DYNAMODB_API EndpointParameters GetEndpointContextParams() const override
RestoreTableFromBackupRequest & WithTargetTableName(TargetTableNameT &&value)
void SetGlobalSecondaryIndexOverride(GlobalSecondaryIndexOverrideT &&value)
RestoreTableFromBackupRequest & WithOnDemandThroughputOverride(OnDemandThroughputOverrideT &&value)
RestoreTableFromBackupRequest & WithGlobalSecondaryIndexOverride(GlobalSecondaryIndexOverrideT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector