AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
UserPendingChanges.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/mq/MQ_EXPORTS.h>
10#include <aws/mq/model/ChangeType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace MQ {
22namespace Model {
23
31 public:
32 AWS_MQ_API UserPendingChanges() = default;
36
38
41 inline bool GetConsoleAccess() const { return m_consoleAccess; }
42 inline bool ConsoleAccessHasBeenSet() const { return m_consoleAccessHasBeenSet; }
43 inline void SetConsoleAccess(bool value) {
44 m_consoleAccessHasBeenSet = true;
45 m_consoleAccess = value;
46 }
48 SetConsoleAccess(value);
49 return *this;
50 }
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) {
63 m_groupsHasBeenSet = true;
64 m_groups = std::forward<GroupsT>(value);
65 }
66 template <typename GroupsT = Aws::Vector<Aws::String>>
67 UserPendingChanges& WithGroups(GroupsT&& value) {
68 SetGroups(std::forward<GroupsT>(value));
69 return *this;
70 }
71 template <typename GroupsT = Aws::String>
72 UserPendingChanges& AddGroups(GroupsT&& value) {
73 m_groupsHasBeenSet = true;
74 m_groups.emplace_back(std::forward<GroupsT>(value));
75 return *this;
76 }
78
80
83 inline ChangeType GetPendingChange() const { return m_pendingChange; }
84 inline bool PendingChangeHasBeenSet() const { return m_pendingChangeHasBeenSet; }
85 inline void SetPendingChange(ChangeType value) {
86 m_pendingChangeHasBeenSet = true;
87 m_pendingChange = value;
88 }
90 SetPendingChange(value);
91 return *this;
92 }
94 private:
95 bool m_consoleAccess{false};
96
98
99 ChangeType m_pendingChange{ChangeType::NOT_SET};
100 bool m_consoleAccessHasBeenSet = false;
101 bool m_groupsHasBeenSet = false;
102 bool m_pendingChangeHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace MQ
107} // 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