AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Participants.h
1
6#pragma once
7#include <aws/workdocs/WorkDocs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/workdocs/model/UserMetadata.h>
10#include <aws/workdocs/model/GroupMetadata.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace WorkDocs
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_WORKDOCS_API Participants() = default;
37 AWS_WORKDOCS_API Participants(Aws::Utils::Json::JsonView jsonValue);
39 AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Vector<UserMetadata>& GetUsers() const { return m_users; }
47 inline bool UsersHasBeenSet() const { return m_usersHasBeenSet; }
48 template<typename UsersT = Aws::Vector<UserMetadata>>
49 void SetUsers(UsersT&& value) { m_usersHasBeenSet = true; m_users = std::forward<UsersT>(value); }
50 template<typename UsersT = Aws::Vector<UserMetadata>>
51 Participants& WithUsers(UsersT&& value) { SetUsers(std::forward<UsersT>(value)); return *this;}
52 template<typename UsersT = UserMetadata>
53 Participants& AddUsers(UsersT&& value) { m_usersHasBeenSet = true; m_users.emplace_back(std::forward<UsersT>(value)); return *this; }
55
57
60 inline const Aws::Vector<GroupMetadata>& GetGroups() const { return m_groups; }
61 inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; }
62 template<typename GroupsT = Aws::Vector<GroupMetadata>>
63 void SetGroups(GroupsT&& value) { m_groupsHasBeenSet = true; m_groups = std::forward<GroupsT>(value); }
64 template<typename GroupsT = Aws::Vector<GroupMetadata>>
65 Participants& WithGroups(GroupsT&& value) { SetGroups(std::forward<GroupsT>(value)); return *this;}
66 template<typename GroupsT = GroupMetadata>
67 Participants& AddGroups(GroupsT&& value) { m_groupsHasBeenSet = true; m_groups.emplace_back(std::forward<GroupsT>(value)); return *this; }
69 private:
70
72 bool m_usersHasBeenSet = false;
73
75 bool m_groupsHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace WorkDocs
80} // namespace Aws
void SetGroups(GroupsT &&value)
Participants & AddUsers(UsersT &&value)
Participants & WithUsers(UsersT &&value)
AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< GroupMetadata > & GetGroups() const
Participants & WithGroups(GroupsT &&value)
AWS_WORKDOCS_API Participants & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WORKDOCS_API Participants()=default
AWS_WORKDOCS_API Participants(Aws::Utils::Json::JsonView jsonValue)
Participants & AddGroups(GroupsT &&value)
const Aws::Vector< UserMetadata > & GetUsers() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue