/** * 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 { /** *

Represents the output of a CreateCacheParameterGroup * operation.

See Also:

AWS * API Reference

*/ class CacheParameterGroup { public: AWS_ELASTICACHE_API CacheParameterGroup(); AWS_ELASTICACHE_API CacheParameterGroup(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ELASTICACHE_API CacheParameterGroup& 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 CacheParameterGroup& WithCacheParameterGroupName(const Aws::String& value) { SetCacheParameterGroupName(value); return *this;} /** *

The name of the cache parameter group.

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

The name of the cache parameter group.

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

The name of the cache parameter group family that this cache parameter group * is compatible with.

Valid values are: memcached1.4 | * memcached1.5 | memcached1.6 | redis2.6 | * redis2.8 | redis3.2 | redis4.0 | * redis5.0 | redis6.x | redis7

*/ inline const Aws::String& GetCacheParameterGroupFamily() const{ return m_cacheParameterGroupFamily; } /** *

The name of the cache parameter group family that this cache parameter group * is compatible with.

Valid values are: memcached1.4 | * memcached1.5 | memcached1.6 | redis2.6 | * redis2.8 | redis3.2 | redis4.0 | * redis5.0 | redis6.x | redis7

*/ inline bool CacheParameterGroupFamilyHasBeenSet() const { return m_cacheParameterGroupFamilyHasBeenSet; } /** *

The name of the cache parameter group family that this cache parameter group * is compatible with.

Valid values are: memcached1.4 | * memcached1.5 | memcached1.6 | redis2.6 | * redis2.8 | redis3.2 | redis4.0 | * redis5.0 | redis6.x | redis7

*/ inline void SetCacheParameterGroupFamily(const Aws::String& value) { m_cacheParameterGroupFamilyHasBeenSet = true; m_cacheParameterGroupFamily = value; } /** *

The name of the cache parameter group family that this cache parameter group * is compatible with.

Valid values are: memcached1.4 | * memcached1.5 | memcached1.6 | redis2.6 | * redis2.8 | redis3.2 | redis4.0 | * redis5.0 | redis6.x | redis7

*/ inline void SetCacheParameterGroupFamily(Aws::String&& value) { m_cacheParameterGroupFamilyHasBeenSet = true; m_cacheParameterGroupFamily = std::move(value); } /** *

The name of the cache parameter group family that this cache parameter group * is compatible with.

Valid values are: memcached1.4 | * memcached1.5 | memcached1.6 | redis2.6 | * redis2.8 | redis3.2 | redis4.0 | * redis5.0 | redis6.x | redis7

*/ inline void SetCacheParameterGroupFamily(const char* value) { m_cacheParameterGroupFamilyHasBeenSet = true; m_cacheParameterGroupFamily.assign(value); } /** *

The name of the cache parameter group family that this cache parameter group * is compatible with.

Valid values are: memcached1.4 | * memcached1.5 | memcached1.6 | redis2.6 | * redis2.8 | redis3.2 | redis4.0 | * redis5.0 | redis6.x | redis7

*/ inline CacheParameterGroup& WithCacheParameterGroupFamily(const Aws::String& value) { SetCacheParameterGroupFamily(value); return *this;} /** *

The name of the cache parameter group family that this cache parameter group * is compatible with.

Valid values are: memcached1.4 | * memcached1.5 | memcached1.6 | redis2.6 | * redis2.8 | redis3.2 | redis4.0 | * redis5.0 | redis6.x | redis7

*/ inline CacheParameterGroup& WithCacheParameterGroupFamily(Aws::String&& value) { SetCacheParameterGroupFamily(std::move(value)); return *this;} /** *

The name of the cache parameter group family that this cache parameter group * is compatible with.

Valid values are: memcached1.4 | * memcached1.5 | memcached1.6 | redis2.6 | * redis2.8 | redis3.2 | redis4.0 | * redis5.0 | redis6.x | redis7

*/ inline CacheParameterGroup& WithCacheParameterGroupFamily(const char* value) { SetCacheParameterGroupFamily(value); return *this;} /** *

The description for this cache parameter group.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description for this cache parameter group.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description for this cache parameter group.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description for this cache parameter group.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description for this cache parameter group.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description for this cache parameter group.

*/ inline CacheParameterGroup& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description for this cache parameter group.

*/ inline CacheParameterGroup& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description for this cache parameter group.

*/ inline CacheParameterGroup& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

Indicates whether the parameter group is associated with a Global * datastore

*/ inline bool GetIsGlobal() const{ return m_isGlobal; } /** *

Indicates whether the parameter group is associated with a Global * datastore

*/ inline bool IsGlobalHasBeenSet() const { return m_isGlobalHasBeenSet; } /** *

Indicates whether the parameter group is associated with a Global * datastore

*/ inline void SetIsGlobal(bool value) { m_isGlobalHasBeenSet = true; m_isGlobal = value; } /** *

Indicates whether the parameter group is associated with a Global * datastore

*/ inline CacheParameterGroup& WithIsGlobal(bool value) { SetIsGlobal(value); return *this;} /** *

The ARN (Amazon Resource Name) of the cache parameter group.

*/ inline const Aws::String& GetARN() const{ return m_aRN; } /** *

The ARN (Amazon Resource Name) of the cache parameter group.

*/ inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; } /** *

The ARN (Amazon Resource Name) of the cache parameter group.

*/ inline void SetARN(const Aws::String& value) { m_aRNHasBeenSet = true; m_aRN = value; } /** *

The ARN (Amazon Resource Name) of the cache parameter group.

*/ inline void SetARN(Aws::String&& value) { m_aRNHasBeenSet = true; m_aRN = std::move(value); } /** *

The ARN (Amazon Resource Name) of the cache parameter group.

*/ inline void SetARN(const char* value) { m_aRNHasBeenSet = true; m_aRN.assign(value); } /** *

The ARN (Amazon Resource Name) of the cache parameter group.

*/ inline CacheParameterGroup& WithARN(const Aws::String& value) { SetARN(value); return *this;} /** *

The ARN (Amazon Resource Name) of the cache parameter group.

*/ inline CacheParameterGroup& WithARN(Aws::String&& value) { SetARN(std::move(value)); return *this;} /** *

The ARN (Amazon Resource Name) of the cache parameter group.

*/ inline CacheParameterGroup& WithARN(const char* value) { SetARN(value); return *this;} private: Aws::String m_cacheParameterGroupName; bool m_cacheParameterGroupNameHasBeenSet = false; Aws::String m_cacheParameterGroupFamily; bool m_cacheParameterGroupFamilyHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; bool m_isGlobal; bool m_isGlobalHasBeenSet = false; Aws::String m_aRN; bool m_aRNHasBeenSet = false; }; } // namespace Model } // namespace ElastiCache } // namespace Aws