/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace DynamoDB { namespace Model { /** */ class CreateGlobalTableRequest : public DynamoDBRequest { public: AWS_DYNAMODB_API CreateGlobalTableRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateGlobalTable"; } AWS_DYNAMODB_API Aws::String SerializePayload() const override; AWS_DYNAMODB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The global table name.

*/ inline const Aws::String& GetGlobalTableName() const{ return m_globalTableName; } /** *

The global table name.

*/ inline bool GlobalTableNameHasBeenSet() const { return m_globalTableNameHasBeenSet; } /** *

The global table name.

*/ inline void SetGlobalTableName(const Aws::String& value) { m_globalTableNameHasBeenSet = true; m_globalTableName = value; } /** *

The global table name.

*/ inline void SetGlobalTableName(Aws::String&& value) { m_globalTableNameHasBeenSet = true; m_globalTableName = std::move(value); } /** *

The global table name.

*/ inline void SetGlobalTableName(const char* value) { m_globalTableNameHasBeenSet = true; m_globalTableName.assign(value); } /** *

The global table name.

*/ inline CreateGlobalTableRequest& WithGlobalTableName(const Aws::String& value) { SetGlobalTableName(value); return *this;} /** *

The global table name.

*/ inline CreateGlobalTableRequest& WithGlobalTableName(Aws::String&& value) { SetGlobalTableName(std::move(value)); return *this;} /** *

The global table name.

*/ inline CreateGlobalTableRequest& WithGlobalTableName(const char* value) { SetGlobalTableName(value); return *this;} /** *

The Regions where the global table needs to be created.

*/ inline const Aws::Vector& GetReplicationGroup() const{ return m_replicationGroup; } /** *

The Regions where the global table needs to be created.

*/ inline bool ReplicationGroupHasBeenSet() const { return m_replicationGroupHasBeenSet; } /** *

The Regions where the global table needs to be created.

*/ inline void SetReplicationGroup(const Aws::Vector& value) { m_replicationGroupHasBeenSet = true; m_replicationGroup = value; } /** *

The Regions where the global table needs to be created.

*/ inline void SetReplicationGroup(Aws::Vector&& value) { m_replicationGroupHasBeenSet = true; m_replicationGroup = std::move(value); } /** *

The Regions where the global table needs to be created.

*/ inline CreateGlobalTableRequest& WithReplicationGroup(const Aws::Vector& value) { SetReplicationGroup(value); return *this;} /** *

The Regions where the global table needs to be created.

*/ inline CreateGlobalTableRequest& WithReplicationGroup(Aws::Vector&& value) { SetReplicationGroup(std::move(value)); return *this;} /** *

The Regions where the global table needs to be created.

*/ inline CreateGlobalTableRequest& AddReplicationGroup(const Replica& value) { m_replicationGroupHasBeenSet = true; m_replicationGroup.push_back(value); return *this; } /** *

The Regions where the global table needs to be created.

*/ inline CreateGlobalTableRequest& AddReplicationGroup(Replica&& value) { m_replicationGroupHasBeenSet = true; m_replicationGroup.push_back(std::move(value)); return *this; } private: Aws::String m_globalTableName; bool m_globalTableNameHasBeenSet = false; Aws::Vector m_replicationGroup; bool m_replicationGroupHasBeenSet = false; }; } // namespace Model } // namespace DynamoDB } // namespace Aws