/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Represents the input of a DeleteReplicationGroup
* operation.See Also:
AWS
* API Reference
The identifier for the cluster to be deleted. This parameter is not case * sensitive.
*/ inline const Aws::String& GetReplicationGroupId() const{ return m_replicationGroupId; } /** *The identifier for the cluster to be deleted. This parameter is not case * sensitive.
*/ inline bool ReplicationGroupIdHasBeenSet() const { return m_replicationGroupIdHasBeenSet; } /** *The identifier for the cluster to be deleted. This parameter is not case * sensitive.
*/ inline void SetReplicationGroupId(const Aws::String& value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId = value; } /** *The identifier for the cluster to be deleted. This parameter is not case * sensitive.
*/ inline void SetReplicationGroupId(Aws::String&& value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId = std::move(value); } /** *The identifier for the cluster to be deleted. This parameter is not case * sensitive.
*/ inline void SetReplicationGroupId(const char* value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId.assign(value); } /** *The identifier for the cluster to be deleted. This parameter is not case * sensitive.
*/ inline DeleteReplicationGroupRequest& WithReplicationGroupId(const Aws::String& value) { SetReplicationGroupId(value); return *this;} /** *The identifier for the cluster to be deleted. This parameter is not case * sensitive.
*/ inline DeleteReplicationGroupRequest& WithReplicationGroupId(Aws::String&& value) { SetReplicationGroupId(std::move(value)); return *this;} /** *The identifier for the cluster to be deleted. This parameter is not case * sensitive.
*/ inline DeleteReplicationGroupRequest& WithReplicationGroupId(const char* value) { SetReplicationGroupId(value); return *this;} /** *If set to true
, all of the read replicas are deleted, but the
* primary node is retained.
If set to true
, all of the read replicas are deleted, but the
* primary node is retained.
If set to true
, all of the read replicas are deleted, but the
* primary node is retained.
If set to true
, all of the read replicas are deleted, but the
* primary node is retained.
The name of a final node group (shard) snapshot. ElastiCache creates the * snapshot from the primary node in the cluster, rather than one of the replicas; * this is to ensure that it captures the freshest data. After the final snapshot * is taken, the replication group is immediately deleted.
*/ inline const Aws::String& GetFinalSnapshotIdentifier() const{ return m_finalSnapshotIdentifier; } /** *The name of a final node group (shard) snapshot. ElastiCache creates the * snapshot from the primary node in the cluster, rather than one of the replicas; * this is to ensure that it captures the freshest data. After the final snapshot * is taken, the replication group is immediately deleted.
*/ inline bool FinalSnapshotIdentifierHasBeenSet() const { return m_finalSnapshotIdentifierHasBeenSet; } /** *The name of a final node group (shard) snapshot. ElastiCache creates the * snapshot from the primary node in the cluster, rather than one of the replicas; * this is to ensure that it captures the freshest data. After the final snapshot * is taken, the replication group is immediately deleted.
*/ inline void SetFinalSnapshotIdentifier(const Aws::String& value) { m_finalSnapshotIdentifierHasBeenSet = true; m_finalSnapshotIdentifier = value; } /** *The name of a final node group (shard) snapshot. ElastiCache creates the * snapshot from the primary node in the cluster, rather than one of the replicas; * this is to ensure that it captures the freshest data. After the final snapshot * is taken, the replication group is immediately deleted.
*/ inline void SetFinalSnapshotIdentifier(Aws::String&& value) { m_finalSnapshotIdentifierHasBeenSet = true; m_finalSnapshotIdentifier = std::move(value); } /** *The name of a final node group (shard) snapshot. ElastiCache creates the * snapshot from the primary node in the cluster, rather than one of the replicas; * this is to ensure that it captures the freshest data. After the final snapshot * is taken, the replication group is immediately deleted.
*/ inline void SetFinalSnapshotIdentifier(const char* value) { m_finalSnapshotIdentifierHasBeenSet = true; m_finalSnapshotIdentifier.assign(value); } /** *The name of a final node group (shard) snapshot. ElastiCache creates the * snapshot from the primary node in the cluster, rather than one of the replicas; * this is to ensure that it captures the freshest data. After the final snapshot * is taken, the replication group is immediately deleted.
*/ inline DeleteReplicationGroupRequest& WithFinalSnapshotIdentifier(const Aws::String& value) { SetFinalSnapshotIdentifier(value); return *this;} /** *The name of a final node group (shard) snapshot. ElastiCache creates the * snapshot from the primary node in the cluster, rather than one of the replicas; * this is to ensure that it captures the freshest data. After the final snapshot * is taken, the replication group is immediately deleted.
*/ inline DeleteReplicationGroupRequest& WithFinalSnapshotIdentifier(Aws::String&& value) { SetFinalSnapshotIdentifier(std::move(value)); return *this;} /** *The name of a final node group (shard) snapshot. ElastiCache creates the * snapshot from the primary node in the cluster, rather than one of the replicas; * this is to ensure that it captures the freshest data. After the final snapshot * is taken, the replication group is immediately deleted.
*/ inline DeleteReplicationGroupRequest& WithFinalSnapshotIdentifier(const char* value) { SetFinalSnapshotIdentifier(value); return *this;} private: Aws::String m_replicationGroupId; bool m_replicationGroupIdHasBeenSet = false; bool m_retainPrimaryCluster; bool m_retainPrimaryClusterHasBeenSet = false; Aws::String m_finalSnapshotIdentifier; bool m_finalSnapshotIdentifierHasBeenSet = false; }; } // namespace Model } // namespace ElastiCache } // namespace Aws