AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetUsers(const Aws::Vector<UserMetadata>& value) { m_usersHasBeenSet = true; m_users = value; }
49 inline void SetUsers(Aws::Vector<UserMetadata>&& value) { m_usersHasBeenSet = true; m_users = std::move(value); }
50 inline Participants& WithUsers(const Aws::Vector<UserMetadata>& value) { SetUsers(value); return *this;}
51 inline Participants& WithUsers(Aws::Vector<UserMetadata>&& value) { SetUsers(std::move(value)); return *this;}
52 inline Participants& AddUsers(const UserMetadata& value) { m_usersHasBeenSet = true; m_users.push_back(value); return *this; }
53 inline Participants& AddUsers(UserMetadata&& value) { m_usersHasBeenSet = true; m_users.push_back(std::move(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 inline void SetGroups(const Aws::Vector<GroupMetadata>& value) { m_groupsHasBeenSet = true; m_groups = value; }
63 inline void SetGroups(Aws::Vector<GroupMetadata>&& value) { m_groupsHasBeenSet = true; m_groups = std::move(value); }
64 inline Participants& WithGroups(const Aws::Vector<GroupMetadata>& value) { SetGroups(value); return *this;}
65 inline Participants& WithGroups(Aws::Vector<GroupMetadata>&& value) { SetGroups(std::move(value)); return *this;}
66 inline Participants& AddGroups(const GroupMetadata& value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; }
67 inline Participants& AddGroups(GroupMetadata&& value) { m_groupsHasBeenSet = true; m_groups.push_back(std::move(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
Participants & AddGroups(GroupMetadata &&value)
void SetUsers(const Aws::Vector< UserMetadata > &value)
Participants & AddGroups(const GroupMetadata &value)
AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< GroupMetadata > & GetGroups() const
Participants & AddUsers(const UserMetadata &value)
Participants & WithUsers(Aws::Vector< UserMetadata > &&value)
Participants & AddUsers(UserMetadata &&value)
void SetUsers(Aws::Vector< UserMetadata > &&value)
AWS_WORKDOCS_API Participants & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetGroups(const Aws::Vector< GroupMetadata > &value)
Participants & WithGroups(const Aws::Vector< GroupMetadata > &value)
Participants & WithUsers(const Aws::Vector< UserMetadata > &value)
void SetGroups(Aws::Vector< GroupMetadata > &&value)
Participants & WithGroups(Aws::Vector< GroupMetadata > &&value)
AWS_WORKDOCS_API Participants(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< UserMetadata > & GetUsers() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue