AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ReplicaAutoScalingDescription.h
1
6#pragma once
7#include <aws/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/dynamodb/model/AutoScalingSettingsDescription.h>
11#include <aws/dynamodb/model/ReplicaStatus.h>
12#include <aws/dynamodb/model/ReplicaGlobalSecondaryIndexAutoScalingDescription.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:
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 ReplicaAutoScalingDescription& WithRegionName(const Aws::String& value) { SetRegionName(value); return *this;}
55 inline ReplicaAutoScalingDescription& WithRegionName(Aws::String&& value) { SetRegionName(std::move(value)); return *this;}
56 inline ReplicaAutoScalingDescription& WithRegionName(const char* value) { SetRegionName(value); return *this;}
58
60
63 inline const Aws::Vector<ReplicaGlobalSecondaryIndexAutoScalingDescription>& GetGlobalSecondaryIndexes() const{ return m_globalSecondaryIndexes; }
64 inline bool GlobalSecondaryIndexesHasBeenSet() const { return m_globalSecondaryIndexesHasBeenSet; }
65 inline void SetGlobalSecondaryIndexes(const Aws::Vector<ReplicaGlobalSecondaryIndexAutoScalingDescription>& value) { m_globalSecondaryIndexesHasBeenSet = true; m_globalSecondaryIndexes = value; }
66 inline void SetGlobalSecondaryIndexes(Aws::Vector<ReplicaGlobalSecondaryIndexAutoScalingDescription>&& value) { m_globalSecondaryIndexesHasBeenSet = true; m_globalSecondaryIndexes = std::move(value); }
69 inline ReplicaAutoScalingDescription& AddGlobalSecondaryIndexes(const ReplicaGlobalSecondaryIndexAutoScalingDescription& value) { m_globalSecondaryIndexesHasBeenSet = true; m_globalSecondaryIndexes.push_back(value); return *this; }
70 inline ReplicaAutoScalingDescription& AddGlobalSecondaryIndexes(ReplicaGlobalSecondaryIndexAutoScalingDescription&& value) { m_globalSecondaryIndexesHasBeenSet = true; m_globalSecondaryIndexes.push_back(std::move(value)); return *this; }
72
74
75 inline const AutoScalingSettingsDescription& GetReplicaProvisionedReadCapacityAutoScalingSettings() const{ return m_replicaProvisionedReadCapacityAutoScalingSettings; }
76 inline bool ReplicaProvisionedReadCapacityAutoScalingSettingsHasBeenSet() const { return m_replicaProvisionedReadCapacityAutoScalingSettingsHasBeenSet; }
77 inline void SetReplicaProvisionedReadCapacityAutoScalingSettings(const AutoScalingSettingsDescription& value) { m_replicaProvisionedReadCapacityAutoScalingSettingsHasBeenSet = true; m_replicaProvisionedReadCapacityAutoScalingSettings = value; }
78 inline void SetReplicaProvisionedReadCapacityAutoScalingSettings(AutoScalingSettingsDescription&& value) { m_replicaProvisionedReadCapacityAutoScalingSettingsHasBeenSet = true; m_replicaProvisionedReadCapacityAutoScalingSettings = std::move(value); }
82
84
85 inline const AutoScalingSettingsDescription& GetReplicaProvisionedWriteCapacityAutoScalingSettings() const{ return m_replicaProvisionedWriteCapacityAutoScalingSettings; }
86 inline bool ReplicaProvisionedWriteCapacityAutoScalingSettingsHasBeenSet() const { return m_replicaProvisionedWriteCapacityAutoScalingSettingsHasBeenSet; }
87 inline void SetReplicaProvisionedWriteCapacityAutoScalingSettings(const AutoScalingSettingsDescription& value) { m_replicaProvisionedWriteCapacityAutoScalingSettingsHasBeenSet = true; m_replicaProvisionedWriteCapacityAutoScalingSettings = value; }
88 inline void SetReplicaProvisionedWriteCapacityAutoScalingSettings(AutoScalingSettingsDescription&& value) { m_replicaProvisionedWriteCapacityAutoScalingSettingsHasBeenSet = true; m_replicaProvisionedWriteCapacityAutoScalingSettings = std::move(value); }
92
94
101 inline const ReplicaStatus& GetReplicaStatus() const{ return m_replicaStatus; }
102 inline bool ReplicaStatusHasBeenSet() const { return m_replicaStatusHasBeenSet; }
103 inline void SetReplicaStatus(const ReplicaStatus& value) { m_replicaStatusHasBeenSet = true; m_replicaStatus = value; }
104 inline void SetReplicaStatus(ReplicaStatus&& value) { m_replicaStatusHasBeenSet = true; m_replicaStatus = std::move(value); }
106 inline ReplicaAutoScalingDescription& WithReplicaStatus(ReplicaStatus&& value) { SetReplicaStatus(std::move(value)); return *this;}
108 private:
109
110 Aws::String m_regionName;
111 bool m_regionNameHasBeenSet = false;
112
114 bool m_globalSecondaryIndexesHasBeenSet = false;
115
116 AutoScalingSettingsDescription m_replicaProvisionedReadCapacityAutoScalingSettings;
117 bool m_replicaProvisionedReadCapacityAutoScalingSettingsHasBeenSet = false;
118
119 AutoScalingSettingsDescription m_replicaProvisionedWriteCapacityAutoScalingSettings;
120 bool m_replicaProvisionedWriteCapacityAutoScalingSettingsHasBeenSet = false;
121
122 ReplicaStatus m_replicaStatus;
123 bool m_replicaStatusHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace DynamoDB
128} // namespace Aws
const AutoScalingSettingsDescription & GetReplicaProvisionedReadCapacityAutoScalingSettings() const
void SetReplicaProvisionedReadCapacityAutoScalingSettings(AutoScalingSettingsDescription &&value)
AWS_DYNAMODB_API ReplicaAutoScalingDescription(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ReplicaGlobalSecondaryIndexAutoScalingDescription > & GetGlobalSecondaryIndexes() const
ReplicaAutoScalingDescription & WithReplicaStatus(const ReplicaStatus &value)
ReplicaAutoScalingDescription & WithGlobalSecondaryIndexes(const Aws::Vector< ReplicaGlobalSecondaryIndexAutoScalingDescription > &value)
void SetGlobalSecondaryIndexes(const Aws::Vector< ReplicaGlobalSecondaryIndexAutoScalingDescription > &value)
const AutoScalingSettingsDescription & GetReplicaProvisionedWriteCapacityAutoScalingSettings() const
ReplicaAutoScalingDescription & WithReplicaProvisionedWriteCapacityAutoScalingSettings(const AutoScalingSettingsDescription &value)
ReplicaAutoScalingDescription & WithReplicaStatus(ReplicaStatus &&value)
ReplicaAutoScalingDescription & WithRegionName(const Aws::String &value)
ReplicaAutoScalingDescription & WithReplicaProvisionedWriteCapacityAutoScalingSettings(AutoScalingSettingsDescription &&value)
ReplicaAutoScalingDescription & AddGlobalSecondaryIndexes(const ReplicaGlobalSecondaryIndexAutoScalingDescription &value)
void SetReplicaProvisionedWriteCapacityAutoScalingSettings(const AutoScalingSettingsDescription &value)
ReplicaAutoScalingDescription & WithRegionName(Aws::String &&value)
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
ReplicaAutoScalingDescription & AddGlobalSecondaryIndexes(ReplicaGlobalSecondaryIndexAutoScalingDescription &&value)
ReplicaAutoScalingDescription & WithReplicaProvisionedReadCapacityAutoScalingSettings(AutoScalingSettingsDescription &&value)
ReplicaAutoScalingDescription & WithReplicaProvisionedReadCapacityAutoScalingSettings(const AutoScalingSettingsDescription &value)
AWS_DYNAMODB_API ReplicaAutoScalingDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
ReplicaAutoScalingDescription & WithRegionName(const char *value)
ReplicaAutoScalingDescription & WithGlobalSecondaryIndexes(Aws::Vector< ReplicaGlobalSecondaryIndexAutoScalingDescription > &&value)
void SetReplicaProvisionedWriteCapacityAutoScalingSettings(AutoScalingSettingsDescription &&value)
void SetGlobalSecondaryIndexes(Aws::Vector< ReplicaGlobalSecondaryIndexAutoScalingDescription > &&value)
void SetReplicaProvisionedReadCapacityAutoScalingSettings(const AutoScalingSettingsDescription &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