AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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
43
45
48 inline const Aws::String& GetTargetTableName() const{ return m_targetTableName; }
49 inline bool TargetTableNameHasBeenSet() const { return m_targetTableNameHasBeenSet; }
50 inline void SetTargetTableName(const Aws::String& value) { m_targetTableNameHasBeenSet = true; m_targetTableName = value; }
51 inline void SetTargetTableName(Aws::String&& value) { m_targetTableNameHasBeenSet = true; m_targetTableName = std::move(value); }
52 inline void SetTargetTableName(const char* value) { m_targetTableNameHasBeenSet = true; m_targetTableName.assign(value); }
54 inline RestoreTableFromBackupRequest& WithTargetTableName(Aws::String&& value) { SetTargetTableName(std::move(value)); return *this;}
55 inline RestoreTableFromBackupRequest& WithTargetTableName(const char* value) { SetTargetTableName(value); return *this;}
57
59
62 inline const Aws::String& GetBackupArn() const{ return m_backupArn; }
63 inline bool BackupArnHasBeenSet() const { return m_backupArnHasBeenSet; }
64 inline void SetBackupArn(const Aws::String& value) { m_backupArnHasBeenSet = true; m_backupArn = value; }
65 inline void SetBackupArn(Aws::String&& value) { m_backupArnHasBeenSet = true; m_backupArn = std::move(value); }
66 inline void SetBackupArn(const char* value) { m_backupArnHasBeenSet = true; m_backupArn.assign(value); }
67 inline RestoreTableFromBackupRequest& WithBackupArn(const Aws::String& value) { SetBackupArn(value); return *this;}
68 inline RestoreTableFromBackupRequest& WithBackupArn(Aws::String&& value) { SetBackupArn(std::move(value)); return *this;}
69 inline RestoreTableFromBackupRequest& WithBackupArn(const char* value) { SetBackupArn(value); return *this;}
71
73
76 inline const BillingMode& GetBillingModeOverride() const{ return m_billingModeOverride; }
77 inline bool BillingModeOverrideHasBeenSet() const { return m_billingModeOverrideHasBeenSet; }
78 inline void SetBillingModeOverride(const BillingMode& value) { m_billingModeOverrideHasBeenSet = true; m_billingModeOverride = value; }
79 inline void SetBillingModeOverride(BillingMode&& value) { m_billingModeOverrideHasBeenSet = true; m_billingModeOverride = std::move(value); }
83
85
90 inline const Aws::Vector<GlobalSecondaryIndex>& GetGlobalSecondaryIndexOverride() const{ return m_globalSecondaryIndexOverride; }
91 inline bool GlobalSecondaryIndexOverrideHasBeenSet() const { return m_globalSecondaryIndexOverrideHasBeenSet; }
92 inline void SetGlobalSecondaryIndexOverride(const Aws::Vector<GlobalSecondaryIndex>& value) { m_globalSecondaryIndexOverrideHasBeenSet = true; m_globalSecondaryIndexOverride = value; }
93 inline void SetGlobalSecondaryIndexOverride(Aws::Vector<GlobalSecondaryIndex>&& value) { m_globalSecondaryIndexOverrideHasBeenSet = true; m_globalSecondaryIndexOverride = std::move(value); }
96 inline RestoreTableFromBackupRequest& AddGlobalSecondaryIndexOverride(const GlobalSecondaryIndex& value) { m_globalSecondaryIndexOverrideHasBeenSet = true; m_globalSecondaryIndexOverride.push_back(value); return *this; }
97 inline RestoreTableFromBackupRequest& AddGlobalSecondaryIndexOverride(GlobalSecondaryIndex&& value) { m_globalSecondaryIndexOverrideHasBeenSet = true; m_globalSecondaryIndexOverride.push_back(std::move(value)); return *this; }
99
101
106 inline const Aws::Vector<LocalSecondaryIndex>& GetLocalSecondaryIndexOverride() const{ return m_localSecondaryIndexOverride; }
107 inline bool LocalSecondaryIndexOverrideHasBeenSet() const { return m_localSecondaryIndexOverrideHasBeenSet; }
108 inline void SetLocalSecondaryIndexOverride(const Aws::Vector<LocalSecondaryIndex>& value) { m_localSecondaryIndexOverrideHasBeenSet = true; m_localSecondaryIndexOverride = value; }
109 inline void SetLocalSecondaryIndexOverride(Aws::Vector<LocalSecondaryIndex>&& value) { m_localSecondaryIndexOverrideHasBeenSet = true; m_localSecondaryIndexOverride = std::move(value); }
112 inline RestoreTableFromBackupRequest& AddLocalSecondaryIndexOverride(const LocalSecondaryIndex& value) { m_localSecondaryIndexOverrideHasBeenSet = true; m_localSecondaryIndexOverride.push_back(value); return *this; }
113 inline RestoreTableFromBackupRequest& AddLocalSecondaryIndexOverride(LocalSecondaryIndex&& value) { m_localSecondaryIndexOverrideHasBeenSet = true; m_localSecondaryIndexOverride.push_back(std::move(value)); return *this; }
115
117
120 inline const ProvisionedThroughput& GetProvisionedThroughputOverride() const{ return m_provisionedThroughputOverride; }
121 inline bool ProvisionedThroughputOverrideHasBeenSet() const { return m_provisionedThroughputOverrideHasBeenSet; }
122 inline void SetProvisionedThroughputOverride(const ProvisionedThroughput& value) { m_provisionedThroughputOverrideHasBeenSet = true; m_provisionedThroughputOverride = value; }
123 inline void SetProvisionedThroughputOverride(ProvisionedThroughput&& value) { m_provisionedThroughputOverrideHasBeenSet = true; m_provisionedThroughputOverride = std::move(value); }
127
129
130 inline const OnDemandThroughput& GetOnDemandThroughputOverride() const{ return m_onDemandThroughputOverride; }
131 inline bool OnDemandThroughputOverrideHasBeenSet() const { return m_onDemandThroughputOverrideHasBeenSet; }
132 inline void SetOnDemandThroughputOverride(const OnDemandThroughput& value) { m_onDemandThroughputOverrideHasBeenSet = true; m_onDemandThroughputOverride = value; }
133 inline void SetOnDemandThroughputOverride(OnDemandThroughput&& value) { m_onDemandThroughputOverrideHasBeenSet = true; m_onDemandThroughputOverride = std::move(value); }
137
139
142 inline const SSESpecification& GetSSESpecificationOverride() const{ return m_sSESpecificationOverride; }
143 inline bool SSESpecificationOverrideHasBeenSet() const { return m_sSESpecificationOverrideHasBeenSet; }
144 inline void SetSSESpecificationOverride(const SSESpecification& value) { m_sSESpecificationOverrideHasBeenSet = true; m_sSESpecificationOverride = value; }
145 inline void SetSSESpecificationOverride(SSESpecification&& value) { m_sSESpecificationOverrideHasBeenSet = true; m_sSESpecificationOverride = std::move(value); }
149 private:
150
151 Aws::String m_targetTableName;
152 bool m_targetTableNameHasBeenSet = false;
153
154 Aws::String m_backupArn;
155 bool m_backupArnHasBeenSet = false;
156
157 BillingMode m_billingModeOverride;
158 bool m_billingModeOverrideHasBeenSet = false;
159
160 Aws::Vector<GlobalSecondaryIndex> m_globalSecondaryIndexOverride;
161 bool m_globalSecondaryIndexOverrideHasBeenSet = false;
162
163 Aws::Vector<LocalSecondaryIndex> m_localSecondaryIndexOverride;
164 bool m_localSecondaryIndexOverrideHasBeenSet = false;
165
166 ProvisionedThroughput m_provisionedThroughputOverride;
167 bool m_provisionedThroughputOverrideHasBeenSet = false;
168
169 OnDemandThroughput m_onDemandThroughputOverride;
170 bool m_onDemandThroughputOverrideHasBeenSet = false;
171
172 SSESpecification m_sSESpecificationOverride;
173 bool m_sSESpecificationOverrideHasBeenSet = false;
174 };
175
176} // namespace Model
177} // namespace DynamoDB
178} // namespace Aws
RestoreTableFromBackupRequest & WithBillingModeOverride(BillingMode &&value)
void SetGlobalSecondaryIndexOverride(const Aws::Vector< GlobalSecondaryIndex > &value)
RestoreTableFromBackupRequest & WithTargetTableName(Aws::String &&value)
void SetOnDemandThroughputOverride(const OnDemandThroughput &value)
RestoreTableFromBackupRequest & WithLocalSecondaryIndexOverride(Aws::Vector< LocalSecondaryIndex > &&value)
RestoreTableFromBackupRequest & WithOnDemandThroughputOverride(OnDemandThroughput &&value)
void SetGlobalSecondaryIndexOverride(Aws::Vector< GlobalSecondaryIndex > &&value)
RestoreTableFromBackupRequest & WithSSESpecificationOverride(SSESpecification &&value)
AWS_DYNAMODB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetLocalSecondaryIndexOverride(const Aws::Vector< LocalSecondaryIndex > &value)
RestoreTableFromBackupRequest & WithLocalSecondaryIndexOverride(const Aws::Vector< LocalSecondaryIndex > &value)
RestoreTableFromBackupRequest & WithGlobalSecondaryIndexOverride(Aws::Vector< GlobalSecondaryIndex > &&value)
RestoreTableFromBackupRequest & AddLocalSecondaryIndexOverride(const LocalSecondaryIndex &value)
RestoreTableFromBackupRequest & WithSSESpecificationOverride(const SSESpecification &value)
RestoreTableFromBackupRequest & WithBillingModeOverride(const BillingMode &value)
RestoreTableFromBackupRequest & WithBackupArn(Aws::String &&value)
AWS_DYNAMODB_API Aws::String SerializePayload() const override
RestoreTableFromBackupRequest & WithProvisionedThroughputOverride(const ProvisionedThroughput &value)
RestoreTableFromBackupRequest & WithTargetTableName(const Aws::String &value)
RestoreTableFromBackupRequest & WithOnDemandThroughputOverride(const OnDemandThroughput &value)
RestoreTableFromBackupRequest & WithGlobalSecondaryIndexOverride(const Aws::Vector< GlobalSecondaryIndex > &value)
RestoreTableFromBackupRequest & WithBackupArn(const Aws::String &value)
void SetProvisionedThroughputOverride(const ProvisionedThroughput &value)
void SetLocalSecondaryIndexOverride(Aws::Vector< LocalSecondaryIndex > &&value)
RestoreTableFromBackupRequest & AddGlobalSecondaryIndexOverride(GlobalSecondaryIndex &&value)
const ProvisionedThroughput & GetProvisionedThroughputOverride() const
RestoreTableFromBackupRequest & AddGlobalSecondaryIndexOverride(const GlobalSecondaryIndex &value)
const Aws::Vector< LocalSecondaryIndex > & GetLocalSecondaryIndexOverride() const
const Aws::Vector< GlobalSecondaryIndex > & GetGlobalSecondaryIndexOverride() const
RestoreTableFromBackupRequest & WithBackupArn(const char *value)
RestoreTableFromBackupRequest & WithProvisionedThroughputOverride(ProvisionedThroughput &&value)
RestoreTableFromBackupRequest & WithTargetTableName(const char *value)
RestoreTableFromBackupRequest & AddLocalSecondaryIndexOverride(LocalSecondaryIndex &&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