AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
TableAutoScalingDescription.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/ReplicaAutoScalingDescription.h>
11#include <aws/dynamodb/model/TableStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DynamoDB {
23namespace Model {
24
32 public:
33 AWS_DYNAMODB_API TableAutoScalingDescription() = default;
36 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetTableName() const { return m_tableName; }
43 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
44 template <typename TableNameT = Aws::String>
45 void SetTableName(TableNameT&& value) {
46 m_tableNameHasBeenSet = true;
47 m_tableName = std::forward<TableNameT>(value);
48 }
49 template <typename TableNameT = Aws::String>
51 SetTableName(std::forward<TableNameT>(value));
52 return *this;
53 }
55
57
64 inline TableStatus GetTableStatus() const { return m_tableStatus; }
65 inline bool TableStatusHasBeenSet() const { return m_tableStatusHasBeenSet; }
66 inline void SetTableStatus(TableStatus value) {
67 m_tableStatusHasBeenSet = true;
68 m_tableStatus = value;
69 }
71 SetTableStatus(value);
72 return *this;
73 }
75
77
80 inline const Aws::Vector<ReplicaAutoScalingDescription>& GetReplicas() const { return m_replicas; }
81 inline bool ReplicasHasBeenSet() const { return m_replicasHasBeenSet; }
82 template <typename ReplicasT = Aws::Vector<ReplicaAutoScalingDescription>>
83 void SetReplicas(ReplicasT&& value) {
84 m_replicasHasBeenSet = true;
85 m_replicas = std::forward<ReplicasT>(value);
86 }
87 template <typename ReplicasT = Aws::Vector<ReplicaAutoScalingDescription>>
89 SetReplicas(std::forward<ReplicasT>(value));
90 return *this;
91 }
92 template <typename ReplicasT = ReplicaAutoScalingDescription>
94 m_replicasHasBeenSet = true;
95 m_replicas.emplace_back(std::forward<ReplicasT>(value));
96 return *this;
97 }
99 private:
100 Aws::String m_tableName;
101
102 TableStatus m_tableStatus{TableStatus::NOT_SET};
103
105 bool m_tableNameHasBeenSet = false;
106 bool m_tableStatusHasBeenSet = false;
107 bool m_replicasHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace DynamoDB
112} // namespace Aws
const Aws::Vector< ReplicaAutoScalingDescription > & GetReplicas() const
AWS_DYNAMODB_API TableAutoScalingDescription()=default
TableAutoScalingDescription & WithTableStatus(TableStatus value)
AWS_DYNAMODB_API TableAutoScalingDescription(Aws::Utils::Json::JsonView jsonValue)
AWS_DYNAMODB_API TableAutoScalingDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
TableAutoScalingDescription & WithReplicas(ReplicasT &&value)
TableAutoScalingDescription & AddReplicas(ReplicasT &&value)
TableAutoScalingDescription & WithTableName(TableNameT &&value)
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue