AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
InfrastructureConfigurationSummary.h
1
6#pragma once
7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/imagebuilder/model/Placement.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace imagebuilder
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_IMAGEBUILDER_API InfrastructureConfigurationSummary() = default;
41 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetArn() const { return m_arn; }
49 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
50 template<typename ArnT = Aws::String>
51 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
52 template<typename ArnT = Aws::String>
53 InfrastructureConfigurationSummary& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
64 template<typename NameT = Aws::String>
65 InfrastructureConfigurationSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
67
69
72 inline const Aws::String& GetDescription() const { return m_description; }
73 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
74 template<typename DescriptionT = Aws::String>
75 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
76 template<typename DescriptionT = Aws::String>
77 InfrastructureConfigurationSummary& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
79
81
84 inline const Aws::String& GetDateCreated() const { return m_dateCreated; }
85 inline bool DateCreatedHasBeenSet() const { return m_dateCreatedHasBeenSet; }
86 template<typename DateCreatedT = Aws::String>
87 void SetDateCreated(DateCreatedT&& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = std::forward<DateCreatedT>(value); }
88 template<typename DateCreatedT = Aws::String>
89 InfrastructureConfigurationSummary& WithDateCreated(DateCreatedT&& value) { SetDateCreated(std::forward<DateCreatedT>(value)); return *this;}
91
93
96 inline const Aws::String& GetDateUpdated() const { return m_dateUpdated; }
97 inline bool DateUpdatedHasBeenSet() const { return m_dateUpdatedHasBeenSet; }
98 template<typename DateUpdatedT = Aws::String>
99 void SetDateUpdated(DateUpdatedT&& value) { m_dateUpdatedHasBeenSet = true; m_dateUpdated = std::forward<DateUpdatedT>(value); }
100 template<typename DateUpdatedT = Aws::String>
101 InfrastructureConfigurationSummary& WithDateUpdated(DateUpdatedT&& value) { SetDateUpdated(std::forward<DateUpdatedT>(value)); return *this;}
103
105
108 inline const Aws::Map<Aws::String, Aws::String>& GetResourceTags() const { return m_resourceTags; }
109 inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; }
110 template<typename ResourceTagsT = Aws::Map<Aws::String, Aws::String>>
111 void SetResourceTags(ResourceTagsT&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = std::forward<ResourceTagsT>(value); }
112 template<typename ResourceTagsT = Aws::Map<Aws::String, Aws::String>>
113 InfrastructureConfigurationSummary& WithResourceTags(ResourceTagsT&& value) { SetResourceTags(std::forward<ResourceTagsT>(value)); return *this;}
114 template<typename ResourceTagsKeyT = Aws::String, typename ResourceTagsValueT = Aws::String>
115 InfrastructureConfigurationSummary& AddResourceTags(ResourceTagsKeyT&& key, ResourceTagsValueT&& value) {
116 m_resourceTagsHasBeenSet = true; m_resourceTags.emplace(std::forward<ResourceTagsKeyT>(key), std::forward<ResourceTagsValueT>(value)); return *this;
117 }
119
121
124 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
125 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
126 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
127 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
128 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
129 InfrastructureConfigurationSummary& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
130 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
131 InfrastructureConfigurationSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
132 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
133 }
135
137
140 inline const Aws::Vector<Aws::String>& GetInstanceTypes() const { return m_instanceTypes; }
141 inline bool InstanceTypesHasBeenSet() const { return m_instanceTypesHasBeenSet; }
142 template<typename InstanceTypesT = Aws::Vector<Aws::String>>
143 void SetInstanceTypes(InstanceTypesT&& value) { m_instanceTypesHasBeenSet = true; m_instanceTypes = std::forward<InstanceTypesT>(value); }
144 template<typename InstanceTypesT = Aws::Vector<Aws::String>>
145 InfrastructureConfigurationSummary& WithInstanceTypes(InstanceTypesT&& value) { SetInstanceTypes(std::forward<InstanceTypesT>(value)); return *this;}
146 template<typename InstanceTypesT = Aws::String>
147 InfrastructureConfigurationSummary& AddInstanceTypes(InstanceTypesT&& value) { m_instanceTypesHasBeenSet = true; m_instanceTypes.emplace_back(std::forward<InstanceTypesT>(value)); return *this; }
149
151
154 inline const Aws::String& GetInstanceProfileName() const { return m_instanceProfileName; }
155 inline bool InstanceProfileNameHasBeenSet() const { return m_instanceProfileNameHasBeenSet; }
156 template<typename InstanceProfileNameT = Aws::String>
157 void SetInstanceProfileName(InstanceProfileNameT&& value) { m_instanceProfileNameHasBeenSet = true; m_instanceProfileName = std::forward<InstanceProfileNameT>(value); }
158 template<typename InstanceProfileNameT = Aws::String>
159 InfrastructureConfigurationSummary& WithInstanceProfileName(InstanceProfileNameT&& value) { SetInstanceProfileName(std::forward<InstanceProfileNameT>(value)); return *this;}
161
163
167 inline const Placement& GetPlacement() const { return m_placement; }
168 inline bool PlacementHasBeenSet() const { return m_placementHasBeenSet; }
169 template<typename PlacementT = Placement>
170 void SetPlacement(PlacementT&& value) { m_placementHasBeenSet = true; m_placement = std::forward<PlacementT>(value); }
171 template<typename PlacementT = Placement>
172 InfrastructureConfigurationSummary& WithPlacement(PlacementT&& value) { SetPlacement(std::forward<PlacementT>(value)); return *this;}
174 private:
175
176 Aws::String m_arn;
177 bool m_arnHasBeenSet = false;
178
179 Aws::String m_name;
180 bool m_nameHasBeenSet = false;
181
182 Aws::String m_description;
183 bool m_descriptionHasBeenSet = false;
184
185 Aws::String m_dateCreated;
186 bool m_dateCreatedHasBeenSet = false;
187
188 Aws::String m_dateUpdated;
189 bool m_dateUpdatedHasBeenSet = false;
190
192 bool m_resourceTagsHasBeenSet = false;
193
195 bool m_tagsHasBeenSet = false;
196
197 Aws::Vector<Aws::String> m_instanceTypes;
198 bool m_instanceTypesHasBeenSet = false;
199
200 Aws::String m_instanceProfileName;
201 bool m_instanceProfileNameHasBeenSet = false;
202
203 Placement m_placement;
204 bool m_placementHasBeenSet = false;
205 };
206
207} // namespace Model
208} // namespace imagebuilder
209} // 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