AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ReplicaSettingsUpdate.h
1
6#pragma once
7#include <aws/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/dynamodb/model/AutoScalingSettingsUpdate.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/dynamodb/model/TableClass.h>
12#include <aws/dynamodb/model/ReplicaGlobalSecondaryIndexSettingsUpdate.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace DynamoDB
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_DYNAMODB_API ReplicaSettingsUpdate();
42 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetRegionName() const{ return m_regionName; }
50 inline bool RegionNameHasBeenSet() const { return m_regionNameHasBeenSet; }
51 inline void SetRegionName(const Aws::String& value) { m_regionNameHasBeenSet = true; m_regionName = value; }
52 inline void SetRegionName(Aws::String&& value) { m_regionNameHasBeenSet = true; m_regionName = std::move(value); }
53 inline void SetRegionName(const char* value) { m_regionNameHasBeenSet = true; m_regionName.assign(value); }
54 inline ReplicaSettingsUpdate& WithRegionName(const Aws::String& value) { SetRegionName(value); return *this;}
55 inline ReplicaSettingsUpdate& WithRegionName(Aws::String&& value) { SetRegionName(std::move(value)); return *this;}
56 inline ReplicaSettingsUpdate& WithRegionName(const char* value) { SetRegionName(value); return *this;}
58
60
68 inline long long GetReplicaProvisionedReadCapacityUnits() const{ return m_replicaProvisionedReadCapacityUnits; }
69 inline bool ReplicaProvisionedReadCapacityUnitsHasBeenSet() const { return m_replicaProvisionedReadCapacityUnitsHasBeenSet; }
70 inline void SetReplicaProvisionedReadCapacityUnits(long long value) { m_replicaProvisionedReadCapacityUnitsHasBeenSet = true; m_replicaProvisionedReadCapacityUnits = value; }
73
75
79 inline const AutoScalingSettingsUpdate& GetReplicaProvisionedReadCapacityAutoScalingSettingsUpdate() const{ return m_replicaProvisionedReadCapacityAutoScalingSettingsUpdate; }
80 inline bool ReplicaProvisionedReadCapacityAutoScalingSettingsUpdateHasBeenSet() const { return m_replicaProvisionedReadCapacityAutoScalingSettingsUpdateHasBeenSet; }
81 inline void SetReplicaProvisionedReadCapacityAutoScalingSettingsUpdate(const AutoScalingSettingsUpdate& value) { m_replicaProvisionedReadCapacityAutoScalingSettingsUpdateHasBeenSet = true; m_replicaProvisionedReadCapacityAutoScalingSettingsUpdate = value; }
82 inline void SetReplicaProvisionedReadCapacityAutoScalingSettingsUpdate(AutoScalingSettingsUpdate&& value) { m_replicaProvisionedReadCapacityAutoScalingSettingsUpdateHasBeenSet = true; m_replicaProvisionedReadCapacityAutoScalingSettingsUpdate = std::move(value); }
86
88
92 inline const Aws::Vector<ReplicaGlobalSecondaryIndexSettingsUpdate>& GetReplicaGlobalSecondaryIndexSettingsUpdate() const{ return m_replicaGlobalSecondaryIndexSettingsUpdate; }
93 inline bool ReplicaGlobalSecondaryIndexSettingsUpdateHasBeenSet() const { return m_replicaGlobalSecondaryIndexSettingsUpdateHasBeenSet; }
94 inline void SetReplicaGlobalSecondaryIndexSettingsUpdate(const Aws::Vector<ReplicaGlobalSecondaryIndexSettingsUpdate>& value) { m_replicaGlobalSecondaryIndexSettingsUpdateHasBeenSet = true; m_replicaGlobalSecondaryIndexSettingsUpdate = value; }
95 inline void SetReplicaGlobalSecondaryIndexSettingsUpdate(Aws::Vector<ReplicaGlobalSecondaryIndexSettingsUpdate>&& value) { m_replicaGlobalSecondaryIndexSettingsUpdateHasBeenSet = true; m_replicaGlobalSecondaryIndexSettingsUpdate = std::move(value); }
98 inline ReplicaSettingsUpdate& AddReplicaGlobalSecondaryIndexSettingsUpdate(const ReplicaGlobalSecondaryIndexSettingsUpdate& value) { m_replicaGlobalSecondaryIndexSettingsUpdateHasBeenSet = true; m_replicaGlobalSecondaryIndexSettingsUpdate.push_back(value); return *this; }
99 inline ReplicaSettingsUpdate& AddReplicaGlobalSecondaryIndexSettingsUpdate(ReplicaGlobalSecondaryIndexSettingsUpdate&& value) { m_replicaGlobalSecondaryIndexSettingsUpdateHasBeenSet = true; m_replicaGlobalSecondaryIndexSettingsUpdate.push_back(std::move(value)); return *this; }
101
103
107 inline const TableClass& GetReplicaTableClass() const{ return m_replicaTableClass; }
108 inline bool ReplicaTableClassHasBeenSet() const { return m_replicaTableClassHasBeenSet; }
109 inline void SetReplicaTableClass(const TableClass& value) { m_replicaTableClassHasBeenSet = true; m_replicaTableClass = value; }
110 inline void SetReplicaTableClass(TableClass&& value) { m_replicaTableClassHasBeenSet = true; m_replicaTableClass = std::move(value); }
111 inline ReplicaSettingsUpdate& WithReplicaTableClass(const TableClass& value) { SetReplicaTableClass(value); return *this;}
112 inline ReplicaSettingsUpdate& WithReplicaTableClass(TableClass&& value) { SetReplicaTableClass(std::move(value)); return *this;}
114 private:
115
116 Aws::String m_regionName;
117 bool m_regionNameHasBeenSet = false;
118
119 long long m_replicaProvisionedReadCapacityUnits;
120 bool m_replicaProvisionedReadCapacityUnitsHasBeenSet = false;
121
122 AutoScalingSettingsUpdate m_replicaProvisionedReadCapacityAutoScalingSettingsUpdate;
123 bool m_replicaProvisionedReadCapacityAutoScalingSettingsUpdateHasBeenSet = false;
124
125 Aws::Vector<ReplicaGlobalSecondaryIndexSettingsUpdate> m_replicaGlobalSecondaryIndexSettingsUpdate;
126 bool m_replicaGlobalSecondaryIndexSettingsUpdateHasBeenSet = false;
127
128 TableClass m_replicaTableClass;
129 bool m_replicaTableClassHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace DynamoDB
134} // namespace Aws
ReplicaSettingsUpdate & WithRegionName(const char *value)
void SetReplicaGlobalSecondaryIndexSettingsUpdate(Aws::Vector< ReplicaGlobalSecondaryIndexSettingsUpdate > &&value)
void SetReplicaProvisionedReadCapacityAutoScalingSettingsUpdate(AutoScalingSettingsUpdate &&value)
const Aws::Vector< ReplicaGlobalSecondaryIndexSettingsUpdate > & GetReplicaGlobalSecondaryIndexSettingsUpdate() const
ReplicaSettingsUpdate & WithReplicaTableClass(TableClass &&value)
ReplicaSettingsUpdate & AddReplicaGlobalSecondaryIndexSettingsUpdate(ReplicaGlobalSecondaryIndexSettingsUpdate &&value)
ReplicaSettingsUpdate & WithReplicaProvisionedReadCapacityAutoScalingSettingsUpdate(const AutoScalingSettingsUpdate &value)
AWS_DYNAMODB_API ReplicaSettingsUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
ReplicaSettingsUpdate & WithRegionName(const Aws::String &value)
AWS_DYNAMODB_API ReplicaSettingsUpdate(Aws::Utils::Json::JsonView jsonValue)
ReplicaSettingsUpdate & WithReplicaGlobalSecondaryIndexSettingsUpdate(const Aws::Vector< ReplicaGlobalSecondaryIndexSettingsUpdate > &value)
ReplicaSettingsUpdate & WithReplicaGlobalSecondaryIndexSettingsUpdate(Aws::Vector< ReplicaGlobalSecondaryIndexSettingsUpdate > &&value)
void SetReplicaGlobalSecondaryIndexSettingsUpdate(const Aws::Vector< ReplicaGlobalSecondaryIndexSettingsUpdate > &value)
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
ReplicaSettingsUpdate & WithReplicaProvisionedReadCapacityAutoScalingSettingsUpdate(AutoScalingSettingsUpdate &&value)
ReplicaSettingsUpdate & WithReplicaTableClass(const TableClass &value)
ReplicaSettingsUpdate & WithRegionName(Aws::String &&value)
void SetReplicaProvisionedReadCapacityAutoScalingSettingsUpdate(const AutoScalingSettingsUpdate &value)
const AutoScalingSettingsUpdate & GetReplicaProvisionedReadCapacityAutoScalingSettingsUpdate() const
ReplicaSettingsUpdate & AddReplicaGlobalSecondaryIndexSettingsUpdate(const ReplicaGlobalSecondaryIndexSettingsUpdate &value)
ReplicaSettingsUpdate & WithReplicaProvisionedReadCapacityUnits(long long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue