AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
56 inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
57 inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
58 inline ReplicaSpecification& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
59 inline ReplicaSpecification& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
60 inline ReplicaSpecification& WithRegion(const char* value) { SetRegion(value); return *this;}
62
64
68 inline long long GetReadCapacityUnits() const{ return m_readCapacityUnits; }
69 inline bool ReadCapacityUnitsHasBeenSet() const { return m_readCapacityUnitsHasBeenSet; }
70 inline void SetReadCapacityUnits(long long value) { m_readCapacityUnitsHasBeenSet = true; m_readCapacityUnits = value; }
71 inline ReplicaSpecification& WithReadCapacityUnits(long long value) { SetReadCapacityUnits(value); return *this;}
73
75
79 inline const AutoScalingSettings& GetReadCapacityAutoScaling() const{ return m_readCapacityAutoScaling; }
80 inline bool ReadCapacityAutoScalingHasBeenSet() const { return m_readCapacityAutoScalingHasBeenSet; }
81 inline void SetReadCapacityAutoScaling(const AutoScalingSettings& value) { m_readCapacityAutoScalingHasBeenSet = true; m_readCapacityAutoScaling = value; }
82 inline void SetReadCapacityAutoScaling(AutoScalingSettings&& value) { m_readCapacityAutoScalingHasBeenSet = true; m_readCapacityAutoScaling = std::move(value); }
86 private:
87
88 Aws::String m_region;
89 bool m_regionHasBeenSet = false;
90
91 long long m_readCapacityUnits;
92 bool m_readCapacityUnitsHasBeenSet = false;
93
94 AutoScalingSettings m_readCapacityAutoScaling;
95 bool m_readCapacityAutoScalingHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace Keyspaces
100} // namespace Aws
ReplicaSpecification & WithRegion(Aws::String &&value)
void SetReadCapacityAutoScaling(const AutoScalingSettings &value)
ReplicaSpecification & WithReadCapacityUnits(long long value)
const AutoScalingSettings & GetReadCapacityAutoScaling() const
ReplicaSpecification & WithReadCapacityAutoScaling(const AutoScalingSettings &value)
AWS_KEYSPACES_API ReplicaSpecification(Aws::Utils::Json::JsonView jsonValue)
AWS_KEYSPACES_API ReplicaSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetReadCapacityAutoScaling(AutoScalingSettings &&value)
ReplicaSpecification & WithRegion(const Aws::String &value)
AWS_KEYSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
ReplicaSpecification & WithRegion(const char *value)
ReplicaSpecification & WithReadCapacityAutoScaling(AutoScalingSettings &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue