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

See Also:

AWS * API Reference

*/ class AWS_MQ_API Configurations { public: Configurations(); Configurations(Aws::Utils::Json::JsonView jsonValue); Configurations& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** * The current configuration of the broker. */ inline const ConfigurationId& GetCurrent() const{ return m_current; } /** * The current configuration of the broker. */ inline bool CurrentHasBeenSet() const { return m_currentHasBeenSet; } /** * The current configuration of the broker. */ inline void SetCurrent(const ConfigurationId& value) { m_currentHasBeenSet = true; m_current = value; } /** * The current configuration of the broker. */ inline void SetCurrent(ConfigurationId&& value) { m_currentHasBeenSet = true; m_current = std::move(value); } /** * The current configuration of the broker. */ inline Configurations& WithCurrent(const ConfigurationId& value) { SetCurrent(value); return *this;} /** * The current configuration of the broker. */ inline Configurations& WithCurrent(ConfigurationId&& value) { SetCurrent(std::move(value)); return *this;} /** * The history of configurations applied to the broker. */ inline const Aws::Vector& GetHistory() const{ return m_history; } /** * The history of configurations applied to the broker. */ inline bool HistoryHasBeenSet() const { return m_historyHasBeenSet; } /** * The history of configurations applied to the broker. */ inline void SetHistory(const Aws::Vector& value) { m_historyHasBeenSet = true; m_history = value; } /** * The history of configurations applied to the broker. */ inline void SetHistory(Aws::Vector&& value) { m_historyHasBeenSet = true; m_history = std::move(value); } /** * The history of configurations applied to the broker. */ inline Configurations& WithHistory(const Aws::Vector& value) { SetHistory(value); return *this;} /** * The history of configurations applied to the broker. */ inline Configurations& WithHistory(Aws::Vector&& value) { SetHistory(std::move(value)); return *this;} /** * The history of configurations applied to the broker. */ inline Configurations& AddHistory(const ConfigurationId& value) { m_historyHasBeenSet = true; m_history.push_back(value); return *this; } /** * The history of configurations applied to the broker. */ inline Configurations& AddHistory(ConfigurationId&& value) { m_historyHasBeenSet = true; m_history.push_back(std::move(value)); return *this; } /** * The pending configuration of the broker. */ inline const ConfigurationId& GetPending() const{ return m_pending; } /** * The pending configuration of the broker. */ inline bool PendingHasBeenSet() const { return m_pendingHasBeenSet; } /** * The pending configuration of the broker. */ inline void SetPending(const ConfigurationId& value) { m_pendingHasBeenSet = true; m_pending = value; } /** * The pending configuration of the broker. */ inline void SetPending(ConfigurationId&& value) { m_pendingHasBeenSet = true; m_pending = std::move(value); } /** * The pending configuration of the broker. */ inline Configurations& WithPending(const ConfigurationId& value) { SetPending(value); return *this;} /** * The pending configuration of the broker. */ inline Configurations& WithPending(ConfigurationId&& value) { SetPending(std::move(value)); return *this;} private: ConfigurationId m_current; bool m_currentHasBeenSet; Aws::Vector m_history; bool m_historyHasBeenSet; ConfigurationId m_pending; bool m_pendingHasBeenSet; }; } // namespace Model } // namespace MQ } // namespace Aws