/** * 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 a cluster's status within a particular cache security * group.

See Also:

AWS * API Reference

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

*/ inline const Aws::String& GetCacheSecurityGroupName() const{ return m_cacheSecurityGroupName; } /** *

The name of the cache security group.

*/ inline bool CacheSecurityGroupNameHasBeenSet() const { return m_cacheSecurityGroupNameHasBeenSet; } /** *

The name of the cache security group.

*/ inline void SetCacheSecurityGroupName(const Aws::String& value) { m_cacheSecurityGroupNameHasBeenSet = true; m_cacheSecurityGroupName = value; } /** *

The name of the cache security group.

*/ inline void SetCacheSecurityGroupName(Aws::String&& value) { m_cacheSecurityGroupNameHasBeenSet = true; m_cacheSecurityGroupName = std::move(value); } /** *

The name of the cache security group.

*/ inline void SetCacheSecurityGroupName(const char* value) { m_cacheSecurityGroupNameHasBeenSet = true; m_cacheSecurityGroupName.assign(value); } /** *

The name of the cache security group.

*/ inline CacheSecurityGroupMembership& WithCacheSecurityGroupName(const Aws::String& value) { SetCacheSecurityGroupName(value); return *this;} /** *

The name of the cache security group.

*/ inline CacheSecurityGroupMembership& WithCacheSecurityGroupName(Aws::String&& value) { SetCacheSecurityGroupName(std::move(value)); return *this;} /** *

The name of the cache security group.

*/ inline CacheSecurityGroupMembership& WithCacheSecurityGroupName(const char* value) { SetCacheSecurityGroupName(value); return *this;} /** *

The membership status in the cache security group. The status changes when a * cache security group is modified, or when the cache security groups assigned to * a cluster are modified.

*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *

The membership status in the cache security group. The status changes when a * cache security group is modified, or when the cache security groups assigned to * a cluster are modified.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The membership status in the cache security group. The status changes when a * cache security group is modified, or when the cache security groups assigned to * a cluster are modified.

*/ inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The membership status in the cache security group. The status changes when a * cache security group is modified, or when the cache security groups assigned to * a cluster are modified.

*/ inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The membership status in the cache security group. The status changes when a * cache security group is modified, or when the cache security groups assigned to * a cluster are modified.

*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *

The membership status in the cache security group. The status changes when a * cache security group is modified, or when the cache security groups assigned to * a cluster are modified.

*/ inline CacheSecurityGroupMembership& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *

The membership status in the cache security group. The status changes when a * cache security group is modified, or when the cache security groups assigned to * a cluster are modified.

*/ inline CacheSecurityGroupMembership& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *

The membership status in the cache security group. The status changes when a * cache security group is modified, or when the cache security groups assigned to * a cluster are modified.

*/ inline CacheSecurityGroupMembership& WithStatus(const char* value) { SetStatus(value); return *this;} private: Aws::String m_cacheSecurityGroupName; bool m_cacheSecurityGroupNameHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace ElastiCache } // namespace Aws