/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Represents one of the following: A new replica to be added
* to an existing global table. New parameters for an existing
* replica. An existing replica to be removed from an existing
* global table.
See Also:
AWS
* API Reference
The parameters required for creating a replica on an existing global * table.
*/ inline const CreateReplicaAction& GetCreate() const{ return m_create; } /** *The parameters required for creating a replica on an existing global * table.
*/ inline bool CreateHasBeenSet() const { return m_createHasBeenSet; } /** *The parameters required for creating a replica on an existing global * table.
*/ inline void SetCreate(const CreateReplicaAction& value) { m_createHasBeenSet = true; m_create = value; } /** *The parameters required for creating a replica on an existing global * table.
*/ inline void SetCreate(CreateReplicaAction&& value) { m_createHasBeenSet = true; m_create = std::move(value); } /** *The parameters required for creating a replica on an existing global * table.
*/ inline ReplicaUpdate& WithCreate(const CreateReplicaAction& value) { SetCreate(value); return *this;} /** *The parameters required for creating a replica on an existing global * table.
*/ inline ReplicaUpdate& WithCreate(CreateReplicaAction&& value) { SetCreate(std::move(value)); return *this;} /** *The name of the existing replica to be removed.
*/ inline const DeleteReplicaAction& GetDelete() const{ return m_delete; } /** *The name of the existing replica to be removed.
*/ inline bool DeleteHasBeenSet() const { return m_deleteHasBeenSet; } /** *The name of the existing replica to be removed.
*/ inline void SetDelete(const DeleteReplicaAction& value) { m_deleteHasBeenSet = true; m_delete = value; } /** *The name of the existing replica to be removed.
*/ inline void SetDelete(DeleteReplicaAction&& value) { m_deleteHasBeenSet = true; m_delete = std::move(value); } /** *The name of the existing replica to be removed.
*/ inline ReplicaUpdate& WithDelete(const DeleteReplicaAction& value) { SetDelete(value); return *this;} /** *The name of the existing replica to be removed.
*/ inline ReplicaUpdate& WithDelete(DeleteReplicaAction&& value) { SetDelete(std::move(value)); return *this;} private: CreateReplicaAction m_create; bool m_createHasBeenSet = false; DeleteReplicaAction m_delete; bool m_deleteHasBeenSet = false; }; } // namespace Model } // namespace DynamoDB } // namespace Aws