AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Configurations.h
1
6#pragma once
7#include <aws/mq/MQ_EXPORTS.h>
8#include <aws/mq/model/ConfigurationId.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace MQ
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_MQ_API Configurations() = default;
39
40
42
45 inline const ConfigurationId& GetCurrent() const { return m_current; }
46 inline bool CurrentHasBeenSet() const { return m_currentHasBeenSet; }
47 template<typename CurrentT = ConfigurationId>
48 void SetCurrent(CurrentT&& value) { m_currentHasBeenSet = true; m_current = std::forward<CurrentT>(value); }
49 template<typename CurrentT = ConfigurationId>
50 Configurations& WithCurrent(CurrentT&& value) { SetCurrent(std::forward<CurrentT>(value)); return *this;}
52
54
57 inline const Aws::Vector<ConfigurationId>& GetHistory() const { return m_history; }
58 inline bool HistoryHasBeenSet() const { return m_historyHasBeenSet; }
59 template<typename HistoryT = Aws::Vector<ConfigurationId>>
60 void SetHistory(HistoryT&& value) { m_historyHasBeenSet = true; m_history = std::forward<HistoryT>(value); }
61 template<typename HistoryT = Aws::Vector<ConfigurationId>>
62 Configurations& WithHistory(HistoryT&& value) { SetHistory(std::forward<HistoryT>(value)); return *this;}
63 template<typename HistoryT = ConfigurationId>
64 Configurations& AddHistory(HistoryT&& value) { m_historyHasBeenSet = true; m_history.emplace_back(std::forward<HistoryT>(value)); return *this; }
66
68
71 inline const ConfigurationId& GetPending() const { return m_pending; }
72 inline bool PendingHasBeenSet() const { return m_pendingHasBeenSet; }
73 template<typename PendingT = ConfigurationId>
74 void SetPending(PendingT&& value) { m_pendingHasBeenSet = true; m_pending = std::forward<PendingT>(value); }
75 template<typename PendingT = ConfigurationId>
76 Configurations& WithPending(PendingT&& value) { SetPending(std::forward<PendingT>(value)); return *this;}
78 private:
79
80 ConfigurationId m_current;
81 bool m_currentHasBeenSet = false;
82
84 bool m_historyHasBeenSet = false;
85
86 ConfigurationId m_pending;
87 bool m_pendingHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace MQ
92} // namespace Aws
AWS_MQ_API Configurations(Aws::Utils::Json::JsonView jsonValue)
const ConfigurationId & GetCurrent() const
AWS_MQ_API Configurations & operator=(Aws::Utils::Json::JsonView jsonValue)
const ConfigurationId & GetPending() const
const Aws::Vector< ConfigurationId > & GetHistory() const
void SetHistory(HistoryT &&value)
Configurations & WithCurrent(CurrentT &&value)
Configurations & WithHistory(HistoryT &&value)
void SetCurrent(CurrentT &&value)
AWS_MQ_API Configurations()=default
AWS_MQ_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPending(PendingT &&value)
Configurations & WithPending(PendingT &&value)
Configurations & AddHistory(HistoryT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue