AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GlobalTable.h
1
6#pragma once
7#include <aws/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/dynamodb/model/Replica.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DynamoDB
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_DYNAMODB_API GlobalTable();
37 AWS_DYNAMODB_API GlobalTable(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DYNAMODB_API GlobalTable& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetGlobalTableName() const{ return m_globalTableName; }
47 inline bool GlobalTableNameHasBeenSet() const { return m_globalTableNameHasBeenSet; }
48 inline void SetGlobalTableName(const Aws::String& value) { m_globalTableNameHasBeenSet = true; m_globalTableName = value; }
49 inline void SetGlobalTableName(Aws::String&& value) { m_globalTableNameHasBeenSet = true; m_globalTableName = std::move(value); }
50 inline void SetGlobalTableName(const char* value) { m_globalTableNameHasBeenSet = true; m_globalTableName.assign(value); }
51 inline GlobalTable& WithGlobalTableName(const Aws::String& value) { SetGlobalTableName(value); return *this;}
52 inline GlobalTable& WithGlobalTableName(Aws::String&& value) { SetGlobalTableName(std::move(value)); return *this;}
53 inline GlobalTable& WithGlobalTableName(const char* value) { SetGlobalTableName(value); return *this;}
55
57
60 inline const Aws::Vector<Replica>& GetReplicationGroup() const{ return m_replicationGroup; }
61 inline bool ReplicationGroupHasBeenSet() const { return m_replicationGroupHasBeenSet; }
62 inline void SetReplicationGroup(const Aws::Vector<Replica>& value) { m_replicationGroupHasBeenSet = true; m_replicationGroup = value; }
63 inline void SetReplicationGroup(Aws::Vector<Replica>&& value) { m_replicationGroupHasBeenSet = true; m_replicationGroup = std::move(value); }
64 inline GlobalTable& WithReplicationGroup(const Aws::Vector<Replica>& value) { SetReplicationGroup(value); return *this;}
65 inline GlobalTable& WithReplicationGroup(Aws::Vector<Replica>&& value) { SetReplicationGroup(std::move(value)); return *this;}
66 inline GlobalTable& AddReplicationGroup(const Replica& value) { m_replicationGroupHasBeenSet = true; m_replicationGroup.push_back(value); return *this; }
67 inline GlobalTable& AddReplicationGroup(Replica&& value) { m_replicationGroupHasBeenSet = true; m_replicationGroup.push_back(std::move(value)); return *this; }
69 private:
70
71 Aws::String m_globalTableName;
72 bool m_globalTableNameHasBeenSet = false;
73
74 Aws::Vector<Replica> m_replicationGroup;
75 bool m_replicationGroupHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace DynamoDB
80} // namespace Aws
GlobalTable & WithReplicationGroup(const Aws::Vector< Replica > &value)
Definition GlobalTable.h:64
GlobalTable & WithGlobalTableName(const Aws::String &value)
Definition GlobalTable.h:51
const Aws::Vector< Replica > & GetReplicationGroup() const
Definition GlobalTable.h:60
void SetReplicationGroup(Aws::Vector< Replica > &&value)
Definition GlobalTable.h:63
AWS_DYNAMODB_API GlobalTable & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetGlobalTableName(const char *value)
Definition GlobalTable.h:50
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
GlobalTable & WithGlobalTableName(Aws::String &&value)
Definition GlobalTable.h:52
GlobalTable & AddReplicationGroup(Replica &&value)
Definition GlobalTable.h:67
void SetGlobalTableName(Aws::String &&value)
Definition GlobalTable.h:49
GlobalTable & AddReplicationGroup(const Replica &value)
Definition GlobalTable.h:66
GlobalTable & WithReplicationGroup(Aws::Vector< Replica > &&value)
Definition GlobalTable.h:65
GlobalTable & WithGlobalTableName(const char *value)
Definition GlobalTable.h:53
const Aws::String & GetGlobalTableName() const
Definition GlobalTable.h:46
void SetReplicationGroup(const Aws::Vector< Replica > &value)
Definition GlobalTable.h:62
AWS_DYNAMODB_API GlobalTable(Aws::Utils::Json::JsonView jsonValue)
void SetGlobalTableName(const Aws::String &value)
Definition GlobalTable.h:48
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue