AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GroupMembers.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/qbusiness/model/MemberGroup.h>
10#include <aws/qbusiness/model/MemberUser.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 QBusiness
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_QBUSINESS_API GroupMembers();
39 AWS_QBUSINESS_API GroupMembers(Aws::Utils::Json::JsonView jsonValue);
40 AWS_QBUSINESS_API GroupMembers& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
50 inline const Aws::Vector<MemberGroup>& GetMemberGroups() const{ return m_memberGroups; }
51 inline bool MemberGroupsHasBeenSet() const { return m_memberGroupsHasBeenSet; }
52 inline void SetMemberGroups(const Aws::Vector<MemberGroup>& value) { m_memberGroupsHasBeenSet = true; m_memberGroups = value; }
53 inline void SetMemberGroups(Aws::Vector<MemberGroup>&& value) { m_memberGroupsHasBeenSet = true; m_memberGroups = std::move(value); }
54 inline GroupMembers& WithMemberGroups(const Aws::Vector<MemberGroup>& value) { SetMemberGroups(value); return *this;}
55 inline GroupMembers& WithMemberGroups(Aws::Vector<MemberGroup>&& value) { SetMemberGroups(std::move(value)); return *this;}
56 inline GroupMembers& AddMemberGroups(const MemberGroup& value) { m_memberGroupsHasBeenSet = true; m_memberGroups.push_back(value); return *this; }
57 inline GroupMembers& AddMemberGroups(MemberGroup&& value) { m_memberGroupsHasBeenSet = true; m_memberGroups.push_back(std::move(value)); return *this; }
59
61
65 inline const Aws::Vector<MemberUser>& GetMemberUsers() const{ return m_memberUsers; }
66 inline bool MemberUsersHasBeenSet() const { return m_memberUsersHasBeenSet; }
67 inline void SetMemberUsers(const Aws::Vector<MemberUser>& value) { m_memberUsersHasBeenSet = true; m_memberUsers = value; }
68 inline void SetMemberUsers(Aws::Vector<MemberUser>&& value) { m_memberUsersHasBeenSet = true; m_memberUsers = std::move(value); }
69 inline GroupMembers& WithMemberUsers(const Aws::Vector<MemberUser>& value) { SetMemberUsers(value); return *this;}
70 inline GroupMembers& WithMemberUsers(Aws::Vector<MemberUser>&& value) { SetMemberUsers(std::move(value)); return *this;}
71 inline GroupMembers& AddMemberUsers(const MemberUser& value) { m_memberUsersHasBeenSet = true; m_memberUsers.push_back(value); return *this; }
72 inline GroupMembers& AddMemberUsers(MemberUser&& value) { m_memberUsersHasBeenSet = true; m_memberUsers.push_back(std::move(value)); return *this; }
74 private:
75
76 Aws::Vector<MemberGroup> m_memberGroups;
77 bool m_memberGroupsHasBeenSet = false;
78
79 Aws::Vector<MemberUser> m_memberUsers;
80 bool m_memberUsersHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace QBusiness
85} // namespace Aws
GroupMembers & WithMemberGroups(Aws::Vector< MemberGroup > &&value)
void SetMemberUsers(Aws::Vector< MemberUser > &&value)
GroupMembers & AddMemberGroups(const MemberGroup &value)
void SetMemberGroups(Aws::Vector< MemberGroup > &&value)
const Aws::Vector< MemberGroup > & GetMemberGroups() const
GroupMembers & AddMemberGroups(MemberGroup &&value)
GroupMembers & AddMemberUsers(MemberUser &&value)
GroupMembers & AddMemberUsers(const MemberUser &value)
AWS_QBUSINESS_API GroupMembers(Aws::Utils::Json::JsonView jsonValue)
void SetMemberUsers(const Aws::Vector< MemberUser > &value)
GroupMembers & WithMemberGroups(const Aws::Vector< MemberGroup > &value)
GroupMembers & WithMemberUsers(const Aws::Vector< MemberUser > &value)
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
GroupMembers & WithMemberUsers(Aws::Vector< MemberUser > &&value)
const Aws::Vector< MemberUser > & GetMemberUsers() const
AWS_QBUSINESS_API GroupMembers & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetMemberGroups(const Aws::Vector< MemberGroup > &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue