AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ResourceSet.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/fms/FMS_EXPORTS.h>
11#include <aws/fms/model/ResourceSetStatus.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 ResourceSet() = default;
36
38
43 inline const Aws::String& GetId() const { return m_id; }
44 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
45 template <typename IdT = Aws::String>
46 void SetId(IdT&& value) {
47 m_idHasBeenSet = true;
48 m_id = std::forward<IdT>(value);
49 }
50 template <typename IdT = Aws::String>
51 ResourceSet& WithId(IdT&& value) {
52 SetId(std::forward<IdT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetName() const { return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 template <typename NameT = Aws::String>
65 void SetName(NameT&& value) {
66 m_nameHasBeenSet = true;
67 m_name = std::forward<NameT>(value);
68 }
69 template <typename NameT = Aws::String>
70 ResourceSet& WithName(NameT&& value) {
71 SetName(std::forward<NameT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetDescription() const { return m_description; }
81 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
82 template <typename DescriptionT = Aws::String>
83 void SetDescription(DescriptionT&& value) {
84 m_descriptionHasBeenSet = true;
85 m_description = std::forward<DescriptionT>(value);
86 }
87 template <typename DescriptionT = Aws::String>
88 ResourceSet& WithDescription(DescriptionT&& value) {
89 SetDescription(std::forward<DescriptionT>(value));
90 return *this;
91 }
93
95
111 inline const Aws::String& GetUpdateToken() const { return m_updateToken; }
112 inline bool UpdateTokenHasBeenSet() const { return m_updateTokenHasBeenSet; }
113 template <typename UpdateTokenT = Aws::String>
114 void SetUpdateToken(UpdateTokenT&& value) {
115 m_updateTokenHasBeenSet = true;
116 m_updateToken = std::forward<UpdateTokenT>(value);
117 }
118 template <typename UpdateTokenT = Aws::String>
119 ResourceSet& WithUpdateToken(UpdateTokenT&& value) {
120 SetUpdateToken(std::forward<UpdateTokenT>(value));
121 return *this;
122 }
124
126
131 inline const Aws::Vector<Aws::String>& GetResourceTypeList() const { return m_resourceTypeList; }
132 inline bool ResourceTypeListHasBeenSet() const { return m_resourceTypeListHasBeenSet; }
133 template <typename ResourceTypeListT = Aws::Vector<Aws::String>>
134 void SetResourceTypeList(ResourceTypeListT&& value) {
135 m_resourceTypeListHasBeenSet = true;
136 m_resourceTypeList = std::forward<ResourceTypeListT>(value);
137 }
138 template <typename ResourceTypeListT = Aws::Vector<Aws::String>>
139 ResourceSet& WithResourceTypeList(ResourceTypeListT&& value) {
140 SetResourceTypeList(std::forward<ResourceTypeListT>(value));
141 return *this;
142 }
143 template <typename ResourceTypeListT = Aws::String>
144 ResourceSet& AddResourceTypeList(ResourceTypeListT&& value) {
145 m_resourceTypeListHasBeenSet = true;
146 m_resourceTypeList.emplace_back(std::forward<ResourceTypeListT>(value));
147 return *this;
148 }
150
152
155 inline const Aws::Utils::DateTime& GetLastUpdateTime() const { return m_lastUpdateTime; }
156 inline bool LastUpdateTimeHasBeenSet() const { return m_lastUpdateTimeHasBeenSet; }
157 template <typename LastUpdateTimeT = Aws::Utils::DateTime>
158 void SetLastUpdateTime(LastUpdateTimeT&& value) {
159 m_lastUpdateTimeHasBeenSet = true;
160 m_lastUpdateTime = std::forward<LastUpdateTimeT>(value);
161 }
162 template <typename LastUpdateTimeT = Aws::Utils::DateTime>
163 ResourceSet& WithLastUpdateTime(LastUpdateTimeT&& value) {
164 SetLastUpdateTime(std::forward<LastUpdateTimeT>(value));
165 return *this;
166 }
168
170
178 inline ResourceSetStatus GetResourceSetStatus() const { return m_resourceSetStatus; }
179 inline bool ResourceSetStatusHasBeenSet() const { return m_resourceSetStatusHasBeenSet; }
181 m_resourceSetStatusHasBeenSet = true;
182 m_resourceSetStatus = value;
183 }
186 return *this;
187 }
189 private:
190 Aws::String m_id;
191
192 Aws::String m_name;
193
194 Aws::String m_description;
195
196 Aws::String m_updateToken;
197
198 Aws::Vector<Aws::String> m_resourceTypeList;
199
200 Aws::Utils::DateTime m_lastUpdateTime{};
201
203 bool m_idHasBeenSet = false;
204 bool m_nameHasBeenSet = false;
205 bool m_descriptionHasBeenSet = false;
206 bool m_updateTokenHasBeenSet = false;
207 bool m_resourceTypeListHasBeenSet = false;
208 bool m_lastUpdateTimeHasBeenSet = false;
209 bool m_resourceSetStatusHasBeenSet = false;
210};
211
212} // namespace Model
213} // namespace FMS
214} // namespace Aws
ResourceSet & WithUpdateToken(UpdateTokenT &&value)
ResourceSet & WithResourceSetStatus(ResourceSetStatus value)
const Aws::String & GetId() const
Definition ResourceSet.h:43
bool ResourceTypeListHasBeenSet() const
AWS_FMS_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceSet & WithName(NameT &&value)
Definition ResourceSet.h:70
ResourceSetStatus GetResourceSetStatus() const
void SetName(NameT &&value)
Definition ResourceSet.h:65
ResourceSet & AddResourceTypeList(ResourceTypeListT &&value)
AWS_FMS_API ResourceSet(Aws::Utils::Json::JsonView jsonValue)
void SetUpdateToken(UpdateTokenT &&value)
const Aws::String & GetDescription() const
Definition ResourceSet.h:80
ResourceSet & WithDescription(DescriptionT &&value)
Definition ResourceSet.h:88
bool DescriptionHasBeenSet() const
Definition ResourceSet.h:81
AWS_FMS_API ResourceSet & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceSet & WithLastUpdateTime(LastUpdateTimeT &&value)
bool LastUpdateTimeHasBeenSet() const
const Aws::String & GetUpdateToken() const
const Aws::String & GetName() const
Definition ResourceSet.h:62
void SetId(IdT &&value)
Definition ResourceSet.h:46
const Aws::Vector< Aws::String > & GetResourceTypeList() const
ResourceSet & WithId(IdT &&value)
Definition ResourceSet.h:51
bool ResourceSetStatusHasBeenSet() const
const Aws::Utils::DateTime & GetLastUpdateTime() const
void SetLastUpdateTime(LastUpdateTimeT &&value)
ResourceSet & WithResourceTypeList(ResourceTypeListT &&value)
void SetResourceTypeList(ResourceTypeListT &&value)
void SetDescription(DescriptionT &&value)
Definition ResourceSet.h:83
void SetResourceSetStatus(ResourceSetStatus value)
AWS_FMS_API ResourceSet()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue