AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
39 AWS_DYNAMODB_API ReplicaAutoScalingDescription() = default;
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 template<typename RegionNameT = Aws::String>
52 void SetRegionName(RegionNameT&& value) { m_regionNameHasBeenSet = true; m_regionName = std::forward<RegionNameT>(value); }
53 template<typename RegionNameT = Aws::String>
54 ReplicaAutoScalingDescription& WithRegionName(RegionNameT&& value) { SetRegionName(std::forward<RegionNameT>(value)); return *this;}
56
58
61 inline const Aws::Vector<ReplicaGlobalSecondaryIndexAutoScalingDescription>& GetGlobalSecondaryIndexes() const { return m_globalSecondaryIndexes; }
62 inline bool GlobalSecondaryIndexesHasBeenSet() const { return m_globalSecondaryIndexesHasBeenSet; }
63 template<typename GlobalSecondaryIndexesT = Aws::Vector<ReplicaGlobalSecondaryIndexAutoScalingDescription>>
64 void SetGlobalSecondaryIndexes(GlobalSecondaryIndexesT&& value) { m_globalSecondaryIndexesHasBeenSet = true; m_globalSecondaryIndexes = std::forward<GlobalSecondaryIndexesT>(value); }
65 template<typename GlobalSecondaryIndexesT = Aws::Vector<ReplicaGlobalSecondaryIndexAutoScalingDescription>>
66 ReplicaAutoScalingDescription& WithGlobalSecondaryIndexes(GlobalSecondaryIndexesT&& value) { SetGlobalSecondaryIndexes(std::forward<GlobalSecondaryIndexesT>(value)); return *this;}
67 template<typename GlobalSecondaryIndexesT = ReplicaGlobalSecondaryIndexAutoScalingDescription>
68 ReplicaAutoScalingDescription& AddGlobalSecondaryIndexes(GlobalSecondaryIndexesT&& value) { m_globalSecondaryIndexesHasBeenSet = true; m_globalSecondaryIndexes.emplace_back(std::forward<GlobalSecondaryIndexesT>(value)); return *this; }
70
72
73 inline const AutoScalingSettingsDescription& GetReplicaProvisionedReadCapacityAutoScalingSettings() const { return m_replicaProvisionedReadCapacityAutoScalingSettings; }
74 inline bool ReplicaProvisionedReadCapacityAutoScalingSettingsHasBeenSet() const { return m_replicaProvisionedReadCapacityAutoScalingSettingsHasBeenSet; }
75 template<typename ReplicaProvisionedReadCapacityAutoScalingSettingsT = AutoScalingSettingsDescription>
76 void SetReplicaProvisionedReadCapacityAutoScalingSettings(ReplicaProvisionedReadCapacityAutoScalingSettingsT&& value) { m_replicaProvisionedReadCapacityAutoScalingSettingsHasBeenSet = true; m_replicaProvisionedReadCapacityAutoScalingSettings = std::forward<ReplicaProvisionedReadCapacityAutoScalingSettingsT>(value); }
77 template<typename ReplicaProvisionedReadCapacityAutoScalingSettingsT = AutoScalingSettingsDescription>
78 ReplicaAutoScalingDescription& WithReplicaProvisionedReadCapacityAutoScalingSettings(ReplicaProvisionedReadCapacityAutoScalingSettingsT&& value) { SetReplicaProvisionedReadCapacityAutoScalingSettings(std::forward<ReplicaProvisionedReadCapacityAutoScalingSettingsT>(value)); return *this;}
80
82
83 inline const AutoScalingSettingsDescription& GetReplicaProvisionedWriteCapacityAutoScalingSettings() const { return m_replicaProvisionedWriteCapacityAutoScalingSettings; }
84 inline bool ReplicaProvisionedWriteCapacityAutoScalingSettingsHasBeenSet() const { return m_replicaProvisionedWriteCapacityAutoScalingSettingsHasBeenSet; }
85 template<typename ReplicaProvisionedWriteCapacityAutoScalingSettingsT = AutoScalingSettingsDescription>
86 void SetReplicaProvisionedWriteCapacityAutoScalingSettings(ReplicaProvisionedWriteCapacityAutoScalingSettingsT&& value) { m_replicaProvisionedWriteCapacityAutoScalingSettingsHasBeenSet = true; m_replicaProvisionedWriteCapacityAutoScalingSettings = std::forward<ReplicaProvisionedWriteCapacityAutoScalingSettingsT>(value); }
87 template<typename ReplicaProvisionedWriteCapacityAutoScalingSettingsT = AutoScalingSettingsDescription>
88 ReplicaAutoScalingDescription& WithReplicaProvisionedWriteCapacityAutoScalingSettings(ReplicaProvisionedWriteCapacityAutoScalingSettingsT&& value) { SetReplicaProvisionedWriteCapacityAutoScalingSettings(std::forward<ReplicaProvisionedWriteCapacityAutoScalingSettingsT>(value)); return *this;}
90
92
99 inline ReplicaStatus GetReplicaStatus() const { return m_replicaStatus; }
100 inline bool ReplicaStatusHasBeenSet() const { return m_replicaStatusHasBeenSet; }
101 inline void SetReplicaStatus(ReplicaStatus value) { m_replicaStatusHasBeenSet = true; m_replicaStatus = value; }
104 private:
105
106 Aws::String m_regionName;
107 bool m_regionNameHasBeenSet = false;
108
110 bool m_globalSecondaryIndexesHasBeenSet = false;
111
112 AutoScalingSettingsDescription m_replicaProvisionedReadCapacityAutoScalingSettings;
113 bool m_replicaProvisionedReadCapacityAutoScalingSettingsHasBeenSet = false;
114
115 AutoScalingSettingsDescription m_replicaProvisionedWriteCapacityAutoScalingSettings;
116 bool m_replicaProvisionedWriteCapacityAutoScalingSettingsHasBeenSet = false;
117
118 ReplicaStatus m_replicaStatus{ReplicaStatus::NOT_SET};
119 bool m_replicaStatusHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace DynamoDB
124} // namespace Aws
ReplicaAutoScalingDescription & WithReplicaProvisionedWriteCapacityAutoScalingSettings(ReplicaProvisionedWriteCapacityAutoScalingSettingsT &&value)
AWS_DYNAMODB_API ReplicaAutoScalingDescription()=default
const AutoScalingSettingsDescription & GetReplicaProvisionedReadCapacityAutoScalingSettings() const
ReplicaAutoScalingDescription & WithReplicaProvisionedReadCapacityAutoScalingSettings(ReplicaProvisionedReadCapacityAutoScalingSettingsT &&value)
AWS_DYNAMODB_API ReplicaAutoScalingDescription(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ReplicaGlobalSecondaryIndexAutoScalingDescription > & GetGlobalSecondaryIndexes() const
void SetReplicaProvisionedReadCapacityAutoScalingSettings(ReplicaProvisionedReadCapacityAutoScalingSettingsT &&value)
ReplicaAutoScalingDescription & WithReplicaStatus(ReplicaStatus value)
void SetReplicaProvisionedWriteCapacityAutoScalingSettings(ReplicaProvisionedWriteCapacityAutoScalingSettingsT &&value)
const AutoScalingSettingsDescription & GetReplicaProvisionedWriteCapacityAutoScalingSettings() const
ReplicaAutoScalingDescription & WithRegionName(RegionNameT &&value)
ReplicaAutoScalingDescription & AddGlobalSecondaryIndexes(GlobalSecondaryIndexesT &&value)
ReplicaAutoScalingDescription & WithGlobalSecondaryIndexes(GlobalSecondaryIndexesT &&value)
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DYNAMODB_API ReplicaAutoScalingDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue