AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateGlobalTableRequest.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/ReplicaUpdate.h>
12#include <utility>
13
14namespace Aws
15{
16namespace DynamoDB
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_DYNAMODB_API UpdateGlobalTableRequest();
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 "UpdateGlobalTable"; }
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 UpdateGlobalTableRequest& WithGlobalTableName(const Aws::String& value) { SetGlobalTableName(value); return *this;}
49 inline UpdateGlobalTableRequest& WithGlobalTableName(Aws::String&& value) { SetGlobalTableName(std::move(value)); return *this;}
50 inline UpdateGlobalTableRequest& WithGlobalTableName(const char* value) { SetGlobalTableName(value); return *this;}
52
54
57 inline const Aws::Vector<ReplicaUpdate>& GetReplicaUpdates() const{ return m_replicaUpdates; }
58 inline bool ReplicaUpdatesHasBeenSet() const { return m_replicaUpdatesHasBeenSet; }
59 inline void SetReplicaUpdates(const Aws::Vector<ReplicaUpdate>& value) { m_replicaUpdatesHasBeenSet = true; m_replicaUpdates = value; }
60 inline void SetReplicaUpdates(Aws::Vector<ReplicaUpdate>&& value) { m_replicaUpdatesHasBeenSet = true; m_replicaUpdates = std::move(value); }
63 inline UpdateGlobalTableRequest& AddReplicaUpdates(const ReplicaUpdate& value) { m_replicaUpdatesHasBeenSet = true; m_replicaUpdates.push_back(value); return *this; }
64 inline UpdateGlobalTableRequest& AddReplicaUpdates(ReplicaUpdate&& value) { m_replicaUpdatesHasBeenSet = true; m_replicaUpdates.push_back(std::move(value)); return *this; }
66 private:
67
68 Aws::String m_globalTableName;
69 bool m_globalTableNameHasBeenSet = false;
70
71 Aws::Vector<ReplicaUpdate> m_replicaUpdates;
72 bool m_replicaUpdatesHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace DynamoDB
77} // namespace Aws
void SetReplicaUpdates(Aws::Vector< ReplicaUpdate > &&value)
UpdateGlobalTableRequest & WithReplicaUpdates(Aws::Vector< ReplicaUpdate > &&value)
const Aws::Vector< ReplicaUpdate > & GetReplicaUpdates() const
UpdateGlobalTableRequest & WithReplicaUpdates(const Aws::Vector< ReplicaUpdate > &value)
UpdateGlobalTableRequest & WithGlobalTableName(const Aws::String &value)
UpdateGlobalTableRequest & AddReplicaUpdates(const ReplicaUpdate &value)
void SetReplicaUpdates(const Aws::Vector< ReplicaUpdate > &value)
UpdateGlobalTableRequest & WithGlobalTableName(Aws::String &&value)
AWS_DYNAMODB_API Aws::String SerializePayload() const override
AWS_DYNAMODB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateGlobalTableRequest & WithGlobalTableName(const char *value)
UpdateGlobalTableRequest & AddReplicaUpdates(ReplicaUpdate &&value)
virtual const char * GetServiceRequestName() 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