/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace ElastiCache { namespace Model { /** *

Indicates the slot configuration and global identifier for a slice * group.

See Also:

AWS * API Reference

*/ class GlobalNodeGroup { public: AWS_ELASTICACHE_API GlobalNodeGroup(); AWS_ELASTICACHE_API GlobalNodeGroup(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ELASTICACHE_API GlobalNodeGroup& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The name of the global node group

*/ inline const Aws::String& GetGlobalNodeGroupId() const{ return m_globalNodeGroupId; } /** *

The name of the global node group

*/ inline bool GlobalNodeGroupIdHasBeenSet() const { return m_globalNodeGroupIdHasBeenSet; } /** *

The name of the global node group

*/ inline void SetGlobalNodeGroupId(const Aws::String& value) { m_globalNodeGroupIdHasBeenSet = true; m_globalNodeGroupId = value; } /** *

The name of the global node group

*/ inline void SetGlobalNodeGroupId(Aws::String&& value) { m_globalNodeGroupIdHasBeenSet = true; m_globalNodeGroupId = std::move(value); } /** *

The name of the global node group

*/ inline void SetGlobalNodeGroupId(const char* value) { m_globalNodeGroupIdHasBeenSet = true; m_globalNodeGroupId.assign(value); } /** *

The name of the global node group

*/ inline GlobalNodeGroup& WithGlobalNodeGroupId(const Aws::String& value) { SetGlobalNodeGroupId(value); return *this;} /** *

The name of the global node group

*/ inline GlobalNodeGroup& WithGlobalNodeGroupId(Aws::String&& value) { SetGlobalNodeGroupId(std::move(value)); return *this;} /** *

The name of the global node group

*/ inline GlobalNodeGroup& WithGlobalNodeGroupId(const char* value) { SetGlobalNodeGroupId(value); return *this;} /** *

The keyspace for this node group

*/ inline const Aws::String& GetSlots() const{ return m_slots; } /** *

The keyspace for this node group

*/ inline bool SlotsHasBeenSet() const { return m_slotsHasBeenSet; } /** *

The keyspace for this node group

*/ inline void SetSlots(const Aws::String& value) { m_slotsHasBeenSet = true; m_slots = value; } /** *

The keyspace for this node group

*/ inline void SetSlots(Aws::String&& value) { m_slotsHasBeenSet = true; m_slots = std::move(value); } /** *

The keyspace for this node group

*/ inline void SetSlots(const char* value) { m_slotsHasBeenSet = true; m_slots.assign(value); } /** *

The keyspace for this node group

*/ inline GlobalNodeGroup& WithSlots(const Aws::String& value) { SetSlots(value); return *this;} /** *

The keyspace for this node group

*/ inline GlobalNodeGroup& WithSlots(Aws::String&& value) { SetSlots(std::move(value)); return *this;} /** *

The keyspace for this node group

*/ inline GlobalNodeGroup& WithSlots(const char* value) { SetSlots(value); return *this;} private: Aws::String m_globalNodeGroupId; bool m_globalNodeGroupIdHasBeenSet = false; Aws::String m_slots; bool m_slotsHasBeenSet = false; }; } // namespace Model } // namespace ElastiCache } // namespace Aws