This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-elasticache/include/aws/elasticache/model/CacheParameterGroup.h

276 lines
11 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/elasticache/ElastiCache_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Xml
{
class XmlNode;
} // namespace Xml
} // namespace Utils
namespace ElastiCache
{
namespace Model
{
/**
* <p>Represents the output of a <code>CreateCacheParameterGroup</code>
* operation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CacheParameterGroup">AWS
* API Reference</a></p>
*/
class AWS_ELASTICACHE_API CacheParameterGroup
{
public:
CacheParameterGroup();
CacheParameterGroup(const Aws::Utils::Xml::XmlNode& xmlNode);
CacheParameterGroup& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
void OutputToStream(Aws::OStream& oStream, const char* location) const;
/**
* <p>The name of the cache parameter group.</p>
*/
inline const Aws::String& GetCacheParameterGroupName() const{ return m_cacheParameterGroupName; }
/**
* <p>The name of the cache parameter group.</p>
*/
inline bool CacheParameterGroupNameHasBeenSet() const { return m_cacheParameterGroupNameHasBeenSet; }
/**
* <p>The name of the cache parameter group.</p>
*/
inline void SetCacheParameterGroupName(const Aws::String& value) { m_cacheParameterGroupNameHasBeenSet = true; m_cacheParameterGroupName = value; }
/**
* <p>The name of the cache parameter group.</p>
*/
inline void SetCacheParameterGroupName(Aws::String&& value) { m_cacheParameterGroupNameHasBeenSet = true; m_cacheParameterGroupName = std::move(value); }
/**
* <p>The name of the cache parameter group.</p>
*/
inline void SetCacheParameterGroupName(const char* value) { m_cacheParameterGroupNameHasBeenSet = true; m_cacheParameterGroupName.assign(value); }
/**
* <p>The name of the cache parameter group.</p>
*/
inline CacheParameterGroup& WithCacheParameterGroupName(const Aws::String& value) { SetCacheParameterGroupName(value); return *this;}
/**
* <p>The name of the cache parameter group.</p>
*/
inline CacheParameterGroup& WithCacheParameterGroupName(Aws::String&& value) { SetCacheParameterGroupName(std::move(value)); return *this;}
/**
* <p>The name of the cache parameter group.</p>
*/
inline CacheParameterGroup& WithCacheParameterGroupName(const char* value) { SetCacheParameterGroupName(value); return *this;}
/**
* <p>The name of the cache parameter group family that this cache parameter group
* is compatible with.</p> <p>Valid values are: <code>memcached1.4</code> |
* <code>memcached1.5</code> | <code>redis2.6</code> | <code>redis2.8</code> |
* <code>redis3.2</code> | <code>redis4.0</code> | <code>redis5.0</code> | </p>
*/
inline const Aws::String& GetCacheParameterGroupFamily() const{ return m_cacheParameterGroupFamily; }
/**
* <p>The name of the cache parameter group family that this cache parameter group
* is compatible with.</p> <p>Valid values are: <code>memcached1.4</code> |
* <code>memcached1.5</code> | <code>redis2.6</code> | <code>redis2.8</code> |
* <code>redis3.2</code> | <code>redis4.0</code> | <code>redis5.0</code> | </p>
*/
inline bool CacheParameterGroupFamilyHasBeenSet() const { return m_cacheParameterGroupFamilyHasBeenSet; }
/**
* <p>The name of the cache parameter group family that this cache parameter group
* is compatible with.</p> <p>Valid values are: <code>memcached1.4</code> |
* <code>memcached1.5</code> | <code>redis2.6</code> | <code>redis2.8</code> |
* <code>redis3.2</code> | <code>redis4.0</code> | <code>redis5.0</code> | </p>
*/
inline void SetCacheParameterGroupFamily(const Aws::String& value) { m_cacheParameterGroupFamilyHasBeenSet = true; m_cacheParameterGroupFamily = value; }
/**
* <p>The name of the cache parameter group family that this cache parameter group
* is compatible with.</p> <p>Valid values are: <code>memcached1.4</code> |
* <code>memcached1.5</code> | <code>redis2.6</code> | <code>redis2.8</code> |
* <code>redis3.2</code> | <code>redis4.0</code> | <code>redis5.0</code> | </p>
*/
inline void SetCacheParameterGroupFamily(Aws::String&& value) { m_cacheParameterGroupFamilyHasBeenSet = true; m_cacheParameterGroupFamily = std::move(value); }
/**
* <p>The name of the cache parameter group family that this cache parameter group
* is compatible with.</p> <p>Valid values are: <code>memcached1.4</code> |
* <code>memcached1.5</code> | <code>redis2.6</code> | <code>redis2.8</code> |
* <code>redis3.2</code> | <code>redis4.0</code> | <code>redis5.0</code> | </p>
*/
inline void SetCacheParameterGroupFamily(const char* value) { m_cacheParameterGroupFamilyHasBeenSet = true; m_cacheParameterGroupFamily.assign(value); }
/**
* <p>The name of the cache parameter group family that this cache parameter group
* is compatible with.</p> <p>Valid values are: <code>memcached1.4</code> |
* <code>memcached1.5</code> | <code>redis2.6</code> | <code>redis2.8</code> |
* <code>redis3.2</code> | <code>redis4.0</code> | <code>redis5.0</code> | </p>
*/
inline CacheParameterGroup& WithCacheParameterGroupFamily(const Aws::String& value) { SetCacheParameterGroupFamily(value); return *this;}
/**
* <p>The name of the cache parameter group family that this cache parameter group
* is compatible with.</p> <p>Valid values are: <code>memcached1.4</code> |
* <code>memcached1.5</code> | <code>redis2.6</code> | <code>redis2.8</code> |
* <code>redis3.2</code> | <code>redis4.0</code> | <code>redis5.0</code> | </p>
*/
inline CacheParameterGroup& WithCacheParameterGroupFamily(Aws::String&& value) { SetCacheParameterGroupFamily(std::move(value)); return *this;}
/**
* <p>The name of the cache parameter group family that this cache parameter group
* is compatible with.</p> <p>Valid values are: <code>memcached1.4</code> |
* <code>memcached1.5</code> | <code>redis2.6</code> | <code>redis2.8</code> |
* <code>redis3.2</code> | <code>redis4.0</code> | <code>redis5.0</code> | </p>
*/
inline CacheParameterGroup& WithCacheParameterGroupFamily(const char* value) { SetCacheParameterGroupFamily(value); return *this;}
/**
* <p>The description for this cache parameter group.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>The description for this cache parameter group.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>The description for this cache parameter group.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>The description for this cache parameter group.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>The description for this cache parameter group.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>The description for this cache parameter group.</p>
*/
inline CacheParameterGroup& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>The description for this cache parameter group.</p>
*/
inline CacheParameterGroup& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>The description for this cache parameter group.</p>
*/
inline CacheParameterGroup& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>Indicates whether the parameter group is associated with a Global
* Datastore</p>
*/
inline bool GetIsGlobal() const{ return m_isGlobal; }
/**
* <p>Indicates whether the parameter group is associated with a Global
* Datastore</p>
*/
inline bool IsGlobalHasBeenSet() const { return m_isGlobalHasBeenSet; }
/**
* <p>Indicates whether the parameter group is associated with a Global
* Datastore</p>
*/
inline void SetIsGlobal(bool value) { m_isGlobalHasBeenSet = true; m_isGlobal = value; }
/**
* <p>Indicates whether the parameter group is associated with a Global
* Datastore</p>
*/
inline CacheParameterGroup& WithIsGlobal(bool value) { SetIsGlobal(value); return *this;}
/**
* <p>The ARN (Amazon Resource Name) of the cache parameter group.</p>
*/
inline const Aws::String& GetARN() const{ return m_aRN; }
/**
* <p>The ARN (Amazon Resource Name) of the cache parameter group.</p>
*/
inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
/**
* <p>The ARN (Amazon Resource Name) of the cache parameter group.</p>
*/
inline void SetARN(const Aws::String& value) { m_aRNHasBeenSet = true; m_aRN = value; }
/**
* <p>The ARN (Amazon Resource Name) of the cache parameter group.</p>
*/
inline void SetARN(Aws::String&& value) { m_aRNHasBeenSet = true; m_aRN = std::move(value); }
/**
* <p>The ARN (Amazon Resource Name) of the cache parameter group.</p>
*/
inline void SetARN(const char* value) { m_aRNHasBeenSet = true; m_aRN.assign(value); }
/**
* <p>The ARN (Amazon Resource Name) of the cache parameter group.</p>
*/
inline CacheParameterGroup& WithARN(const Aws::String& value) { SetARN(value); return *this;}
/**
* <p>The ARN (Amazon Resource Name) of the cache parameter group.</p>
*/
inline CacheParameterGroup& WithARN(Aws::String&& value) { SetARN(std::move(value)); return *this;}
/**
* <p>The ARN (Amazon Resource Name) of the cache parameter group.</p>
*/
inline CacheParameterGroup& WithARN(const char* value) { SetARN(value); return *this;}
private:
Aws::String m_cacheParameterGroupName;
bool m_cacheParameterGroupNameHasBeenSet;
Aws::String m_cacheParameterGroupFamily;
bool m_cacheParameterGroupFamilyHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
bool m_isGlobal;
bool m_isGlobalHasBeenSet;
Aws::String m_aRN;
bool m_aRNHasBeenSet;
};
} // namespace Model
} // namespace ElastiCache
} // namespace Aws