AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateTableReplicaAutoScalingRequest.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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/dynamodb/model/AutoScalingSettingsUpdate.h>
12#include <aws/dynamodb/model/GlobalSecondaryIndexAutoScalingUpdate.h>
13#include <aws/dynamodb/model/ReplicaAutoScalingUpdate.h>
14#include <utility>
15
16namespace Aws
17{
18namespace DynamoDB
19{
20namespace Model
21{
22
26 {
27 public:
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateTableReplicaAutoScaling"; }
35
36 AWS_DYNAMODB_API Aws::String SerializePayload() const override;
37
39
40
42
46 inline const Aws::Vector<GlobalSecondaryIndexAutoScalingUpdate>& GetGlobalSecondaryIndexUpdates() const{ return m_globalSecondaryIndexUpdates; }
47 inline bool GlobalSecondaryIndexUpdatesHasBeenSet() const { return m_globalSecondaryIndexUpdatesHasBeenSet; }
48 inline void SetGlobalSecondaryIndexUpdates(const Aws::Vector<GlobalSecondaryIndexAutoScalingUpdate>& value) { m_globalSecondaryIndexUpdatesHasBeenSet = true; m_globalSecondaryIndexUpdates = value; }
49 inline void SetGlobalSecondaryIndexUpdates(Aws::Vector<GlobalSecondaryIndexAutoScalingUpdate>&& value) { m_globalSecondaryIndexUpdatesHasBeenSet = true; m_globalSecondaryIndexUpdates = std::move(value); }
52 inline UpdateTableReplicaAutoScalingRequest& AddGlobalSecondaryIndexUpdates(const GlobalSecondaryIndexAutoScalingUpdate& value) { m_globalSecondaryIndexUpdatesHasBeenSet = true; m_globalSecondaryIndexUpdates.push_back(value); return *this; }
53 inline UpdateTableReplicaAutoScalingRequest& AddGlobalSecondaryIndexUpdates(GlobalSecondaryIndexAutoScalingUpdate&& value) { m_globalSecondaryIndexUpdatesHasBeenSet = true; m_globalSecondaryIndexUpdates.push_back(std::move(value)); return *this; }
55
57
61 inline const Aws::String& GetTableName() const{ return m_tableName; }
62 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
63 inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; }
64 inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = std::move(value); }
65 inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); }
66 inline UpdateTableReplicaAutoScalingRequest& WithTableName(const Aws::String& value) { SetTableName(value); return *this;}
67 inline UpdateTableReplicaAutoScalingRequest& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;}
68 inline UpdateTableReplicaAutoScalingRequest& WithTableName(const char* value) { SetTableName(value); return *this;}
70
72
73 inline const AutoScalingSettingsUpdate& GetProvisionedWriteCapacityAutoScalingUpdate() const{ return m_provisionedWriteCapacityAutoScalingUpdate; }
74 inline bool ProvisionedWriteCapacityAutoScalingUpdateHasBeenSet() const { return m_provisionedWriteCapacityAutoScalingUpdateHasBeenSet; }
75 inline void SetProvisionedWriteCapacityAutoScalingUpdate(const AutoScalingSettingsUpdate& value) { m_provisionedWriteCapacityAutoScalingUpdateHasBeenSet = true; m_provisionedWriteCapacityAutoScalingUpdate = value; }
76 inline void SetProvisionedWriteCapacityAutoScalingUpdate(AutoScalingSettingsUpdate&& value) { m_provisionedWriteCapacityAutoScalingUpdateHasBeenSet = true; m_provisionedWriteCapacityAutoScalingUpdate = std::move(value); }
80
82
86 inline const Aws::Vector<ReplicaAutoScalingUpdate>& GetReplicaUpdates() const{ return m_replicaUpdates; }
87 inline bool ReplicaUpdatesHasBeenSet() const { return m_replicaUpdatesHasBeenSet; }
88 inline void SetReplicaUpdates(const Aws::Vector<ReplicaAutoScalingUpdate>& value) { m_replicaUpdatesHasBeenSet = true; m_replicaUpdates = value; }
89 inline void SetReplicaUpdates(Aws::Vector<ReplicaAutoScalingUpdate>&& value) { m_replicaUpdatesHasBeenSet = true; m_replicaUpdates = std::move(value); }
92 inline UpdateTableReplicaAutoScalingRequest& AddReplicaUpdates(const ReplicaAutoScalingUpdate& value) { m_replicaUpdatesHasBeenSet = true; m_replicaUpdates.push_back(value); return *this; }
93 inline UpdateTableReplicaAutoScalingRequest& AddReplicaUpdates(ReplicaAutoScalingUpdate&& value) { m_replicaUpdatesHasBeenSet = true; m_replicaUpdates.push_back(std::move(value)); return *this; }
95 private:
96
97 Aws::Vector<GlobalSecondaryIndexAutoScalingUpdate> m_globalSecondaryIndexUpdates;
98 bool m_globalSecondaryIndexUpdatesHasBeenSet = false;
99
100 Aws::String m_tableName;
101 bool m_tableNameHasBeenSet = false;
102
103 AutoScalingSettingsUpdate m_provisionedWriteCapacityAutoScalingUpdate;
104 bool m_provisionedWriteCapacityAutoScalingUpdateHasBeenSet = false;
105
107 bool m_replicaUpdatesHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace DynamoDB
112} // namespace Aws
UpdateTableReplicaAutoScalingRequest & WithTableName(Aws::String &&value)
UpdateTableReplicaAutoScalingRequest & WithProvisionedWriteCapacityAutoScalingUpdate(AutoScalingSettingsUpdate &&value)
UpdateTableReplicaAutoScalingRequest & WithTableName(const char *value)
UpdateTableReplicaAutoScalingRequest & AddReplicaUpdates(const ReplicaAutoScalingUpdate &value)
void SetProvisionedWriteCapacityAutoScalingUpdate(const AutoScalingSettingsUpdate &value)
void SetReplicaUpdates(Aws::Vector< ReplicaAutoScalingUpdate > &&value)
const Aws::Vector< GlobalSecondaryIndexAutoScalingUpdate > & GetGlobalSecondaryIndexUpdates() const
UpdateTableReplicaAutoScalingRequest & AddGlobalSecondaryIndexUpdates(const GlobalSecondaryIndexAutoScalingUpdate &value)
UpdateTableReplicaAutoScalingRequest & AddReplicaUpdates(ReplicaAutoScalingUpdate &&value)
const AutoScalingSettingsUpdate & GetProvisionedWriteCapacityAutoScalingUpdate() const
UpdateTableReplicaAutoScalingRequest & WithReplicaUpdates(const Aws::Vector< ReplicaAutoScalingUpdate > &value)
UpdateTableReplicaAutoScalingRequest & WithProvisionedWriteCapacityAutoScalingUpdate(const AutoScalingSettingsUpdate &value)
void SetGlobalSecondaryIndexUpdates(Aws::Vector< GlobalSecondaryIndexAutoScalingUpdate > &&value)
void SetReplicaUpdates(const Aws::Vector< ReplicaAutoScalingUpdate > &value)
UpdateTableReplicaAutoScalingRequest & WithGlobalSecondaryIndexUpdates(const Aws::Vector< GlobalSecondaryIndexAutoScalingUpdate > &value)
UpdateTableReplicaAutoScalingRequest & WithGlobalSecondaryIndexUpdates(Aws::Vector< GlobalSecondaryIndexAutoScalingUpdate > &&value)
UpdateTableReplicaAutoScalingRequest & AddGlobalSecondaryIndexUpdates(GlobalSecondaryIndexAutoScalingUpdate &&value)
AWS_DYNAMODB_API Aws::String SerializePayload() const override
UpdateTableReplicaAutoScalingRequest & WithReplicaUpdates(Aws::Vector< ReplicaAutoScalingUpdate > &&value)
AWS_DYNAMODB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< ReplicaAutoScalingUpdate > & GetReplicaUpdates() const
UpdateTableReplicaAutoScalingRequest & WithTableName(const Aws::String &value)
void SetGlobalSecondaryIndexUpdates(const Aws::Vector< GlobalSecondaryIndexAutoScalingUpdate > &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