AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UsersAndGroups.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace QBusiness
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_QBUSINESS_API UsersAndGroups() = default;
39 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Vector<Aws::String>& GetUserIds() const { return m_userIds; }
47 inline bool UserIdsHasBeenSet() const { return m_userIdsHasBeenSet; }
48 template<typename UserIdsT = Aws::Vector<Aws::String>>
49 void SetUserIds(UserIdsT&& value) { m_userIdsHasBeenSet = true; m_userIds = std::forward<UserIdsT>(value); }
50 template<typename UserIdsT = Aws::Vector<Aws::String>>
51 UsersAndGroups& WithUserIds(UserIdsT&& value) { SetUserIds(std::forward<UserIdsT>(value)); return *this;}
52 template<typename UserIdsT = Aws::String>
53 UsersAndGroups& AddUserIds(UserIdsT&& value) { m_userIdsHasBeenSet = true; m_userIds.emplace_back(std::forward<UserIdsT>(value)); return *this; }
55
57
60 inline const Aws::Vector<Aws::String>& GetUserGroups() const { return m_userGroups; }
61 inline bool UserGroupsHasBeenSet() const { return m_userGroupsHasBeenSet; }
62 template<typename UserGroupsT = Aws::Vector<Aws::String>>
63 void SetUserGroups(UserGroupsT&& value) { m_userGroupsHasBeenSet = true; m_userGroups = std::forward<UserGroupsT>(value); }
64 template<typename UserGroupsT = Aws::Vector<Aws::String>>
65 UsersAndGroups& WithUserGroups(UserGroupsT&& value) { SetUserGroups(std::forward<UserGroupsT>(value)); return *this;}
66 template<typename UserGroupsT = Aws::String>
67 UsersAndGroups& AddUserGroups(UserGroupsT&& value) { m_userGroupsHasBeenSet = true; m_userGroups.emplace_back(std::forward<UserGroupsT>(value)); return *this; }
69 private:
70
72 bool m_userIdsHasBeenSet = false;
73
74 Aws::Vector<Aws::String> m_userGroups;
75 bool m_userGroupsHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace QBusiness
80} // namespace Aws
AWS_QBUSINESS_API UsersAndGroups(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetUserGroups() const
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
UsersAndGroups & WithUserGroups(UserGroupsT &&value)
AWS_QBUSINESS_API UsersAndGroups()=default
const Aws::Vector< Aws::String > & GetUserIds() const
UsersAndGroups & AddUserGroups(UserGroupsT &&value)
void SetUserGroups(UserGroupsT &&value)
AWS_QBUSINESS_API UsersAndGroups & operator=(Aws::Utils::Json::JsonView jsonValue)
UsersAndGroups & AddUserIds(UserIdsT &&value)
UsersAndGroups & WithUserIds(UserIdsT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue