AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
Participants.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/workdocs/WorkDocs_EXPORTS.h>
9#include <aws/workdocs/model/GroupMetadata.h>
10#include <aws/workdocs/model/UserMetadata.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace WorkDocs {
22namespace Model {
23
30 public:
31 AWS_WORKDOCS_API Participants() = default;
32 AWS_WORKDOCS_API Participants(Aws::Utils::Json::JsonView jsonValue);
34 AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<UserMetadata>& GetUsers() const { return m_users; }
41 inline bool UsersHasBeenSet() const { return m_usersHasBeenSet; }
42 template <typename UsersT = Aws::Vector<UserMetadata>>
43 void SetUsers(UsersT&& value) {
44 m_usersHasBeenSet = true;
45 m_users = std::forward<UsersT>(value);
46 }
47 template <typename UsersT = Aws::Vector<UserMetadata>>
48 Participants& WithUsers(UsersT&& value) {
49 SetUsers(std::forward<UsersT>(value));
50 return *this;
51 }
52 template <typename UsersT = UserMetadata>
53 Participants& AddUsers(UsersT&& value) {
54 m_usersHasBeenSet = true;
55 m_users.emplace_back(std::forward<UsersT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::Vector<GroupMetadata>& GetGroups() const { return m_groups; }
65 inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; }
66 template <typename GroupsT = Aws::Vector<GroupMetadata>>
67 void SetGroups(GroupsT&& value) {
68 m_groupsHasBeenSet = true;
69 m_groups = std::forward<GroupsT>(value);
70 }
71 template <typename GroupsT = Aws::Vector<GroupMetadata>>
72 Participants& WithGroups(GroupsT&& value) {
73 SetGroups(std::forward<GroupsT>(value));
74 return *this;
75 }
76 template <typename GroupsT = GroupMetadata>
77 Participants& AddGroups(GroupsT&& value) {
78 m_groupsHasBeenSet = true;
79 m_groups.emplace_back(std::forward<GroupsT>(value));
80 return *this;
81 }
83 private:
85
87 bool m_usersHasBeenSet = false;
88 bool m_groupsHasBeenSet = false;
89};
90
91} // namespace Model
92} // namespace WorkDocs
93} // 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