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

Status of the cache parameter group.

See Also:

AWS * API Reference

*/ class CacheParameterGroupStatus { public: AWS_ELASTICACHE_API CacheParameterGroupStatus(); AWS_ELASTICACHE_API CacheParameterGroupStatus(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ELASTICACHE_API CacheParameterGroupStatus& 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 cache parameter group.

*/ inline const Aws::String& GetCacheParameterGroupName() const{ return m_cacheParameterGroupName; } /** *

The name of the cache parameter group.

*/ inline bool CacheParameterGroupNameHasBeenSet() const { return m_cacheParameterGroupNameHasBeenSet; } /** *

The name of the cache parameter group.

*/ inline void SetCacheParameterGroupName(const Aws::String& value) { m_cacheParameterGroupNameHasBeenSet = true; m_cacheParameterGroupName = value; } /** *

The name of the cache parameter group.

*/ inline void SetCacheParameterGroupName(Aws::String&& value) { m_cacheParameterGroupNameHasBeenSet = true; m_cacheParameterGroupName = std::move(value); } /** *

The name of the cache parameter group.

*/ inline void SetCacheParameterGroupName(const char* value) { m_cacheParameterGroupNameHasBeenSet = true; m_cacheParameterGroupName.assign(value); } /** *

The name of the cache parameter group.

*/ inline CacheParameterGroupStatus& WithCacheParameterGroupName(const Aws::String& value) { SetCacheParameterGroupName(value); return *this;} /** *

The name of the cache parameter group.

*/ inline CacheParameterGroupStatus& WithCacheParameterGroupName(Aws::String&& value) { SetCacheParameterGroupName(std::move(value)); return *this;} /** *

The name of the cache parameter group.

*/ inline CacheParameterGroupStatus& WithCacheParameterGroupName(const char* value) { SetCacheParameterGroupName(value); return *this;} /** *

The status of parameter updates.

*/ inline const Aws::String& GetParameterApplyStatus() const{ return m_parameterApplyStatus; } /** *

The status of parameter updates.

*/ inline bool ParameterApplyStatusHasBeenSet() const { return m_parameterApplyStatusHasBeenSet; } /** *

The status of parameter updates.

*/ inline void SetParameterApplyStatus(const Aws::String& value) { m_parameterApplyStatusHasBeenSet = true; m_parameterApplyStatus = value; } /** *

The status of parameter updates.

*/ inline void SetParameterApplyStatus(Aws::String&& value) { m_parameterApplyStatusHasBeenSet = true; m_parameterApplyStatus = std::move(value); } /** *

The status of parameter updates.

*/ inline void SetParameterApplyStatus(const char* value) { m_parameterApplyStatusHasBeenSet = true; m_parameterApplyStatus.assign(value); } /** *

The status of parameter updates.

*/ inline CacheParameterGroupStatus& WithParameterApplyStatus(const Aws::String& value) { SetParameterApplyStatus(value); return *this;} /** *

The status of parameter updates.

*/ inline CacheParameterGroupStatus& WithParameterApplyStatus(Aws::String&& value) { SetParameterApplyStatus(std::move(value)); return *this;} /** *

The status of parameter updates.

*/ inline CacheParameterGroupStatus& WithParameterApplyStatus(const char* value) { SetParameterApplyStatus(value); return *this;} /** *

A list of the cache node IDs which need to be rebooted for parameter changes * to be applied. A node ID is a numeric identifier (0001, 0002, etc.).

*/ inline const Aws::Vector& GetCacheNodeIdsToReboot() const{ return m_cacheNodeIdsToReboot; } /** *

A list of the cache node IDs which need to be rebooted for parameter changes * to be applied. A node ID is a numeric identifier (0001, 0002, etc.).

*/ inline bool CacheNodeIdsToRebootHasBeenSet() const { return m_cacheNodeIdsToRebootHasBeenSet; } /** *

A list of the cache node IDs which need to be rebooted for parameter changes * to be applied. A node ID is a numeric identifier (0001, 0002, etc.).

*/ inline void SetCacheNodeIdsToReboot(const Aws::Vector& value) { m_cacheNodeIdsToRebootHasBeenSet = true; m_cacheNodeIdsToReboot = value; } /** *

A list of the cache node IDs which need to be rebooted for parameter changes * to be applied. A node ID is a numeric identifier (0001, 0002, etc.).

*/ inline void SetCacheNodeIdsToReboot(Aws::Vector&& value) { m_cacheNodeIdsToRebootHasBeenSet = true; m_cacheNodeIdsToReboot = std::move(value); } /** *

A list of the cache node IDs which need to be rebooted for parameter changes * to be applied. A node ID is a numeric identifier (0001, 0002, etc.).

*/ inline CacheParameterGroupStatus& WithCacheNodeIdsToReboot(const Aws::Vector& value) { SetCacheNodeIdsToReboot(value); return *this;} /** *

A list of the cache node IDs which need to be rebooted for parameter changes * to be applied. A node ID is a numeric identifier (0001, 0002, etc.).

*/ inline CacheParameterGroupStatus& WithCacheNodeIdsToReboot(Aws::Vector&& value) { SetCacheNodeIdsToReboot(std::move(value)); return *this;} /** *

A list of the cache node IDs which need to be rebooted for parameter changes * to be applied. A node ID is a numeric identifier (0001, 0002, etc.).

*/ inline CacheParameterGroupStatus& AddCacheNodeIdsToReboot(const Aws::String& value) { m_cacheNodeIdsToRebootHasBeenSet = true; m_cacheNodeIdsToReboot.push_back(value); return *this; } /** *

A list of the cache node IDs which need to be rebooted for parameter changes * to be applied. A node ID is a numeric identifier (0001, 0002, etc.).

*/ inline CacheParameterGroupStatus& AddCacheNodeIdsToReboot(Aws::String&& value) { m_cacheNodeIdsToRebootHasBeenSet = true; m_cacheNodeIdsToReboot.push_back(std::move(value)); return *this; } /** *

A list of the cache node IDs which need to be rebooted for parameter changes * to be applied. A node ID is a numeric identifier (0001, 0002, etc.).

*/ inline CacheParameterGroupStatus& AddCacheNodeIdsToReboot(const char* value) { m_cacheNodeIdsToRebootHasBeenSet = true; m_cacheNodeIdsToReboot.push_back(value); return *this; } private: Aws::String m_cacheParameterGroupName; bool m_cacheParameterGroupNameHasBeenSet = false; Aws::String m_parameterApplyStatus; bool m_parameterApplyStatusHasBeenSet = false; Aws::Vector m_cacheNodeIdsToReboot; bool m_cacheNodeIdsToRebootHasBeenSet = false; }; } // namespace Model } // namespace ElastiCache } // namespace Aws