AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ProtocolsListData.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/fms/FMS_EXPORTS.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace FMS {
23namespace Model {
24
31 public:
32 AWS_FMS_API ProtocolsListData() = default;
36
38
41 inline const Aws::String& GetListId() const { return m_listId; }
42 inline bool ListIdHasBeenSet() const { return m_listIdHasBeenSet; }
43 template <typename ListIdT = Aws::String>
44 void SetListId(ListIdT&& value) {
45 m_listIdHasBeenSet = true;
46 m_listId = std::forward<ListIdT>(value);
47 }
48 template <typename ListIdT = Aws::String>
49 ProtocolsListData& WithListId(ListIdT&& value) {
50 SetListId(std::forward<ListIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetListName() const { return m_listName; }
60 inline bool ListNameHasBeenSet() const { return m_listNameHasBeenSet; }
61 template <typename ListNameT = Aws::String>
62 void SetListName(ListNameT&& value) {
63 m_listNameHasBeenSet = true;
64 m_listName = std::forward<ListNameT>(value);
65 }
66 template <typename ListNameT = Aws::String>
67 ProtocolsListData& WithListName(ListNameT&& value) {
68 SetListName(std::forward<ListNameT>(value));
69 return *this;
70 }
72
74
79 inline const Aws::String& GetListUpdateToken() const { return m_listUpdateToken; }
80 inline bool ListUpdateTokenHasBeenSet() const { return m_listUpdateTokenHasBeenSet; }
81 template <typename ListUpdateTokenT = Aws::String>
82 void SetListUpdateToken(ListUpdateTokenT&& value) {
83 m_listUpdateTokenHasBeenSet = true;
84 m_listUpdateToken = std::forward<ListUpdateTokenT>(value);
85 }
86 template <typename ListUpdateTokenT = Aws::String>
87 ProtocolsListData& WithListUpdateToken(ListUpdateTokenT&& value) {
88 SetListUpdateToken(std::forward<ListUpdateTokenT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
98 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
99 template <typename CreateTimeT = Aws::Utils::DateTime>
100 void SetCreateTime(CreateTimeT&& value) {
101 m_createTimeHasBeenSet = true;
102 m_createTime = std::forward<CreateTimeT>(value);
103 }
104 template <typename CreateTimeT = Aws::Utils::DateTime>
105 ProtocolsListData& WithCreateTime(CreateTimeT&& value) {
106 SetCreateTime(std::forward<CreateTimeT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::Utils::DateTime& GetLastUpdateTime() const { return m_lastUpdateTime; }
116 inline bool LastUpdateTimeHasBeenSet() const { return m_lastUpdateTimeHasBeenSet; }
117 template <typename LastUpdateTimeT = Aws::Utils::DateTime>
118 void SetLastUpdateTime(LastUpdateTimeT&& value) {
119 m_lastUpdateTimeHasBeenSet = true;
120 m_lastUpdateTime = std::forward<LastUpdateTimeT>(value);
121 }
122 template <typename LastUpdateTimeT = Aws::Utils::DateTime>
123 ProtocolsListData& WithLastUpdateTime(LastUpdateTimeT&& value) {
124 SetLastUpdateTime(std::forward<LastUpdateTimeT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::Vector<Aws::String>& GetProtocolsList() const { return m_protocolsList; }
134 inline bool ProtocolsListHasBeenSet() const { return m_protocolsListHasBeenSet; }
135 template <typename ProtocolsListT = Aws::Vector<Aws::String>>
136 void SetProtocolsList(ProtocolsListT&& value) {
137 m_protocolsListHasBeenSet = true;
138 m_protocolsList = std::forward<ProtocolsListT>(value);
139 }
140 template <typename ProtocolsListT = Aws::Vector<Aws::String>>
141 ProtocolsListData& WithProtocolsList(ProtocolsListT&& value) {
142 SetProtocolsList(std::forward<ProtocolsListT>(value));
143 return *this;
144 }
145 template <typename ProtocolsListT = Aws::String>
146 ProtocolsListData& AddProtocolsList(ProtocolsListT&& value) {
147 m_protocolsListHasBeenSet = true;
148 m_protocolsList.emplace_back(std::forward<ProtocolsListT>(value));
149 return *this;
150 }
152
154
157 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetPreviousProtocolsList() const { return m_previousProtocolsList; }
158 inline bool PreviousProtocolsListHasBeenSet() const { return m_previousProtocolsListHasBeenSet; }
159 template <typename PreviousProtocolsListT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
160 void SetPreviousProtocolsList(PreviousProtocolsListT&& value) {
161 m_previousProtocolsListHasBeenSet = true;
162 m_previousProtocolsList = std::forward<PreviousProtocolsListT>(value);
163 }
164 template <typename PreviousProtocolsListT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
165 ProtocolsListData& WithPreviousProtocolsList(PreviousProtocolsListT&& value) {
166 SetPreviousProtocolsList(std::forward<PreviousProtocolsListT>(value));
167 return *this;
168 }
169 template <typename PreviousProtocolsListKeyT = Aws::String, typename PreviousProtocolsListValueT = Aws::Vector<Aws::String>>
170 ProtocolsListData& AddPreviousProtocolsList(PreviousProtocolsListKeyT&& key, PreviousProtocolsListValueT&& value) {
171 m_previousProtocolsListHasBeenSet = true;
172 m_previousProtocolsList.emplace(std::forward<PreviousProtocolsListKeyT>(key), std::forward<PreviousProtocolsListValueT>(value));
173 return *this;
174 }
176 private:
177 Aws::String m_listId;
178
179 Aws::String m_listName;
180
181 Aws::String m_listUpdateToken;
182
183 Aws::Utils::DateTime m_createTime{};
184
185 Aws::Utils::DateTime m_lastUpdateTime{};
186
187 Aws::Vector<Aws::String> m_protocolsList;
188
189 Aws::Map<Aws::String, Aws::Vector<Aws::String>> m_previousProtocolsList;
190 bool m_listIdHasBeenSet = false;
191 bool m_listNameHasBeenSet = false;
192 bool m_listUpdateTokenHasBeenSet = false;
193 bool m_createTimeHasBeenSet = false;
194 bool m_lastUpdateTimeHasBeenSet = false;
195 bool m_protocolsListHasBeenSet = false;
196 bool m_previousProtocolsListHasBeenSet = false;
197};
198
199} // namespace Model
200} // namespace FMS
201} // namespace Aws
ProtocolsListData & AddPreviousProtocolsList(PreviousProtocolsListKeyT &&key, PreviousProtocolsListValueT &&value)
const Aws::Utils::DateTime & GetLastUpdateTime() const
const Aws::Utils::DateTime & GetCreateTime() const
ProtocolsListData & WithListName(ListNameT &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetPreviousProtocolsList() const
void SetPreviousProtocolsList(PreviousProtocolsListT &&value)
AWS_FMS_API ProtocolsListData()=default
ProtocolsListData & WithListUpdateToken(ListUpdateTokenT &&value)
ProtocolsListData & AddProtocolsList(ProtocolsListT &&value)
void SetListUpdateToken(ListUpdateTokenT &&value)
const Aws::Vector< Aws::String > & GetProtocolsList() const
AWS_FMS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetListUpdateToken() const
AWS_FMS_API ProtocolsListData(Aws::Utils::Json::JsonView jsonValue)
AWS_FMS_API ProtocolsListData & operator=(Aws::Utils::Json::JsonView jsonValue)
ProtocolsListData & WithProtocolsList(ProtocolsListT &&value)
ProtocolsListData & WithCreateTime(CreateTimeT &&value)
const Aws::String & GetListId() const
const Aws::String & GetListName() const
ProtocolsListData & WithLastUpdateTime(LastUpdateTimeT &&value)
ProtocolsListData & WithListId(ListIdT &&value)
void SetProtocolsList(ProtocolsListT &&value)
void SetListName(ListNameT &&value)
void SetLastUpdateTime(LastUpdateTimeT &&value)
ProtocolsListData & WithPreviousProtocolsList(PreviousProtocolsListT &&value)
void SetCreateTime(CreateTimeT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue