/** * 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 Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace ElastiCache { namespace Model { /** *

The status of the user group update.

See Also:

AWS * API Reference

*/ class UserGroupsUpdateStatus { public: AWS_ELASTICACHE_API UserGroupsUpdateStatus(); AWS_ELASTICACHE_API UserGroupsUpdateStatus(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ELASTICACHE_API UserGroupsUpdateStatus& 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 ID of the user group to add.

*/ inline const Aws::Vector& GetUserGroupIdsToAdd() const{ return m_userGroupIdsToAdd; } /** *

The ID of the user group to add.

*/ inline bool UserGroupIdsToAddHasBeenSet() const { return m_userGroupIdsToAddHasBeenSet; } /** *

The ID of the user group to add.

*/ inline void SetUserGroupIdsToAdd(const Aws::Vector& value) { m_userGroupIdsToAddHasBeenSet = true; m_userGroupIdsToAdd = value; } /** *

The ID of the user group to add.

*/ inline void SetUserGroupIdsToAdd(Aws::Vector&& value) { m_userGroupIdsToAddHasBeenSet = true; m_userGroupIdsToAdd = std::move(value); } /** *

The ID of the user group to add.

*/ inline UserGroupsUpdateStatus& WithUserGroupIdsToAdd(const Aws::Vector& value) { SetUserGroupIdsToAdd(value); return *this;} /** *

The ID of the user group to add.

*/ inline UserGroupsUpdateStatus& WithUserGroupIdsToAdd(Aws::Vector&& value) { SetUserGroupIdsToAdd(std::move(value)); return *this;} /** *

The ID of the user group to add.

*/ inline UserGroupsUpdateStatus& AddUserGroupIdsToAdd(const Aws::String& value) { m_userGroupIdsToAddHasBeenSet = true; m_userGroupIdsToAdd.push_back(value); return *this; } /** *

The ID of the user group to add.

*/ inline UserGroupsUpdateStatus& AddUserGroupIdsToAdd(Aws::String&& value) { m_userGroupIdsToAddHasBeenSet = true; m_userGroupIdsToAdd.push_back(std::move(value)); return *this; } /** *

The ID of the user group to add.

*/ inline UserGroupsUpdateStatus& AddUserGroupIdsToAdd(const char* value) { m_userGroupIdsToAddHasBeenSet = true; m_userGroupIdsToAdd.push_back(value); return *this; } /** *

The ID of the user group to remove.

*/ inline const Aws::Vector& GetUserGroupIdsToRemove() const{ return m_userGroupIdsToRemove; } /** *

The ID of the user group to remove.

*/ inline bool UserGroupIdsToRemoveHasBeenSet() const { return m_userGroupIdsToRemoveHasBeenSet; } /** *

The ID of the user group to remove.

*/ inline void SetUserGroupIdsToRemove(const Aws::Vector& value) { m_userGroupIdsToRemoveHasBeenSet = true; m_userGroupIdsToRemove = value; } /** *

The ID of the user group to remove.

*/ inline void SetUserGroupIdsToRemove(Aws::Vector&& value) { m_userGroupIdsToRemoveHasBeenSet = true; m_userGroupIdsToRemove = std::move(value); } /** *

The ID of the user group to remove.

*/ inline UserGroupsUpdateStatus& WithUserGroupIdsToRemove(const Aws::Vector& value) { SetUserGroupIdsToRemove(value); return *this;} /** *

The ID of the user group to remove.

*/ inline UserGroupsUpdateStatus& WithUserGroupIdsToRemove(Aws::Vector&& value) { SetUserGroupIdsToRemove(std::move(value)); return *this;} /** *

The ID of the user group to remove.

*/ inline UserGroupsUpdateStatus& AddUserGroupIdsToRemove(const Aws::String& value) { m_userGroupIdsToRemoveHasBeenSet = true; m_userGroupIdsToRemove.push_back(value); return *this; } /** *

The ID of the user group to remove.

*/ inline UserGroupsUpdateStatus& AddUserGroupIdsToRemove(Aws::String&& value) { m_userGroupIdsToRemoveHasBeenSet = true; m_userGroupIdsToRemove.push_back(std::move(value)); return *this; } /** *

The ID of the user group to remove.

*/ inline UserGroupsUpdateStatus& AddUserGroupIdsToRemove(const char* value) { m_userGroupIdsToRemoveHasBeenSet = true; m_userGroupIdsToRemove.push_back(value); return *this; } private: Aws::Vector m_userGroupIdsToAdd; bool m_userGroupIdsToAddHasBeenSet = false; Aws::Vector m_userGroupIdsToRemove; bool m_userGroupIdsToRemoveHasBeenSet = false; }; } // namespace Model } // namespace ElastiCache } // namespace Aws