AWS SDK for C++

AWS SDK for C++ Version 1.11.755

Loading...
Searching...
No Matches
ReplicaAutoScalingDescription.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/dynamodb/DynamoDB_EXPORTS.h>
10#include <aws/dynamodb/model/AutoScalingSettingsDescription.h>
11#include <aws/dynamodb/model/ReplicaGlobalSecondaryIndexAutoScalingDescription.h>
12#include <aws/dynamodb/model/ReplicaStatus.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DynamoDB {
24namespace Model {
25
33 public:
34 AWS_DYNAMODB_API ReplicaAutoScalingDescription() = default;
37 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetRegionName() const { return m_regionName; }
44 inline bool RegionNameHasBeenSet() const { return m_regionNameHasBeenSet; }
45 template <typename RegionNameT = Aws::String>
46 void SetRegionName(RegionNameT&& value) {
47 m_regionNameHasBeenSet = true;
48 m_regionName = std::forward<RegionNameT>(value);
49 }
50 template <typename RegionNameT = Aws::String>
52 SetRegionName(std::forward<RegionNameT>(value));
53 return *this;
54 }
56
58
62 return m_globalSecondaryIndexes;
63 }
64 inline bool GlobalSecondaryIndexesHasBeenSet() const { return m_globalSecondaryIndexesHasBeenSet; }
65 template <typename GlobalSecondaryIndexesT = Aws::Vector<ReplicaGlobalSecondaryIndexAutoScalingDescription>>
66 void SetGlobalSecondaryIndexes(GlobalSecondaryIndexesT&& value) {
67 m_globalSecondaryIndexesHasBeenSet = true;
68 m_globalSecondaryIndexes = std::forward<GlobalSecondaryIndexesT>(value);
69 }
70 template <typename GlobalSecondaryIndexesT = Aws::Vector<ReplicaGlobalSecondaryIndexAutoScalingDescription>>
72 SetGlobalSecondaryIndexes(std::forward<GlobalSecondaryIndexesT>(value));
73 return *this;
74 }
75 template <typename GlobalSecondaryIndexesT = ReplicaGlobalSecondaryIndexAutoScalingDescription>
76 ReplicaAutoScalingDescription& AddGlobalSecondaryIndexes(GlobalSecondaryIndexesT&& value) {
77 m_globalSecondaryIndexesHasBeenSet = true;
78 m_globalSecondaryIndexes.emplace_back(std::forward<GlobalSecondaryIndexesT>(value));
79 return *this;
80 }
82
84
86 return m_replicaProvisionedReadCapacityAutoScalingSettings;
87 }
89 return m_replicaProvisionedReadCapacityAutoScalingSettingsHasBeenSet;
90 }
91 template <typename ReplicaProvisionedReadCapacityAutoScalingSettingsT = AutoScalingSettingsDescription>
92 void SetReplicaProvisionedReadCapacityAutoScalingSettings(ReplicaProvisionedReadCapacityAutoScalingSettingsT&& value) {
93 m_replicaProvisionedReadCapacityAutoScalingSettingsHasBeenSet = true;
94 m_replicaProvisionedReadCapacityAutoScalingSettings = std::forward<ReplicaProvisionedReadCapacityAutoScalingSettingsT>(value);
95 }
96 template <typename ReplicaProvisionedReadCapacityAutoScalingSettingsT = AutoScalingSettingsDescription>
98 ReplicaProvisionedReadCapacityAutoScalingSettingsT&& value) {
99 SetReplicaProvisionedReadCapacityAutoScalingSettings(std::forward<ReplicaProvisionedReadCapacityAutoScalingSettingsT>(value));
100 return *this;
101 }
103
105
107 return m_replicaProvisionedWriteCapacityAutoScalingSettings;
108 }
110 return m_replicaProvisionedWriteCapacityAutoScalingSettingsHasBeenSet;
111 }
112 template <typename ReplicaProvisionedWriteCapacityAutoScalingSettingsT = AutoScalingSettingsDescription>
113 void SetReplicaProvisionedWriteCapacityAutoScalingSettings(ReplicaProvisionedWriteCapacityAutoScalingSettingsT&& value) {
114 m_replicaProvisionedWriteCapacityAutoScalingSettingsHasBeenSet = true;
115 m_replicaProvisionedWriteCapacityAutoScalingSettings = std::forward<ReplicaProvisionedWriteCapacityAutoScalingSettingsT>(value);
116 }
117 template <typename ReplicaProvisionedWriteCapacityAutoScalingSettingsT = AutoScalingSettingsDescription>
119 ReplicaProvisionedWriteCapacityAutoScalingSettingsT&& value) {
120 SetReplicaProvisionedWriteCapacityAutoScalingSettings(std::forward<ReplicaProvisionedWriteCapacityAutoScalingSettingsT>(value));
121 return *this;
122 }
124
126
133 inline ReplicaStatus GetReplicaStatus() const { return m_replicaStatus; }
134 inline bool ReplicaStatusHasBeenSet() const { return m_replicaStatusHasBeenSet; }
135 inline void SetReplicaStatus(ReplicaStatus value) {
136 m_replicaStatusHasBeenSet = true;
137 m_replicaStatus = value;
138 }
140 SetReplicaStatus(value);
141 return *this;
142 }
144 private:
145 Aws::String m_regionName;
146
148
149 AutoScalingSettingsDescription m_replicaProvisionedReadCapacityAutoScalingSettings;
150
151 AutoScalingSettingsDescription m_replicaProvisionedWriteCapacityAutoScalingSettings;
152
153 ReplicaStatus m_replicaStatus{ReplicaStatus::NOT_SET};
154 bool m_regionNameHasBeenSet = false;
155 bool m_globalSecondaryIndexesHasBeenSet = false;
156 bool m_replicaProvisionedReadCapacityAutoScalingSettingsHasBeenSet = false;
157 bool m_replicaProvisionedWriteCapacityAutoScalingSettingsHasBeenSet = false;
158 bool m_replicaStatusHasBeenSet = false;
159};
160
161} // namespace Model
162} // namespace DynamoDB
163} // 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