/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A member of a Global datastore. It contains the Replication Group Id, the
* Amazon region and the role of the replication group. See Also:
* AWS
* API Reference
The replication group id of the Global datastore member.
*/ inline const Aws::String& GetReplicationGroupId() const{ return m_replicationGroupId; } /** *The replication group id of the Global datastore member.
*/ inline bool ReplicationGroupIdHasBeenSet() const { return m_replicationGroupIdHasBeenSet; } /** *The replication group id of the Global datastore member.
*/ inline void SetReplicationGroupId(const Aws::String& value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId = value; } /** *The replication group id of the Global datastore member.
*/ inline void SetReplicationGroupId(Aws::String&& value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId = std::move(value); } /** *The replication group id of the Global datastore member.
*/ inline void SetReplicationGroupId(const char* value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId.assign(value); } /** *The replication group id of the Global datastore member.
*/ inline GlobalReplicationGroupMember& WithReplicationGroupId(const Aws::String& value) { SetReplicationGroupId(value); return *this;} /** *The replication group id of the Global datastore member.
*/ inline GlobalReplicationGroupMember& WithReplicationGroupId(Aws::String&& value) { SetReplicationGroupId(std::move(value)); return *this;} /** *The replication group id of the Global datastore member.
*/ inline GlobalReplicationGroupMember& WithReplicationGroupId(const char* value) { SetReplicationGroupId(value); return *this;} /** *The Amazon region of the Global datastore member.
*/ inline const Aws::String& GetReplicationGroupRegion() const{ return m_replicationGroupRegion; } /** *The Amazon region of the Global datastore member.
*/ inline bool ReplicationGroupRegionHasBeenSet() const { return m_replicationGroupRegionHasBeenSet; } /** *The Amazon region of the Global datastore member.
*/ inline void SetReplicationGroupRegion(const Aws::String& value) { m_replicationGroupRegionHasBeenSet = true; m_replicationGroupRegion = value; } /** *The Amazon region of the Global datastore member.
*/ inline void SetReplicationGroupRegion(Aws::String&& value) { m_replicationGroupRegionHasBeenSet = true; m_replicationGroupRegion = std::move(value); } /** *The Amazon region of the Global datastore member.
*/ inline void SetReplicationGroupRegion(const char* value) { m_replicationGroupRegionHasBeenSet = true; m_replicationGroupRegion.assign(value); } /** *The Amazon region of the Global datastore member.
*/ inline GlobalReplicationGroupMember& WithReplicationGroupRegion(const Aws::String& value) { SetReplicationGroupRegion(value); return *this;} /** *The Amazon region of the Global datastore member.
*/ inline GlobalReplicationGroupMember& WithReplicationGroupRegion(Aws::String&& value) { SetReplicationGroupRegion(std::move(value)); return *this;} /** *The Amazon region of the Global datastore member.
*/ inline GlobalReplicationGroupMember& WithReplicationGroupRegion(const char* value) { SetReplicationGroupRegion(value); return *this;} /** *Indicates the role of the replication group, primary or secondary.
*/ inline const Aws::String& GetRole() const{ return m_role; } /** *Indicates the role of the replication group, primary or secondary.
*/ inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; } /** *Indicates the role of the replication group, primary or secondary.
*/ inline void SetRole(const Aws::String& value) { m_roleHasBeenSet = true; m_role = value; } /** *Indicates the role of the replication group, primary or secondary.
*/ inline void SetRole(Aws::String&& value) { m_roleHasBeenSet = true; m_role = std::move(value); } /** *Indicates the role of the replication group, primary or secondary.
*/ inline void SetRole(const char* value) { m_roleHasBeenSet = true; m_role.assign(value); } /** *Indicates the role of the replication group, primary or secondary.
*/ inline GlobalReplicationGroupMember& WithRole(const Aws::String& value) { SetRole(value); return *this;} /** *Indicates the role of the replication group, primary or secondary.
*/ inline GlobalReplicationGroupMember& WithRole(Aws::String&& value) { SetRole(std::move(value)); return *this;} /** *Indicates the role of the replication group, primary or secondary.
*/ inline GlobalReplicationGroupMember& WithRole(const char* value) { SetRole(value); return *this;} /** *Indicates whether automatic failover is enabled for the replication * group.
*/ inline const AutomaticFailoverStatus& GetAutomaticFailover() const{ return m_automaticFailover; } /** *Indicates whether automatic failover is enabled for the replication * group.
*/ inline bool AutomaticFailoverHasBeenSet() const { return m_automaticFailoverHasBeenSet; } /** *Indicates whether automatic failover is enabled for the replication * group.
*/ inline void SetAutomaticFailover(const AutomaticFailoverStatus& value) { m_automaticFailoverHasBeenSet = true; m_automaticFailover = value; } /** *Indicates whether automatic failover is enabled for the replication * group.
*/ inline void SetAutomaticFailover(AutomaticFailoverStatus&& value) { m_automaticFailoverHasBeenSet = true; m_automaticFailover = std::move(value); } /** *Indicates whether automatic failover is enabled for the replication * group.
*/ inline GlobalReplicationGroupMember& WithAutomaticFailover(const AutomaticFailoverStatus& value) { SetAutomaticFailover(value); return *this;} /** *Indicates whether automatic failover is enabled for the replication * group.
*/ inline GlobalReplicationGroupMember& WithAutomaticFailover(AutomaticFailoverStatus&& value) { SetAutomaticFailover(std::move(value)); return *this;} /** *The status of the membership of the replication group.
*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *The status of the membership of the replication group.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *The status of the membership of the replication group.
*/ inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } /** *The status of the membership of the replication group.
*/ inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *The status of the membership of the replication group.
*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *The status of the membership of the replication group.
*/ inline GlobalReplicationGroupMember& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *The status of the membership of the replication group.
*/ inline GlobalReplicationGroupMember& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *The status of the membership of the replication group.
*/ inline GlobalReplicationGroupMember& WithStatus(const char* value) { SetStatus(value); return *this;} private: Aws::String m_replicationGroupId; bool m_replicationGroupIdHasBeenSet = false; Aws::String m_replicationGroupRegion; bool m_replicationGroupRegionHasBeenSet = false; Aws::String m_role; bool m_roleHasBeenSet = false; AutomaticFailoverStatus m_automaticFailover; bool m_automaticFailoverHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace ElastiCache } // namespace Aws