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

Represents the input of a CreateCacheSecurityGroup * operation.

See Also:

AWS * API Reference

*/ class CreateCacheSecurityGroupRequest : public ElastiCacheRequest { public: AWS_ELASTICACHE_API 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_ELASTICACHE_API Aws::String SerializePayload() const override; protected: AWS_ELASTICACHE_API 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;} /** *

A list of tags to be added to this resource. A tag is a key-value pair. A tag * key must be accompanied by a tag value, although null is accepted.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

A list of tags to be added to this resource. A tag is a key-value pair. A tag * key must be accompanied by a tag value, although null is accepted.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A list of tags to be added to this resource. A tag is a key-value pair. A tag * key must be accompanied by a tag value, although null is accepted.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A list of tags to be added to this resource. A tag is a key-value pair. A tag * key must be accompanied by a tag value, although null is accepted.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A list of tags to be added to this resource. A tag is a key-value pair. A tag * key must be accompanied by a tag value, although null is accepted.

*/ inline CreateCacheSecurityGroupRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

A list of tags to be added to this resource. A tag is a key-value pair. A tag * key must be accompanied by a tag value, although null is accepted.

*/ inline CreateCacheSecurityGroupRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

A list of tags to be added to this resource. A tag is a key-value pair. A tag * key must be accompanied by a tag value, although null is accepted.

*/ inline CreateCacheSecurityGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

A list of tags to be added to this resource. A tag is a key-value pair. A tag * key must be accompanied by a tag value, although null is accepted.

*/ inline CreateCacheSecurityGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_cacheSecurityGroupName; bool m_cacheSecurityGroupNameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace ElastiCache } // namespace Aws