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

The ID of the user group.

*/ inline const Aws::String& GetUserGroupId() const{ return m_userGroupId; } /** *

The ID of the user group.

*/ inline bool UserGroupIdHasBeenSet() const { return m_userGroupIdHasBeenSet; } /** *

The ID of the user group.

*/ inline void SetUserGroupId(const Aws::String& value) { m_userGroupIdHasBeenSet = true; m_userGroupId = value; } /** *

The ID of the user group.

*/ inline void SetUserGroupId(Aws::String&& value) { m_userGroupIdHasBeenSet = true; m_userGroupId = std::move(value); } /** *

The ID of the user group.

*/ inline void SetUserGroupId(const char* value) { m_userGroupIdHasBeenSet = true; m_userGroupId.assign(value); } /** *

The ID of the user group.

*/ inline CreateUserGroupRequest& WithUserGroupId(const Aws::String& value) { SetUserGroupId(value); return *this;} /** *

The ID of the user group.

*/ inline CreateUserGroupRequest& WithUserGroupId(Aws::String&& value) { SetUserGroupId(std::move(value)); return *this;} /** *

The ID of the user group.

*/ inline CreateUserGroupRequest& WithUserGroupId(const char* value) { SetUserGroupId(value); return *this;} /** *

The current supported value is Redis.

*/ inline const Aws::String& GetEngine() const{ return m_engine; } /** *

The current supported value is Redis.

*/ inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; } /** *

The current supported value is Redis.

*/ inline void SetEngine(const Aws::String& value) { m_engineHasBeenSet = true; m_engine = value; } /** *

The current supported value is Redis.

*/ inline void SetEngine(Aws::String&& value) { m_engineHasBeenSet = true; m_engine = std::move(value); } /** *

The current supported value is Redis.

*/ inline void SetEngine(const char* value) { m_engineHasBeenSet = true; m_engine.assign(value); } /** *

The current supported value is Redis.

*/ inline CreateUserGroupRequest& WithEngine(const Aws::String& value) { SetEngine(value); return *this;} /** *

The current supported value is Redis.

*/ inline CreateUserGroupRequest& WithEngine(Aws::String&& value) { SetEngine(std::move(value)); return *this;} /** *

The current supported value is Redis.

*/ inline CreateUserGroupRequest& WithEngine(const char* value) { SetEngine(value); return *this;} /** *

The list of user IDs that belong to the user group.

*/ inline const Aws::Vector& GetUserIds() const{ return m_userIds; } /** *

The list of user IDs that belong to the user group.

*/ inline bool UserIdsHasBeenSet() const { return m_userIdsHasBeenSet; } /** *

The list of user IDs that belong to the user group.

*/ inline void SetUserIds(const Aws::Vector& value) { m_userIdsHasBeenSet = true; m_userIds = value; } /** *

The list of user IDs that belong to the user group.

*/ inline void SetUserIds(Aws::Vector&& value) { m_userIdsHasBeenSet = true; m_userIds = std::move(value); } /** *

The list of user IDs that belong to the user group.

*/ inline CreateUserGroupRequest& WithUserIds(const Aws::Vector& value) { SetUserIds(value); return *this;} /** *

The list of user IDs that belong to the user group.

*/ inline CreateUserGroupRequest& WithUserIds(Aws::Vector&& value) { SetUserIds(std::move(value)); return *this;} /** *

The list of user IDs that belong to the user group.

*/ inline CreateUserGroupRequest& AddUserIds(const Aws::String& value) { m_userIdsHasBeenSet = true; m_userIds.push_back(value); return *this; } /** *

The list of user IDs that belong to the user group.

*/ inline CreateUserGroupRequest& AddUserIds(Aws::String&& value) { m_userIdsHasBeenSet = true; m_userIds.push_back(std::move(value)); return *this; } /** *

The list of user IDs that belong to the user group.

*/ inline CreateUserGroupRequest& AddUserIds(const char* value) { m_userIdsHasBeenSet = true; m_userIds.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 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 CreateUserGroupRequest& 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 CreateUserGroupRequest& 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 CreateUserGroupRequest& 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 CreateUserGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_userGroupId; bool m_userGroupIdHasBeenSet = false; Aws::String m_engine; bool m_engineHasBeenSet = false; Aws::Vector m_userIds; bool m_userIdsHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace ElastiCache } // namespace Aws