AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateGlobalTableRequest.h
1
6#pragma once
7#include <aws/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/dynamodb/DynamoDBRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/dynamodb/model/Replica.h>
12#include <utility>
13
14namespace Aws
15{
16namespace DynamoDB
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_DYNAMODB_API CreateGlobalTableRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateGlobalTable"; }
33
34 AWS_DYNAMODB_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetGlobalTableName() const{ return m_globalTableName; }
44 inline bool GlobalTableNameHasBeenSet() const { return m_globalTableNameHasBeenSet; }
45 inline void SetGlobalTableName(const Aws::String& value) { m_globalTableNameHasBeenSet = true; m_globalTableName = value; }
46 inline void SetGlobalTableName(Aws::String&& value) { m_globalTableNameHasBeenSet = true; m_globalTableName = std::move(value); }
47 inline void SetGlobalTableName(const char* value) { m_globalTableNameHasBeenSet = true; m_globalTableName.assign(value); }
48 inline CreateGlobalTableRequest& WithGlobalTableName(const Aws::String& value) { SetGlobalTableName(value); return *this;}
49 inline CreateGlobalTableRequest& WithGlobalTableName(Aws::String&& value) { SetGlobalTableName(std::move(value)); return *this;}
50 inline CreateGlobalTableRequest& WithGlobalTableName(const char* value) { SetGlobalTableName(value); return *this;}
52
54
57 inline const Aws::Vector<Replica>& GetReplicationGroup() const{ return m_replicationGroup; }
58 inline bool ReplicationGroupHasBeenSet() const { return m_replicationGroupHasBeenSet; }
59 inline void SetReplicationGroup(const Aws::Vector<Replica>& value) { m_replicationGroupHasBeenSet = true; m_replicationGroup = value; }
60 inline void SetReplicationGroup(Aws::Vector<Replica>&& value) { m_replicationGroupHasBeenSet = true; m_replicationGroup = std::move(value); }
63 inline CreateGlobalTableRequest& AddReplicationGroup(const Replica& value) { m_replicationGroupHasBeenSet = true; m_replicationGroup.push_back(value); return *this; }
64 inline CreateGlobalTableRequest& AddReplicationGroup(Replica&& value) { m_replicationGroupHasBeenSet = true; m_replicationGroup.push_back(std::move(value)); return *this; }
66 private:
67
68 Aws::String m_globalTableName;
69 bool m_globalTableNameHasBeenSet = false;
70
71 Aws::Vector<Replica> m_replicationGroup;
72 bool m_replicationGroupHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace DynamoDB
77} // namespace Aws
CreateGlobalTableRequest & WithGlobalTableName(Aws::String &&value)
AWS_DYNAMODB_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
CreateGlobalTableRequest & AddReplicationGroup(const Replica &value)
CreateGlobalTableRequest & WithReplicationGroup(Aws::Vector< Replica > &&value)
CreateGlobalTableRequest & WithGlobalTableName(const char *value)
const Aws::Vector< Replica > & GetReplicationGroup() const
CreateGlobalTableRequest & AddReplicationGroup(Replica &&value)
CreateGlobalTableRequest & WithReplicationGroup(const Aws::Vector< Replica > &value)
CreateGlobalTableRequest & WithGlobalTableName(const Aws::String &value)
void SetReplicationGroup(Aws::Vector< Replica > &&value)
void SetReplicationGroup(const Aws::Vector< Replica > &value)
AWS_DYNAMODB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector