/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace MQ { namespace Model { /** *

Returns information about the status of the changes pending for the ActiveMQ * user.

See Also:

AWS * API Reference

*/ class UserPendingChanges { public: AWS_MQ_API UserPendingChanges(); AWS_MQ_API UserPendingChanges(Aws::Utils::Json::JsonView jsonValue); AWS_MQ_API UserPendingChanges& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_MQ_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Enables access to the the ActiveMQ Web Console for the ActiveMQ user.

*/ inline bool GetConsoleAccess() const{ return m_consoleAccess; } /** *

Enables access to the the ActiveMQ Web Console for the ActiveMQ user.

*/ inline bool ConsoleAccessHasBeenSet() const { return m_consoleAccessHasBeenSet; } /** *

Enables access to the the ActiveMQ Web Console for the ActiveMQ user.

*/ inline void SetConsoleAccess(bool value) { m_consoleAccessHasBeenSet = true; m_consoleAccess = value; } /** *

Enables access to the the ActiveMQ Web Console for the ActiveMQ user.

*/ inline UserPendingChanges& WithConsoleAccess(bool value) { SetConsoleAccess(value); return *this;} /** *

The list of groups (20 maximum) to which the ActiveMQ user belongs. This * value can contain only alphanumeric characters, dashes, periods, underscores, * and tildes (- . _ ~). This value must be 2-100 characters long.

*/ inline const Aws::Vector& GetGroups() const{ return m_groups; } /** *

The list of groups (20 maximum) to which the ActiveMQ user belongs. This * value can contain only alphanumeric characters, dashes, periods, underscores, * and tildes (- . _ ~). This value must be 2-100 characters long.

*/ inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; } /** *

The list of groups (20 maximum) to which the ActiveMQ user belongs. This * value can contain only alphanumeric characters, dashes, periods, underscores, * and tildes (- . _ ~). This value must be 2-100 characters long.

*/ inline void SetGroups(const Aws::Vector& value) { m_groupsHasBeenSet = true; m_groups = value; } /** *

The list of groups (20 maximum) to which the ActiveMQ user belongs. This * value can contain only alphanumeric characters, dashes, periods, underscores, * and tildes (- . _ ~). This value must be 2-100 characters long.

*/ inline void SetGroups(Aws::Vector&& value) { m_groupsHasBeenSet = true; m_groups = std::move(value); } /** *

The list of groups (20 maximum) to which the ActiveMQ user belongs. This * value can contain only alphanumeric characters, dashes, periods, underscores, * and tildes (- . _ ~). This value must be 2-100 characters long.

*/ inline UserPendingChanges& WithGroups(const Aws::Vector& value) { SetGroups(value); return *this;} /** *

The list of groups (20 maximum) to which the ActiveMQ user belongs. This * value can contain only alphanumeric characters, dashes, periods, underscores, * and tildes (- . _ ~). This value must be 2-100 characters long.

*/ inline UserPendingChanges& WithGroups(Aws::Vector&& value) { SetGroups(std::move(value)); return *this;} /** *

The list of groups (20 maximum) to which the ActiveMQ user belongs. This * value can contain only alphanumeric characters, dashes, periods, underscores, * and tildes (- . _ ~). This value must be 2-100 characters long.

*/ inline UserPendingChanges& AddGroups(const Aws::String& value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; } /** *

The list of groups (20 maximum) to which the ActiveMQ user belongs. This * value can contain only alphanumeric characters, dashes, periods, underscores, * and tildes (- . _ ~). This value must be 2-100 characters long.

*/ inline UserPendingChanges& AddGroups(Aws::String&& value) { m_groupsHasBeenSet = true; m_groups.push_back(std::move(value)); return *this; } /** *

The list of groups (20 maximum) to which the ActiveMQ user belongs. This * value can contain only alphanumeric characters, dashes, periods, underscores, * and tildes (- . _ ~). This value must be 2-100 characters long.

*/ inline UserPendingChanges& AddGroups(const char* value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; } /** *

Required. The type of change pending for the ActiveMQ user.

*/ inline const ChangeType& GetPendingChange() const{ return m_pendingChange; } /** *

Required. The type of change pending for the ActiveMQ user.

*/ inline bool PendingChangeHasBeenSet() const { return m_pendingChangeHasBeenSet; } /** *

Required. The type of change pending for the ActiveMQ user.

*/ inline void SetPendingChange(const ChangeType& value) { m_pendingChangeHasBeenSet = true; m_pendingChange = value; } /** *

Required. The type of change pending for the ActiveMQ user.

*/ inline void SetPendingChange(ChangeType&& value) { m_pendingChangeHasBeenSet = true; m_pendingChange = std::move(value); } /** *

Required. The type of change pending for the ActiveMQ user.

*/ inline UserPendingChanges& WithPendingChange(const ChangeType& value) { SetPendingChange(value); return *this;} /** *

Required. The type of change pending for the ActiveMQ user.

*/ inline UserPendingChanges& WithPendingChange(ChangeType&& value) { SetPendingChange(std::move(value)); return *this;} private: bool m_consoleAccess; bool m_consoleAccessHasBeenSet = false; Aws::Vector m_groups; bool m_groupsHasBeenSet = false; ChangeType m_pendingChange; bool m_pendingChangeHasBeenSet = false; }; } // namespace Model } // namespace MQ } // namespace Aws