AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
UsersAndGroups.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/qbusiness/QBusiness_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace QBusiness {
21namespace Model {
22
30 public:
31 AWS_QBUSINESS_API UsersAndGroups() = default;
34 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<Aws::String>& GetUserIds() const { return m_userIds; }
41 inline bool UserIdsHasBeenSet() const { return m_userIdsHasBeenSet; }
42 template <typename UserIdsT = Aws::Vector<Aws::String>>
43 void SetUserIds(UserIdsT&& value) {
44 m_userIdsHasBeenSet = true;
45 m_userIds = std::forward<UserIdsT>(value);
46 }
47 template <typename UserIdsT = Aws::Vector<Aws::String>>
49 SetUserIds(std::forward<UserIdsT>(value));
50 return *this;
51 }
52 template <typename UserIdsT = Aws::String>
54 m_userIdsHasBeenSet = true;
55 m_userIds.emplace_back(std::forward<UserIdsT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::Vector<Aws::String>& GetUserGroups() const { return m_userGroups; }
65 inline bool UserGroupsHasBeenSet() const { return m_userGroupsHasBeenSet; }
66 template <typename UserGroupsT = Aws::Vector<Aws::String>>
67 void SetUserGroups(UserGroupsT&& value) {
68 m_userGroupsHasBeenSet = true;
69 m_userGroups = std::forward<UserGroupsT>(value);
70 }
71 template <typename UserGroupsT = Aws::Vector<Aws::String>>
73 SetUserGroups(std::forward<UserGroupsT>(value));
74 return *this;
75 }
76 template <typename UserGroupsT = Aws::String>
78 m_userGroupsHasBeenSet = true;
79 m_userGroups.emplace_back(std::forward<UserGroupsT>(value));
80 return *this;
81 }
83 private:
85
86 Aws::Vector<Aws::String> m_userGroups;
87 bool m_userIdsHasBeenSet = false;
88 bool m_userGroupsHasBeenSet = false;
89};
90
91} // namespace Model
92} // namespace QBusiness
93} // 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