/** * 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 Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace WorkDocs { namespace Model { /** *

Describes the users or user groups.

See Also:

AWS * API Reference

*/ class Participants { public: AWS_WORKDOCS_API Participants(); AWS_WORKDOCS_API Participants(Aws::Utils::Json::JsonView jsonValue); AWS_WORKDOCS_API Participants& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The list of users.

*/ inline const Aws::Vector& GetUsers() const{ return m_users; } /** *

The list of users.

*/ inline bool UsersHasBeenSet() const { return m_usersHasBeenSet; } /** *

The list of users.

*/ inline void SetUsers(const Aws::Vector& value) { m_usersHasBeenSet = true; m_users = value; } /** *

The list of users.

*/ inline void SetUsers(Aws::Vector&& value) { m_usersHasBeenSet = true; m_users = std::move(value); } /** *

The list of users.

*/ inline Participants& WithUsers(const Aws::Vector& value) { SetUsers(value); return *this;} /** *

The list of users.

*/ inline Participants& WithUsers(Aws::Vector&& value) { SetUsers(std::move(value)); return *this;} /** *

The list of users.

*/ inline Participants& AddUsers(const UserMetadata& value) { m_usersHasBeenSet = true; m_users.push_back(value); return *this; } /** *

The list of users.

*/ inline Participants& AddUsers(UserMetadata&& value) { m_usersHasBeenSet = true; m_users.push_back(std::move(value)); return *this; } /** *

The list of user groups.

*/ inline const Aws::Vector& GetGroups() const{ return m_groups; } /** *

The list of user groups.

*/ inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; } /** *

The list of user groups.

*/ inline void SetGroups(const Aws::Vector& value) { m_groupsHasBeenSet = true; m_groups = value; } /** *

The list of user groups.

*/ inline void SetGroups(Aws::Vector&& value) { m_groupsHasBeenSet = true; m_groups = std::move(value); } /** *

The list of user groups.

*/ inline Participants& WithGroups(const Aws::Vector& value) { SetGroups(value); return *this;} /** *

The list of user groups.

*/ inline Participants& WithGroups(Aws::Vector&& value) { SetGroups(std::move(value)); return *this;} /** *

The list of user groups.

*/ inline Participants& AddGroups(const GroupMetadata& value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; } /** *

The list of user groups.

*/ inline Participants& AddGroups(GroupMetadata&& value) { m_groupsHasBeenSet = true; m_groups.push_back(std::move(value)); return *this; } private: Aws::Vector m_users; bool m_usersHasBeenSet = false; Aws::Vector m_groups; bool m_groupsHasBeenSet = false; }; } // namespace Model } // namespace WorkDocs } // namespace Aws