AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ReplicaSpecification.h
1
6#pragma once
7#include <aws/keyspaces/Keyspaces_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/keyspaces/model/AutoScalingSettings.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Keyspaces
23{
24namespace Model
25{
26
41 {
42 public:
43 AWS_KEYSPACES_API ReplicaSpecification() = default;
46 AWS_KEYSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline const Aws::String& GetRegion() const { return m_region; }
54 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
55 template<typename RegionT = Aws::String>
56 void SetRegion(RegionT&& value) { m_regionHasBeenSet = true; m_region = std::forward<RegionT>(value); }
57 template<typename RegionT = Aws::String>
58 ReplicaSpecification& WithRegion(RegionT&& value) { SetRegion(std::forward<RegionT>(value)); return *this;}
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) { m_readCapacityUnitsHasBeenSet = true; m_readCapacityUnits = value; }
69 inline ReplicaSpecification& WithReadCapacityUnits(long long value) { SetReadCapacityUnits(value); return *this;}
71
73
77 inline const AutoScalingSettings& GetReadCapacityAutoScaling() const { return m_readCapacityAutoScaling; }
78 inline bool ReadCapacityAutoScalingHasBeenSet() const { return m_readCapacityAutoScalingHasBeenSet; }
79 template<typename ReadCapacityAutoScalingT = AutoScalingSettings>
80 void SetReadCapacityAutoScaling(ReadCapacityAutoScalingT&& value) { m_readCapacityAutoScalingHasBeenSet = true; m_readCapacityAutoScaling = std::forward<ReadCapacityAutoScalingT>(value); }
81 template<typename ReadCapacityAutoScalingT = AutoScalingSettings>
82 ReplicaSpecification& WithReadCapacityAutoScaling(ReadCapacityAutoScalingT&& value) { SetReadCapacityAutoScaling(std::forward<ReadCapacityAutoScalingT>(value)); return *this;}
84 private:
85
86 Aws::String m_region;
87 bool m_regionHasBeenSet = false;
88
89 long long m_readCapacityUnits{0};
90 bool m_readCapacityUnitsHasBeenSet = false;
91
92 AutoScalingSettings m_readCapacityAutoScaling;
93 bool m_readCapacityAutoScalingHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace Keyspaces
98} // 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