AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
37 AWS_QBUSINESS_API UsersAndGroups(Aws::Utils::Json::JsonView jsonValue);
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 inline void SetUserIds(const Aws::Vector<Aws::String>& value) { m_userIdsHasBeenSet = true; m_userIds = value; }
49 inline void SetUserIds(Aws::Vector<Aws::String>&& value) { m_userIdsHasBeenSet = true; m_userIds = std::move(value); }
50 inline UsersAndGroups& WithUserIds(const Aws::Vector<Aws::String>& value) { SetUserIds(value); return *this;}
51 inline UsersAndGroups& WithUserIds(Aws::Vector<Aws::String>&& value) { SetUserIds(std::move(value)); return *this;}
52 inline UsersAndGroups& AddUserIds(const Aws::String& value) { m_userIdsHasBeenSet = true; m_userIds.push_back(value); return *this; }
53 inline UsersAndGroups& AddUserIds(Aws::String&& value) { m_userIdsHasBeenSet = true; m_userIds.push_back(std::move(value)); return *this; }
54 inline UsersAndGroups& AddUserIds(const char* value) { m_userIdsHasBeenSet = true; m_userIds.push_back(value); return *this; }
56
58
61 inline const Aws::Vector<Aws::String>& GetUserGroups() const{ return m_userGroups; }
62 inline bool UserGroupsHasBeenSet() const { return m_userGroupsHasBeenSet; }
63 inline void SetUserGroups(const Aws::Vector<Aws::String>& value) { m_userGroupsHasBeenSet = true; m_userGroups = value; }
64 inline void SetUserGroups(Aws::Vector<Aws::String>&& value) { m_userGroupsHasBeenSet = true; m_userGroups = std::move(value); }
65 inline UsersAndGroups& WithUserGroups(const Aws::Vector<Aws::String>& value) { SetUserGroups(value); return *this;}
66 inline UsersAndGroups& WithUserGroups(Aws::Vector<Aws::String>&& value) { SetUserGroups(std::move(value)); return *this;}
67 inline UsersAndGroups& AddUserGroups(const Aws::String& value) { m_userGroupsHasBeenSet = true; m_userGroups.push_back(value); return *this; }
68 inline UsersAndGroups& AddUserGroups(Aws::String&& value) { m_userGroupsHasBeenSet = true; m_userGroups.push_back(std::move(value)); return *this; }
69 inline UsersAndGroups& AddUserGroups(const char* value) { m_userGroupsHasBeenSet = true; m_userGroups.push_back(value); return *this; }
71 private:
72
74 bool m_userIdsHasBeenSet = false;
75
76 Aws::Vector<Aws::String> m_userGroups;
77 bool m_userGroupsHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace QBusiness
82} // namespace Aws
AWS_QBUSINESS_API UsersAndGroups(Aws::Utils::Json::JsonView jsonValue)
void SetUserIds(const Aws::Vector< Aws::String > &value)
UsersAndGroups & AddUserGroups(const Aws::String &value)
UsersAndGroups & WithUserGroups(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetUserGroups() const
UsersAndGroups & AddUserIds(Aws::String &&value)
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
UsersAndGroups & AddUserIds(const Aws::String &value)
UsersAndGroups & AddUserGroups(Aws::String &&value)
void SetUserGroups(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetUserIds() const
UsersAndGroups & WithUserIds(const Aws::Vector< Aws::String > &value)
UsersAndGroups & WithUserGroups(const Aws::Vector< Aws::String > &value)
AWS_QBUSINESS_API UsersAndGroups & operator=(Aws::Utils::Json::JsonView jsonValue)
UsersAndGroups & AddUserGroups(const char *value)
UsersAndGroups & AddUserIds(const char *value)
void SetUserIds(Aws::Vector< Aws::String > &&value)
void SetUserGroups(Aws::Vector< Aws::String > &&value)
UsersAndGroups & WithUserIds(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue