AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
Configurations.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/mq/MQ_EXPORTS.h>
9#include <aws/mq/model/ConfigurationId.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace MQ {
21namespace Model {
22
29 public:
30 AWS_MQ_API Configurations() = default;
34
36
39 inline const ConfigurationId& GetCurrent() const { return m_current; }
40 inline bool CurrentHasBeenSet() const { return m_currentHasBeenSet; }
41 template <typename CurrentT = ConfigurationId>
42 void SetCurrent(CurrentT&& value) {
43 m_currentHasBeenSet = true;
44 m_current = std::forward<CurrentT>(value);
45 }
46 template <typename CurrentT = ConfigurationId>
47 Configurations& WithCurrent(CurrentT&& value) {
48 SetCurrent(std::forward<CurrentT>(value));
49 return *this;
50 }
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) {
61 m_historyHasBeenSet = true;
62 m_history = std::forward<HistoryT>(value);
63 }
64 template <typename HistoryT = Aws::Vector<ConfigurationId>>
65 Configurations& WithHistory(HistoryT&& value) {
66 SetHistory(std::forward<HistoryT>(value));
67 return *this;
68 }
69 template <typename HistoryT = ConfigurationId>
70 Configurations& AddHistory(HistoryT&& value) {
71 m_historyHasBeenSet = true;
72 m_history.emplace_back(std::forward<HistoryT>(value));
73 return *this;
74 }
76
78
81 inline const ConfigurationId& GetPending() const { return m_pending; }
82 inline bool PendingHasBeenSet() const { return m_pendingHasBeenSet; }
83 template <typename PendingT = ConfigurationId>
84 void SetPending(PendingT&& value) {
85 m_pendingHasBeenSet = true;
86 m_pending = std::forward<PendingT>(value);
87 }
88 template <typename PendingT = ConfigurationId>
89 Configurations& WithPending(PendingT&& value) {
90 SetPending(std::forward<PendingT>(value));
91 return *this;
92 }
94 private:
95 ConfigurationId m_current;
96
98
99 ConfigurationId m_pending;
100 bool m_currentHasBeenSet = false;
101 bool m_historyHasBeenSet = false;
102 bool m_pendingHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace MQ
107} // 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