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

Represents the output of one of the following operations:

  • * CreateCacheSubnetGroup

  • * ModifyCacheSubnetGroup

See Also:

AWS * API Reference

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

*/ inline const Aws::String& GetCacheSubnetGroupName() const{ return m_cacheSubnetGroupName; } /** *

The name of the cache subnet group.

*/ inline bool CacheSubnetGroupNameHasBeenSet() const { return m_cacheSubnetGroupNameHasBeenSet; } /** *

The name of the cache subnet group.

*/ inline void SetCacheSubnetGroupName(const Aws::String& value) { m_cacheSubnetGroupNameHasBeenSet = true; m_cacheSubnetGroupName = value; } /** *

The name of the cache subnet group.

*/ inline void SetCacheSubnetGroupName(Aws::String&& value) { m_cacheSubnetGroupNameHasBeenSet = true; m_cacheSubnetGroupName = std::move(value); } /** *

The name of the cache subnet group.

*/ inline void SetCacheSubnetGroupName(const char* value) { m_cacheSubnetGroupNameHasBeenSet = true; m_cacheSubnetGroupName.assign(value); } /** *

The name of the cache subnet group.

*/ inline CacheSubnetGroup& WithCacheSubnetGroupName(const Aws::String& value) { SetCacheSubnetGroupName(value); return *this;} /** *

The name of the cache subnet group.

*/ inline CacheSubnetGroup& WithCacheSubnetGroupName(Aws::String&& value) { SetCacheSubnetGroupName(std::move(value)); return *this;} /** *

The name of the cache subnet group.

*/ inline CacheSubnetGroup& WithCacheSubnetGroupName(const char* value) { SetCacheSubnetGroupName(value); return *this;} /** *

The description of the cache subnet group.

*/ inline const Aws::String& GetCacheSubnetGroupDescription() const{ return m_cacheSubnetGroupDescription; } /** *

The description of the cache subnet group.

*/ inline bool CacheSubnetGroupDescriptionHasBeenSet() const { return m_cacheSubnetGroupDescriptionHasBeenSet; } /** *

The description of the cache subnet group.

*/ inline void SetCacheSubnetGroupDescription(const Aws::String& value) { m_cacheSubnetGroupDescriptionHasBeenSet = true; m_cacheSubnetGroupDescription = value; } /** *

The description of the cache subnet group.

*/ inline void SetCacheSubnetGroupDescription(Aws::String&& value) { m_cacheSubnetGroupDescriptionHasBeenSet = true; m_cacheSubnetGroupDescription = std::move(value); } /** *

The description of the cache subnet group.

*/ inline void SetCacheSubnetGroupDescription(const char* value) { m_cacheSubnetGroupDescriptionHasBeenSet = true; m_cacheSubnetGroupDescription.assign(value); } /** *

The description of the cache subnet group.

*/ inline CacheSubnetGroup& WithCacheSubnetGroupDescription(const Aws::String& value) { SetCacheSubnetGroupDescription(value); return *this;} /** *

The description of the cache subnet group.

*/ inline CacheSubnetGroup& WithCacheSubnetGroupDescription(Aws::String&& value) { SetCacheSubnetGroupDescription(std::move(value)); return *this;} /** *

The description of the cache subnet group.

*/ inline CacheSubnetGroup& WithCacheSubnetGroupDescription(const char* value) { SetCacheSubnetGroupDescription(value); return *this;} /** *

The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet * group.

*/ inline const Aws::String& GetVpcId() const{ return m_vpcId; } /** *

The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet * group.

*/ inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; } /** *

The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet * group.

*/ inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; } /** *

The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet * group.

*/ inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); } /** *

The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet * group.

*/ inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); } /** *

The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet * group.

*/ inline CacheSubnetGroup& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;} /** *

The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet * group.

*/ inline CacheSubnetGroup& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;} /** *

The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet * group.

*/ inline CacheSubnetGroup& WithVpcId(const char* value) { SetVpcId(value); return *this;} /** *

A list of subnets associated with the cache subnet group.

*/ inline const Aws::Vector& GetSubnets() const{ return m_subnets; } /** *

A list of subnets associated with the cache subnet group.

*/ inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; } /** *

A list of subnets associated with the cache subnet group.

*/ inline void SetSubnets(const Aws::Vector& value) { m_subnetsHasBeenSet = true; m_subnets = value; } /** *

A list of subnets associated with the cache subnet group.

*/ inline void SetSubnets(Aws::Vector&& value) { m_subnetsHasBeenSet = true; m_subnets = std::move(value); } /** *

A list of subnets associated with the cache subnet group.

*/ inline CacheSubnetGroup& WithSubnets(const Aws::Vector& value) { SetSubnets(value); return *this;} /** *

A list of subnets associated with the cache subnet group.

*/ inline CacheSubnetGroup& WithSubnets(Aws::Vector&& value) { SetSubnets(std::move(value)); return *this;} /** *

A list of subnets associated with the cache subnet group.

*/ inline CacheSubnetGroup& AddSubnets(const Subnet& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; } /** *

A list of subnets associated with the cache subnet group.

*/ inline CacheSubnetGroup& AddSubnets(Subnet&& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(std::move(value)); return *this; } /** *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

*/ inline CacheSubnetGroup& WithARN(const char* value) { SetARN(value); return *this;} /** *

Either ipv4 | ipv6 | dual_stack. IPv6 * is supported for workloads using Redis engine version 6.2 onward or Memcached * engine version 1.6.6 on all instances built on the Nitro system.

*/ inline const Aws::Vector& GetSupportedNetworkTypes() const{ return m_supportedNetworkTypes; } /** *

Either ipv4 | ipv6 | dual_stack. IPv6 * is supported for workloads using Redis engine version 6.2 onward or Memcached * engine version 1.6.6 on all instances built on the Nitro system.

*/ inline bool SupportedNetworkTypesHasBeenSet() const { return m_supportedNetworkTypesHasBeenSet; } /** *

Either ipv4 | ipv6 | dual_stack. IPv6 * is supported for workloads using Redis engine version 6.2 onward or Memcached * engine version 1.6.6 on all instances built on the Nitro system.

*/ inline void SetSupportedNetworkTypes(const Aws::Vector& value) { m_supportedNetworkTypesHasBeenSet = true; m_supportedNetworkTypes = value; } /** *

Either ipv4 | ipv6 | dual_stack. IPv6 * is supported for workloads using Redis engine version 6.2 onward or Memcached * engine version 1.6.6 on all instances built on the Nitro system.

*/ inline void SetSupportedNetworkTypes(Aws::Vector&& value) { m_supportedNetworkTypesHasBeenSet = true; m_supportedNetworkTypes = std::move(value); } /** *

Either ipv4 | ipv6 | dual_stack. IPv6 * is supported for workloads using Redis engine version 6.2 onward or Memcached * engine version 1.6.6 on all instances built on the Nitro system.

*/ inline CacheSubnetGroup& WithSupportedNetworkTypes(const Aws::Vector& value) { SetSupportedNetworkTypes(value); return *this;} /** *

Either ipv4 | ipv6 | dual_stack. IPv6 * is supported for workloads using Redis engine version 6.2 onward or Memcached * engine version 1.6.6 on all instances built on the Nitro system.

*/ inline CacheSubnetGroup& WithSupportedNetworkTypes(Aws::Vector&& value) { SetSupportedNetworkTypes(std::move(value)); return *this;} /** *

Either ipv4 | ipv6 | dual_stack. IPv6 * is supported for workloads using Redis engine version 6.2 onward or Memcached * engine version 1.6.6 on all instances built on the Nitro system.

*/ inline CacheSubnetGroup& AddSupportedNetworkTypes(const NetworkType& value) { m_supportedNetworkTypesHasBeenSet = true; m_supportedNetworkTypes.push_back(value); return *this; } /** *

Either ipv4 | ipv6 | dual_stack. IPv6 * is supported for workloads using Redis engine version 6.2 onward or Memcached * engine version 1.6.6 on all instances built on the Nitro system.

*/ inline CacheSubnetGroup& AddSupportedNetworkTypes(NetworkType&& value) { m_supportedNetworkTypesHasBeenSet = true; m_supportedNetworkTypes.push_back(std::move(value)); return *this; } private: Aws::String m_cacheSubnetGroupName; bool m_cacheSubnetGroupNameHasBeenSet = false; Aws::String m_cacheSubnetGroupDescription; bool m_cacheSubnetGroupDescriptionHasBeenSet = false; Aws::String m_vpcId; bool m_vpcIdHasBeenSet = false; Aws::Vector m_subnets; bool m_subnetsHasBeenSet = false; Aws::String m_aRN; bool m_aRNHasBeenSet = false; Aws::Vector m_supportedNetworkTypes; bool m_supportedNetworkTypesHasBeenSet = false; }; } // namespace Model } // namespace ElastiCache } // namespace Aws