AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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
32 public:
33 AWS_IMAGEBUILDER_API InfrastructureConfigurationSummary() = default;
36 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetArn() const { return m_arn; }
43 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
44 template <typename ArnT = Aws::String>
45 void SetArn(ArnT&& value) {
46 m_arnHasBeenSet = true;
47 m_arn = std::forward<ArnT>(value);
48 }
49 template <typename ArnT = Aws::String>
51 SetArn(std::forward<ArnT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 template <typename NameT = Aws::String>
63 void SetName(NameT&& value) {
64 m_nameHasBeenSet = true;
65 m_name = std::forward<NameT>(value);
66 }
67 template <typename NameT = Aws::String>
69 SetName(std::forward<NameT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetDescription() const { return m_description; }
79 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
80 template <typename DescriptionT = Aws::String>
81 void SetDescription(DescriptionT&& value) {
82 m_descriptionHasBeenSet = true;
83 m_description = std::forward<DescriptionT>(value);
84 }
85 template <typename DescriptionT = Aws::String>
87 SetDescription(std::forward<DescriptionT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetDateCreated() const { return m_dateCreated; }
97 inline bool DateCreatedHasBeenSet() const { return m_dateCreatedHasBeenSet; }
98 template <typename DateCreatedT = Aws::String>
99 void SetDateCreated(DateCreatedT&& value) {
100 m_dateCreatedHasBeenSet = true;
101 m_dateCreated = std::forward<DateCreatedT>(value);
102 }
103 template <typename DateCreatedT = Aws::String>
105 SetDateCreated(std::forward<DateCreatedT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetDateUpdated() const { return m_dateUpdated; }
115 inline bool DateUpdatedHasBeenSet() const { return m_dateUpdatedHasBeenSet; }
116 template <typename DateUpdatedT = Aws::String>
117 void SetDateUpdated(DateUpdatedT&& value) {
118 m_dateUpdatedHasBeenSet = true;
119 m_dateUpdated = std::forward<DateUpdatedT>(value);
120 }
121 template <typename DateUpdatedT = Aws::String>
123 SetDateUpdated(std::forward<DateUpdatedT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::Map<Aws::String, Aws::String>& GetResourceTags() const { return m_resourceTags; }
133 inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; }
134 template <typename ResourceTagsT = Aws::Map<Aws::String, Aws::String>>
135 void SetResourceTags(ResourceTagsT&& value) {
136 m_resourceTagsHasBeenSet = true;
137 m_resourceTags = std::forward<ResourceTagsT>(value);
138 }
139 template <typename ResourceTagsT = Aws::Map<Aws::String, Aws::String>>
141 SetResourceTags(std::forward<ResourceTagsT>(value));
142 return *this;
143 }
144 template <typename ResourceTagsKeyT = Aws::String, typename ResourceTagsValueT = Aws::String>
145 InfrastructureConfigurationSummary& AddResourceTags(ResourceTagsKeyT&& key, ResourceTagsValueT&& value) {
146 m_resourceTagsHasBeenSet = true;
147 m_resourceTags.emplace(std::forward<ResourceTagsKeyT>(key), std::forward<ResourceTagsValueT>(value));
148 return *this;
149 }
151
153
156 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
157 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
158 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
159 void SetTags(TagsT&& value) {
160 m_tagsHasBeenSet = true;
161 m_tags = std::forward<TagsT>(value);
162 }
163 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
165 SetTags(std::forward<TagsT>(value));
166 return *this;
167 }
168 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
169 InfrastructureConfigurationSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
170 m_tagsHasBeenSet = true;
171 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
172 return *this;
173 }
175
177
180 inline const Aws::Vector<Aws::String>& GetInstanceTypes() const { return m_instanceTypes; }
181 inline bool InstanceTypesHasBeenSet() const { return m_instanceTypesHasBeenSet; }
182 template <typename InstanceTypesT = Aws::Vector<Aws::String>>
183 void SetInstanceTypes(InstanceTypesT&& value) {
184 m_instanceTypesHasBeenSet = true;
185 m_instanceTypes = std::forward<InstanceTypesT>(value);
186 }
187 template <typename InstanceTypesT = Aws::Vector<Aws::String>>
189 SetInstanceTypes(std::forward<InstanceTypesT>(value));
190 return *this;
191 }
192 template <typename InstanceTypesT = Aws::String>
194 m_instanceTypesHasBeenSet = true;
195 m_instanceTypes.emplace_back(std::forward<InstanceTypesT>(value));
196 return *this;
197 }
199
201
204 inline const Aws::String& GetInstanceProfileName() const { return m_instanceProfileName; }
205 inline bool InstanceProfileNameHasBeenSet() const { return m_instanceProfileNameHasBeenSet; }
206 template <typename InstanceProfileNameT = Aws::String>
207 void SetInstanceProfileName(InstanceProfileNameT&& value) {
208 m_instanceProfileNameHasBeenSet = true;
209 m_instanceProfileName = std::forward<InstanceProfileNameT>(value);
210 }
211 template <typename InstanceProfileNameT = Aws::String>
213 SetInstanceProfileName(std::forward<InstanceProfileNameT>(value));
214 return *this;
215 }
217
219
223 inline const Placement& GetPlacement() const { return m_placement; }
224 inline bool PlacementHasBeenSet() const { return m_placementHasBeenSet; }
225 template <typename PlacementT = Placement>
226 void SetPlacement(PlacementT&& value) {
227 m_placementHasBeenSet = true;
228 m_placement = std::forward<PlacementT>(value);
229 }
230 template <typename PlacementT = Placement>
232 SetPlacement(std::forward<PlacementT>(value));
233 return *this;
234 }
236 private:
237 Aws::String m_arn;
238
239 Aws::String m_name;
240
241 Aws::String m_description;
242
243 Aws::String m_dateCreated;
244
245 Aws::String m_dateUpdated;
246
248
250
251 Aws::Vector<Aws::String> m_instanceTypes;
252
253 Aws::String m_instanceProfileName;
254
255 Placement m_placement;
256 bool m_arnHasBeenSet = false;
257 bool m_nameHasBeenSet = false;
258 bool m_descriptionHasBeenSet = false;
259 bool m_dateCreatedHasBeenSet = false;
260 bool m_dateUpdatedHasBeenSet = false;
261 bool m_resourceTagsHasBeenSet = false;
262 bool m_tagsHasBeenSet = false;
263 bool m_instanceTypesHasBeenSet = false;
264 bool m_instanceProfileNameHasBeenSet = false;
265 bool m_placementHasBeenSet = false;
266};
267
268} // namespace Model
269} // namespace imagebuilder
270} // 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