AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateGlobalTableRequest.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/DynamoDBRequest.h>
10#include <aws/dynamodb/DynamoDB_EXPORTS.h>
11#include <aws/dynamodb/model/Replica.h>
12
13#include <utility>
14
15namespace Aws {
16namespace DynamoDB {
17namespace Model {
18
22 public:
23 AWS_DYNAMODB_API CreateGlobalTableRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateGlobalTable"; }
30
31 AWS_DYNAMODB_API Aws::String SerializePayload() const override;
32
34
38 AWS_DYNAMODB_API EndpointParameters GetEndpointContextParams() const override;
39
41
44 inline const Aws::String& GetGlobalTableName() const { return m_globalTableName; }
45 inline bool GlobalTableNameHasBeenSet() const { return m_globalTableNameHasBeenSet; }
46 template <typename GlobalTableNameT = Aws::String>
47 void SetGlobalTableName(GlobalTableNameT&& value) {
48 m_globalTableNameHasBeenSet = true;
49 m_globalTableName = std::forward<GlobalTableNameT>(value);
50 }
51 template <typename GlobalTableNameT = Aws::String>
52 CreateGlobalTableRequest& WithGlobalTableName(GlobalTableNameT&& value) {
53 SetGlobalTableName(std::forward<GlobalTableNameT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::Vector<Replica>& GetReplicationGroup() const { return m_replicationGroup; }
63 inline bool ReplicationGroupHasBeenSet() const { return m_replicationGroupHasBeenSet; }
64 template <typename ReplicationGroupT = Aws::Vector<Replica>>
65 void SetReplicationGroup(ReplicationGroupT&& value) {
66 m_replicationGroupHasBeenSet = true;
67 m_replicationGroup = std::forward<ReplicationGroupT>(value);
68 }
69 template <typename ReplicationGroupT = Aws::Vector<Replica>>
70 CreateGlobalTableRequest& WithReplicationGroup(ReplicationGroupT&& value) {
71 SetReplicationGroup(std::forward<ReplicationGroupT>(value));
72 return *this;
73 }
74 template <typename ReplicationGroupT = Replica>
75 CreateGlobalTableRequest& AddReplicationGroup(ReplicationGroupT&& value) {
76 m_replicationGroupHasBeenSet = true;
77 m_replicationGroup.emplace_back(std::forward<ReplicationGroupT>(value));
78 return *this;
79 }
81 private:
82 Aws::String m_globalTableName;
83
84 Aws::Vector<Replica> m_replicationGroup;
85 bool m_globalTableNameHasBeenSet = false;
86 bool m_replicationGroupHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace DynamoDB
91} // namespace Aws
Aws::Endpoint::EndpointParameters EndpointParameters
CreateGlobalTableRequest & WithReplicationGroup(ReplicationGroupT &&value)
AWS_DYNAMODB_API EndpointParameters GetEndpointContextParams() const override
CreateGlobalTableRequest & WithGlobalTableName(GlobalTableNameT &&value)
AWS_DYNAMODB_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Replica > & GetReplicationGroup() const
CreateGlobalTableRequest & AddReplicationGroup(ReplicationGroupT &&value)
AWS_DYNAMODB_API CreateGlobalTableRequest()=default
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