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

Represents the input of a CreateCacheSecurityGroup * operation.

See Also:

AWS * API Reference

*/ class AWS_ELASTICACHE_API CreateCacheSecurityGroupRequest : public ElastiCacheRequest { public: CreateCacheSecurityGroupRequest(); // 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 "CreateCacheSecurityGroup"; } Aws::String SerializePayload() const override; protected: void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

A name for the cache security group. This value is stored as a lowercase * string.

Constraints: Must contain no more than 255 alphanumeric * characters. Cannot be the word "Default".

Example: * mysecuritygroup

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

A name for the cache security group. This value is stored as a lowercase * string.

Constraints: Must contain no more than 255 alphanumeric * characters. Cannot be the word "Default".

Example: * mysecuritygroup

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

A name for the cache security group. This value is stored as a lowercase * string.

Constraints: Must contain no more than 255 alphanumeric * characters. Cannot be the word "Default".

Example: * mysecuritygroup

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

A name for the cache security group. This value is stored as a lowercase * string.

Constraints: Must contain no more than 255 alphanumeric * characters. Cannot be the word "Default".

Example: * mysecuritygroup

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

A name for the cache security group. This value is stored as a lowercase * string.

Constraints: Must contain no more than 255 alphanumeric * characters. Cannot be the word "Default".

Example: * mysecuritygroup

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

A name for the cache security group. This value is stored as a lowercase * string.

Constraints: Must contain no more than 255 alphanumeric * characters. Cannot be the word "Default".

Example: * mysecuritygroup

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

A name for the cache security group. This value is stored as a lowercase * string.

Constraints: Must contain no more than 255 alphanumeric * characters. Cannot be the word "Default".

Example: * mysecuritygroup

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

A name for the cache security group. This value is stored as a lowercase * string.

Constraints: Must contain no more than 255 alphanumeric * characters. Cannot be the word "Default".

Example: * mysecuritygroup

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

A description for the cache security group.

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

A description for the cache security group.

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

A description for the cache security group.

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

A description for the cache security group.

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

A description for the cache security group.

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

A description for the cache security group.

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

A description for the cache security group.

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

A description for the cache security group.

*/ inline CreateCacheSecurityGroupRequest& WithDescription(const char* value) { SetDescription(value); return *this;} private: Aws::String m_cacheSecurityGroupName; bool m_cacheSecurityGroupNameHasBeenSet; Aws::String m_description; bool m_descriptionHasBeenSet; }; } // namespace Model } // namespace ElastiCache } // namespace Aws