AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UserPendingChanges.h
1
6#pragma once
7#include <aws/mq/MQ_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/mq/model/ChangeType.h>
10#include <aws/core/utils/memory/stl/AWSString.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 MQ
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_MQ_API UserPendingChanges() = default;
41
42
44
47 inline bool GetConsoleAccess() const { return m_consoleAccess; }
48 inline bool ConsoleAccessHasBeenSet() const { return m_consoleAccessHasBeenSet; }
49 inline void SetConsoleAccess(bool value) { m_consoleAccessHasBeenSet = true; m_consoleAccess = value; }
50 inline UserPendingChanges& WithConsoleAccess(bool value) { SetConsoleAccess(value); return *this;}
52
54
59 inline const Aws::Vector<Aws::String>& GetGroups() const { return m_groups; }
60 inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; }
61 template<typename GroupsT = Aws::Vector<Aws::String>>
62 void SetGroups(GroupsT&& value) { m_groupsHasBeenSet = true; m_groups = std::forward<GroupsT>(value); }
63 template<typename GroupsT = Aws::Vector<Aws::String>>
64 UserPendingChanges& WithGroups(GroupsT&& value) { SetGroups(std::forward<GroupsT>(value)); return *this;}
65 template<typename GroupsT = Aws::String>
66 UserPendingChanges& AddGroups(GroupsT&& value) { m_groupsHasBeenSet = true; m_groups.emplace_back(std::forward<GroupsT>(value)); return *this; }
68
70
73 inline ChangeType GetPendingChange() const { return m_pendingChange; }
74 inline bool PendingChangeHasBeenSet() const { return m_pendingChangeHasBeenSet; }
75 inline void SetPendingChange(ChangeType value) { m_pendingChangeHasBeenSet = true; m_pendingChange = value; }
76 inline UserPendingChanges& WithPendingChange(ChangeType value) { SetPendingChange(value); return *this;}
78 private:
79
80 bool m_consoleAccess{false};
81 bool m_consoleAccessHasBeenSet = false;
82
84 bool m_groupsHasBeenSet = false;
85
86 ChangeType m_pendingChange{ChangeType::NOT_SET};
87 bool m_pendingChangeHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace MQ
92} // namespace Aws
AWS_MQ_API UserPendingChanges(Aws::Utils::Json::JsonView jsonValue)
AWS_MQ_API Aws::Utils::Json::JsonValue Jsonize() const
UserPendingChanges & WithGroups(GroupsT &&value)
UserPendingChanges & WithPendingChange(ChangeType value)
UserPendingChanges & WithConsoleAccess(bool value)
UserPendingChanges & AddGroups(GroupsT &&value)
const Aws::Vector< Aws::String > & GetGroups() const
AWS_MQ_API UserPendingChanges()=default
AWS_MQ_API UserPendingChanges & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPendingChange(ChangeType value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue