AWS SDK for C++

AWS SDK for C++ Version 1.11.901

Loading...
Searching...
No Matches
InfrastructureConfigurationSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
11#include <aws/imagebuilder/model/Placement.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace imagebuilder {
23namespace Model {
24
33 public:
34 AWS_IMAGEBUILDER_API InfrastructureConfigurationSummary() = default;
37 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetArn() const { return m_arn; }
44 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
45 template <typename ArnT = Aws::String>
46 void SetArn(ArnT&& value) {
47 m_arnHasBeenSet = true;
48 m_arn = std::forward<ArnT>(value);
49 }
50 template <typename ArnT = Aws::String>
52 SetArn(std::forward<ArnT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template <typename NameT = Aws::String>
64 void SetName(NameT&& value) {
65 m_nameHasBeenSet = true;
66 m_name = std::forward<NameT>(value);
67 }
68 template <typename NameT = Aws::String>
70 SetName(std::forward<NameT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetDescription() const { return m_description; }
80 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
81 template <typename DescriptionT = Aws::String>
82 void SetDescription(DescriptionT&& value) {
83 m_descriptionHasBeenSet = true;
84 m_description = std::forward<DescriptionT>(value);
85 }
86 template <typename DescriptionT = Aws::String>
88 SetDescription(std::forward<DescriptionT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetDateCreated() const { return m_dateCreated; }
98 inline bool DateCreatedHasBeenSet() const { return m_dateCreatedHasBeenSet; }
99 template <typename DateCreatedT = Aws::String>
100 void SetDateCreated(DateCreatedT&& value) {
101 m_dateCreatedHasBeenSet = true;
102 m_dateCreated = std::forward<DateCreatedT>(value);
103 }
104 template <typename DateCreatedT = Aws::String>
106 SetDateCreated(std::forward<DateCreatedT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetDateUpdated() const { return m_dateUpdated; }
116 inline bool DateUpdatedHasBeenSet() const { return m_dateUpdatedHasBeenSet; }
117 template <typename DateUpdatedT = Aws::String>
118 void SetDateUpdated(DateUpdatedT&& value) {
119 m_dateUpdatedHasBeenSet = true;
120 m_dateUpdated = std::forward<DateUpdatedT>(value);
121 }
122 template <typename DateUpdatedT = Aws::String>
124 SetDateUpdated(std::forward<DateUpdatedT>(value));
125 return *this;
126 }
128
130
134 inline const Aws::Map<Aws::String, Aws::String>& GetResourceTags() const { return m_resourceTags; }
135 inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; }
136 template <typename ResourceTagsT = Aws::Map<Aws::String, Aws::String>>
137 void SetResourceTags(ResourceTagsT&& value) {
138 m_resourceTagsHasBeenSet = true;
139 m_resourceTags = std::forward<ResourceTagsT>(value);
140 }
141 template <typename ResourceTagsT = Aws::Map<Aws::String, Aws::String>>
143 SetResourceTags(std::forward<ResourceTagsT>(value));
144 return *this;
145 }
146 template <typename ResourceTagsKeyT = Aws::String, typename ResourceTagsValueT = Aws::String>
147 InfrastructureConfigurationSummary& AddResourceTags(ResourceTagsKeyT&& key, ResourceTagsValueT&& value) {
148 m_resourceTagsHasBeenSet = true;
149 m_resourceTags.emplace(std::forward<ResourceTagsKeyT>(key), std::forward<ResourceTagsValueT>(value));
150 return *this;
151 }
153
155
158 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
159 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
160 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
161 void SetTags(TagsT&& value) {
162 m_tagsHasBeenSet = true;
163 m_tags = std::forward<TagsT>(value);
164 }
165 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
167 SetTags(std::forward<TagsT>(value));
168 return *this;
169 }
170 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
171 InfrastructureConfigurationSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
172 m_tagsHasBeenSet = true;
173 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
174 return *this;
175 }
177
179
182 inline const Aws::Vector<Aws::String>& GetInstanceTypes() const { return m_instanceTypes; }
183 inline bool InstanceTypesHasBeenSet() const { return m_instanceTypesHasBeenSet; }
184 template <typename InstanceTypesT = Aws::Vector<Aws::String>>
185 void SetInstanceTypes(InstanceTypesT&& value) {
186 m_instanceTypesHasBeenSet = true;
187 m_instanceTypes = std::forward<InstanceTypesT>(value);
188 }
189 template <typename InstanceTypesT = Aws::Vector<Aws::String>>
191 SetInstanceTypes(std::forward<InstanceTypesT>(value));
192 return *this;
193 }
194 template <typename InstanceTypesT = Aws::String>
196 m_instanceTypesHasBeenSet = true;
197 m_instanceTypes.emplace_back(std::forward<InstanceTypesT>(value));
198 return *this;
199 }
201
203
206 inline const Aws::String& GetInstanceProfileName() const { return m_instanceProfileName; }
207 inline bool InstanceProfileNameHasBeenSet() const { return m_instanceProfileNameHasBeenSet; }
208 template <typename InstanceProfileNameT = Aws::String>
209 void SetInstanceProfileName(InstanceProfileNameT&& value) {
210 m_instanceProfileNameHasBeenSet = true;
211 m_instanceProfileName = std::forward<InstanceProfileNameT>(value);
212 }
213 template <typename InstanceProfileNameT = Aws::String>
215 SetInstanceProfileName(std::forward<InstanceProfileNameT>(value));
216 return *this;
217 }
219
221
226 inline const Placement& GetPlacement() const { return m_placement; }
227 inline bool PlacementHasBeenSet() const { return m_placementHasBeenSet; }
228 template <typename PlacementT = Placement>
229 void SetPlacement(PlacementT&& value) {
230 m_placementHasBeenSet = true;
231 m_placement = std::forward<PlacementT>(value);
232 }
233 template <typename PlacementT = Placement>
235 SetPlacement(std::forward<PlacementT>(value));
236 return *this;
237 }
239 private:
240 Aws::String m_arn;
241
242 Aws::String m_name;
243
244 Aws::String m_description;
245
246 Aws::String m_dateCreated;
247
248 Aws::String m_dateUpdated;
249
251
253
254 Aws::Vector<Aws::String> m_instanceTypes;
255
256 Aws::String m_instanceProfileName;
257
258 Placement m_placement;
259 bool m_arnHasBeenSet = false;
260 bool m_nameHasBeenSet = false;
261 bool m_descriptionHasBeenSet = false;
262 bool m_dateCreatedHasBeenSet = false;
263 bool m_dateUpdatedHasBeenSet = false;
264 bool m_resourceTagsHasBeenSet = false;
265 bool m_tagsHasBeenSet = false;
266 bool m_instanceTypesHasBeenSet = false;
267 bool m_instanceProfileNameHasBeenSet = false;
268 bool m_placementHasBeenSet = false;
269};
270
271} // namespace Model
272} // namespace imagebuilder
273} // namespace Aws
InfrastructureConfigurationSummary & WithInstanceProfileName(InstanceProfileNameT &&value)
InfrastructureConfigurationSummary & WithDescription(DescriptionT &&value)
AWS_IMAGEBUILDER_API InfrastructureConfigurationSummary()=default
AWS_IMAGEBUILDER_API InfrastructureConfigurationSummary(Aws::Utils::Json::JsonView jsonValue)
InfrastructureConfigurationSummary & WithDateCreated(DateCreatedT &&value)
InfrastructureConfigurationSummary & WithDateUpdated(DateUpdatedT &&value)
InfrastructureConfigurationSummary & AddInstanceTypes(InstanceTypesT &&value)
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
InfrastructureConfigurationSummary & WithPlacement(PlacementT &&value)
AWS_IMAGEBUILDER_API InfrastructureConfigurationSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
InfrastructureConfigurationSummary & WithInstanceTypes(InstanceTypesT &&value)
InfrastructureConfigurationSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
InfrastructureConfigurationSummary & WithResourceTags(ResourceTagsT &&value)
InfrastructureConfigurationSummary & AddResourceTags(ResourceTagsKeyT &&key, ResourceTagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetResourceTags() const
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