AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GlobalTableDescription.h
1
6#pragma once
7#include <aws/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/dynamodb/model/GlobalTableStatus.h>
12#include <aws/dynamodb/model/ReplicaDescription.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace DynamoDB
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_DYNAMODB_API GlobalTableDescription();
41 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Vector<ReplicaDescription>& GetReplicationGroup() const{ return m_replicationGroup; }
49 inline bool ReplicationGroupHasBeenSet() const { return m_replicationGroupHasBeenSet; }
50 inline void SetReplicationGroup(const Aws::Vector<ReplicaDescription>& value) { m_replicationGroupHasBeenSet = true; m_replicationGroup = value; }
51 inline void SetReplicationGroup(Aws::Vector<ReplicaDescription>&& value) { m_replicationGroupHasBeenSet = true; m_replicationGroup = std::move(value); }
54 inline GlobalTableDescription& AddReplicationGroup(const ReplicaDescription& value) { m_replicationGroupHasBeenSet = true; m_replicationGroup.push_back(value); return *this; }
55 inline GlobalTableDescription& AddReplicationGroup(ReplicaDescription&& value) { m_replicationGroupHasBeenSet = true; m_replicationGroup.push_back(std::move(value)); return *this; }
57
59
62 inline const Aws::String& GetGlobalTableArn() const{ return m_globalTableArn; }
63 inline bool GlobalTableArnHasBeenSet() const { return m_globalTableArnHasBeenSet; }
64 inline void SetGlobalTableArn(const Aws::String& value) { m_globalTableArnHasBeenSet = true; m_globalTableArn = value; }
65 inline void SetGlobalTableArn(Aws::String&& value) { m_globalTableArnHasBeenSet = true; m_globalTableArn = std::move(value); }
66 inline void SetGlobalTableArn(const char* value) { m_globalTableArnHasBeenSet = true; m_globalTableArn.assign(value); }
67 inline GlobalTableDescription& WithGlobalTableArn(const Aws::String& value) { SetGlobalTableArn(value); return *this;}
68 inline GlobalTableDescription& WithGlobalTableArn(Aws::String&& value) { SetGlobalTableArn(std::move(value)); return *this;}
69 inline GlobalTableDescription& WithGlobalTableArn(const char* value) { SetGlobalTableArn(value); return *this;}
71
73
76 inline const Aws::Utils::DateTime& GetCreationDateTime() const{ return m_creationDateTime; }
77 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
78 inline void SetCreationDateTime(const Aws::Utils::DateTime& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = value; }
79 inline void SetCreationDateTime(Aws::Utils::DateTime&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::move(value); }
81 inline GlobalTableDescription& WithCreationDateTime(Aws::Utils::DateTime&& value) { SetCreationDateTime(std::move(value)); return *this;}
83
85
92 inline const GlobalTableStatus& GetGlobalTableStatus() const{ return m_globalTableStatus; }
93 inline bool GlobalTableStatusHasBeenSet() const { return m_globalTableStatusHasBeenSet; }
94 inline void SetGlobalTableStatus(const GlobalTableStatus& value) { m_globalTableStatusHasBeenSet = true; m_globalTableStatus = value; }
95 inline void SetGlobalTableStatus(GlobalTableStatus&& value) { m_globalTableStatusHasBeenSet = true; m_globalTableStatus = std::move(value); }
97 inline GlobalTableDescription& WithGlobalTableStatus(GlobalTableStatus&& value) { SetGlobalTableStatus(std::move(value)); return *this;}
99
101
104 inline const Aws::String& GetGlobalTableName() const{ return m_globalTableName; }
105 inline bool GlobalTableNameHasBeenSet() const { return m_globalTableNameHasBeenSet; }
106 inline void SetGlobalTableName(const Aws::String& value) { m_globalTableNameHasBeenSet = true; m_globalTableName = value; }
107 inline void SetGlobalTableName(Aws::String&& value) { m_globalTableNameHasBeenSet = true; m_globalTableName = std::move(value); }
108 inline void SetGlobalTableName(const char* value) { m_globalTableNameHasBeenSet = true; m_globalTableName.assign(value); }
109 inline GlobalTableDescription& WithGlobalTableName(const Aws::String& value) { SetGlobalTableName(value); return *this;}
110 inline GlobalTableDescription& WithGlobalTableName(Aws::String&& value) { SetGlobalTableName(std::move(value)); return *this;}
111 inline GlobalTableDescription& WithGlobalTableName(const char* value) { SetGlobalTableName(value); return *this;}
113 private:
114
115 Aws::Vector<ReplicaDescription> m_replicationGroup;
116 bool m_replicationGroupHasBeenSet = false;
117
118 Aws::String m_globalTableArn;
119 bool m_globalTableArnHasBeenSet = false;
120
121 Aws::Utils::DateTime m_creationDateTime;
122 bool m_creationDateTimeHasBeenSet = false;
123
124 GlobalTableStatus m_globalTableStatus;
125 bool m_globalTableStatusHasBeenSet = false;
126
127 Aws::String m_globalTableName;
128 bool m_globalTableNameHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace DynamoDB
133} // namespace Aws
AWS_DYNAMODB_API GlobalTableDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
GlobalTableDescription & WithReplicationGroup(Aws::Vector< ReplicaDescription > &&value)
const GlobalTableStatus & GetGlobalTableStatus() const
GlobalTableDescription & WithGlobalTableArn(Aws::String &&value)
GlobalTableDescription & WithReplicationGroup(const Aws::Vector< ReplicaDescription > &value)
GlobalTableDescription & AddReplicationGroup(const ReplicaDescription &value)
GlobalTableDescription & AddReplicationGroup(ReplicaDescription &&value)
void SetReplicationGroup(Aws::Vector< ReplicaDescription > &&value)
GlobalTableDescription & WithGlobalTableStatus(const GlobalTableStatus &value)
GlobalTableDescription & WithGlobalTableStatus(GlobalTableStatus &&value)
GlobalTableDescription & WithGlobalTableName(Aws::String &&value)
GlobalTableDescription & WithCreationDateTime(Aws::Utils::DateTime &&value)
void SetGlobalTableStatus(GlobalTableStatus &&value)
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
GlobalTableDescription & WithGlobalTableName(const Aws::String &value)
GlobalTableDescription & WithCreationDateTime(const Aws::Utils::DateTime &value)
void SetCreationDateTime(const Aws::Utils::DateTime &value)
GlobalTableDescription & WithGlobalTableArn(const char *value)
void SetReplicationGroup(const Aws::Vector< ReplicaDescription > &value)
void SetGlobalTableStatus(const GlobalTableStatus &value)
const Aws::Vector< ReplicaDescription > & GetReplicationGroup() const
GlobalTableDescription & WithGlobalTableArn(const Aws::String &value)
const Aws::Utils::DateTime & GetCreationDateTime() const
GlobalTableDescription & WithGlobalTableName(const char *value)
AWS_DYNAMODB_API GlobalTableDescription(Aws::Utils::Json::JsonView jsonValue)
void SetCreationDateTime(Aws::Utils::DateTime &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue