AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ReplicaSpecification.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/keyspaces/Keyspaces_EXPORTS.h>
9#include <aws/keyspaces/model/AutoScalingSettings.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Keyspaces {
21namespace Model {
22
37 public:
38 AWS_KEYSPACES_API ReplicaSpecification() = default;
41 AWS_KEYSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline const Aws::String& GetRegion() const { return m_region; }
48 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
49 template <typename RegionT = Aws::String>
50 void SetRegion(RegionT&& value) {
51 m_regionHasBeenSet = true;
52 m_region = std::forward<RegionT>(value);
53 }
54 template <typename RegionT = Aws::String>
55 ReplicaSpecification& WithRegion(RegionT&& value) {
56 SetRegion(std::forward<RegionT>(value));
57 return *this;
58 }
60
62
66 inline long long GetReadCapacityUnits() const { return m_readCapacityUnits; }
67 inline bool ReadCapacityUnitsHasBeenSet() const { return m_readCapacityUnitsHasBeenSet; }
68 inline void SetReadCapacityUnits(long long value) {
69 m_readCapacityUnitsHasBeenSet = true;
70 m_readCapacityUnits = value;
71 }
74 return *this;
75 }
77
79
83 inline const AutoScalingSettings& GetReadCapacityAutoScaling() const { return m_readCapacityAutoScaling; }
84 inline bool ReadCapacityAutoScalingHasBeenSet() const { return m_readCapacityAutoScalingHasBeenSet; }
85 template <typename ReadCapacityAutoScalingT = AutoScalingSettings>
86 void SetReadCapacityAutoScaling(ReadCapacityAutoScalingT&& value) {
87 m_readCapacityAutoScalingHasBeenSet = true;
88 m_readCapacityAutoScaling = std::forward<ReadCapacityAutoScalingT>(value);
89 }
90 template <typename ReadCapacityAutoScalingT = AutoScalingSettings>
91 ReplicaSpecification& WithReadCapacityAutoScaling(ReadCapacityAutoScalingT&& value) {
92 SetReadCapacityAutoScaling(std::forward<ReadCapacityAutoScalingT>(value));
93 return *this;
94 }
96 private:
97 Aws::String m_region;
98
99 long long m_readCapacityUnits{0};
100
101 AutoScalingSettings m_readCapacityAutoScaling;
102 bool m_regionHasBeenSet = false;
103 bool m_readCapacityUnitsHasBeenSet = false;
104 bool m_readCapacityAutoScalingHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace Keyspaces
109} // namespace Aws
AWS_KEYSPACES_API ReplicaSpecification()=default
ReplicaSpecification & WithRegion(RegionT &&value)
void SetReadCapacityAutoScaling(ReadCapacityAutoScalingT &&value)
ReplicaSpecification & WithReadCapacityUnits(long long value)
const AutoScalingSettings & GetReadCapacityAutoScaling() const
ReplicaSpecification & WithReadCapacityAutoScaling(ReadCapacityAutoScalingT &&value)
AWS_KEYSPACES_API ReplicaSpecification(Aws::Utils::Json::JsonView jsonValue)
AWS_KEYSPACES_API ReplicaSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_KEYSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue