/** * 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 ElastiCache { namespace Model { /** *

Represents the input of a ModifyCacheSubnetGroup * operation.

See Also:

AWS * API Reference

*/ class ModifyCacheSubnetGroupRequest : public ElastiCacheRequest { public: AWS_ELASTICACHE_API ModifyCacheSubnetGroupRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "ModifyCacheSubnetGroup"; } AWS_ELASTICACHE_API Aws::String SerializePayload() const override; protected: AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The name for the cache subnet group. This value is stored as a lowercase * string.

Constraints: Must contain no more than 255 alphanumeric * characters or hyphens.

Example: mysubnetgroup

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

The name for the cache subnet group. This value is stored as a lowercase * string.

Constraints: Must contain no more than 255 alphanumeric * characters or hyphens.

Example: mysubnetgroup

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

The name for the cache subnet group. This value is stored as a lowercase * string.

Constraints: Must contain no more than 255 alphanumeric * characters or hyphens.

Example: mysubnetgroup

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

The name for the cache subnet group. This value is stored as a lowercase * string.

Constraints: Must contain no more than 255 alphanumeric * characters or hyphens.

Example: mysubnetgroup

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

The name for the cache subnet group. This value is stored as a lowercase * string.

Constraints: Must contain no more than 255 alphanumeric * characters or hyphens.

Example: mysubnetgroup

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

The name for the cache subnet group. This value is stored as a lowercase * string.

Constraints: Must contain no more than 255 alphanumeric * characters or hyphens.

Example: mysubnetgroup

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

The name for the cache subnet group. This value is stored as a lowercase * string.

Constraints: Must contain no more than 255 alphanumeric * characters or hyphens.

Example: mysubnetgroup

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

The name for the cache subnet group. This value is stored as a lowercase * string.

Constraints: Must contain no more than 255 alphanumeric * characters or hyphens.

Example: mysubnetgroup

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

A description of the cache subnet group.

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

A description of the cache subnet group.

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

A description of the cache subnet group.

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

A description of the cache subnet group.

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

A description of the cache subnet group.

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

A description of the cache subnet group.

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

A description of the cache subnet group.

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

A description of the cache subnet group.

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

The EC2 subnet IDs for the cache subnet group.

*/ inline const Aws::Vector& GetSubnetIds() const{ return m_subnetIds; } /** *

The EC2 subnet IDs for the cache subnet group.

*/ inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; } /** *

The EC2 subnet IDs for the cache subnet group.

*/ inline void SetSubnetIds(const Aws::Vector& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; } /** *

The EC2 subnet IDs for the cache subnet group.

*/ inline void SetSubnetIds(Aws::Vector&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); } /** *

The EC2 subnet IDs for the cache subnet group.

*/ inline ModifyCacheSubnetGroupRequest& WithSubnetIds(const Aws::Vector& value) { SetSubnetIds(value); return *this;} /** *

The EC2 subnet IDs for the cache subnet group.

*/ inline ModifyCacheSubnetGroupRequest& WithSubnetIds(Aws::Vector&& value) { SetSubnetIds(std::move(value)); return *this;} /** *

The EC2 subnet IDs for the cache subnet group.

*/ inline ModifyCacheSubnetGroupRequest& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; } /** *

The EC2 subnet IDs for the cache subnet group.

*/ inline ModifyCacheSubnetGroupRequest& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; } /** *

The EC2 subnet IDs for the cache subnet group.

*/ inline ModifyCacheSubnetGroupRequest& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; } private: Aws::String m_cacheSubnetGroupName; bool m_cacheSubnetGroupNameHasBeenSet = false; Aws::String m_cacheSubnetGroupDescription; bool m_cacheSubnetGroupDescriptionHasBeenSet = false; Aws::Vector m_subnetIds; bool m_subnetIdsHasBeenSet = false; }; } // namespace Model } // namespace ElastiCache } // namespace Aws