AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetGroups(const Aws::Vector<Aws::String>& value) { m_groupsHasBeenSet = true; m_groups = value; }
62 inline void SetGroups(Aws::Vector<Aws::String>&& value) { m_groupsHasBeenSet = true; m_groups = std::move(value); }
63 inline UserPendingChanges& WithGroups(const Aws::Vector<Aws::String>& value) { SetGroups(value); return *this;}
64 inline UserPendingChanges& WithGroups(Aws::Vector<Aws::String>&& value) { SetGroups(std::move(value)); return *this;}
65 inline UserPendingChanges& AddGroups(const Aws::String& value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; }
66 inline UserPendingChanges& AddGroups(Aws::String&& value) { m_groupsHasBeenSet = true; m_groups.push_back(std::move(value)); return *this; }
67 inline UserPendingChanges& AddGroups(const char* value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; }
69
71
74 inline const ChangeType& GetPendingChange() const{ return m_pendingChange; }
75 inline bool PendingChangeHasBeenSet() const { return m_pendingChangeHasBeenSet; }
76 inline void SetPendingChange(const ChangeType& value) { m_pendingChangeHasBeenSet = true; m_pendingChange = value; }
77 inline void SetPendingChange(ChangeType&& value) { m_pendingChangeHasBeenSet = true; m_pendingChange = std::move(value); }
78 inline UserPendingChanges& WithPendingChange(const ChangeType& value) { SetPendingChange(value); return *this;}
79 inline UserPendingChanges& WithPendingChange(ChangeType&& value) { SetPendingChange(std::move(value)); return *this;}
81 private:
82
83 bool m_consoleAccess;
84 bool m_consoleAccessHasBeenSet = false;
85
87 bool m_groupsHasBeenSet = false;
88
89 ChangeType m_pendingChange;
90 bool m_pendingChangeHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace MQ
95} // namespace Aws
UserPendingChanges & WithPendingChange(ChangeType &&value)
UserPendingChanges & WithGroups(const Aws::Vector< Aws::String > &value)
void SetGroups(const Aws::Vector< Aws::String > &value)
UserPendingChanges & AddGroups(Aws::String &&value)
UserPendingChanges & AddGroups(const Aws::String &value)
AWS_MQ_API UserPendingChanges(Aws::Utils::Json::JsonView jsonValue)
AWS_MQ_API Aws::Utils::Json::JsonValue Jsonize() const
void SetGroups(Aws::Vector< Aws::String > &&value)
void SetPendingChange(ChangeType &&value)
UserPendingChanges & WithConsoleAccess(bool value)
UserPendingChanges & WithGroups(Aws::Vector< Aws::String > &&value)
UserPendingChanges & WithPendingChange(const ChangeType &value)
const ChangeType & GetPendingChange() const
UserPendingChanges & AddGroups(const char *value)
const Aws::Vector< Aws::String > & GetGroups() const
void SetPendingChange(const ChangeType &value)
AWS_MQ_API UserPendingChanges & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue