AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
ContainerRecipeSummary.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/imagebuilder/Imagebuilder_EXPORTS.h>
10#include <aws/imagebuilder/model/ContainerType.h>
11#include <aws/imagebuilder/model/Platform.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
31 public:
32 AWS_IMAGEBUILDER_API ContainerRecipeSummary() = default;
33 AWS_IMAGEBUILDER_API ContainerRecipeSummary(Aws::Utils::Json::JsonView jsonValue);
35 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetArn() const { return m_arn; }
42 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
43 template <typename ArnT = Aws::String>
44 void SetArn(ArnT&& value) {
45 m_arnHasBeenSet = true;
46 m_arn = std::forward<ArnT>(value);
47 }
48 template <typename ArnT = Aws::String>
50 SetArn(std::forward<ArnT>(value));
51 return *this;
52 }
54
56
59 inline ContainerType GetContainerType() const { return m_containerType; }
60 inline bool ContainerTypeHasBeenSet() const { return m_containerTypeHasBeenSet; }
61 inline void SetContainerType(ContainerType value) {
62 m_containerTypeHasBeenSet = true;
63 m_containerType = value;
64 }
66 SetContainerType(value);
67 return *this;
68 }
70
72
75 inline const Aws::String& GetName() const { return m_name; }
76 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
77 template <typename NameT = Aws::String>
78 void SetName(NameT&& value) {
79 m_nameHasBeenSet = true;
80 m_name = std::forward<NameT>(value);
81 }
82 template <typename NameT = Aws::String>
84 SetName(std::forward<NameT>(value));
85 return *this;
86 }
88
90
93 inline Platform GetPlatform() const { return m_platform; }
94 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
95 inline void SetPlatform(Platform value) {
96 m_platformHasBeenSet = true;
97 m_platform = value;
98 }
100 SetPlatform(value);
101 return *this;
102 }
104
106
109 inline const Aws::String& GetOwner() const { return m_owner; }
110 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
111 template <typename OwnerT = Aws::String>
112 void SetOwner(OwnerT&& value) {
113 m_ownerHasBeenSet = true;
114 m_owner = std::forward<OwnerT>(value);
115 }
116 template <typename OwnerT = Aws::String>
118 SetOwner(std::forward<OwnerT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::String& GetParentImage() const { return m_parentImage; }
128 inline bool ParentImageHasBeenSet() const { return m_parentImageHasBeenSet; }
129 template <typename ParentImageT = Aws::String>
130 void SetParentImage(ParentImageT&& value) {
131 m_parentImageHasBeenSet = true;
132 m_parentImage = std::forward<ParentImageT>(value);
133 }
134 template <typename ParentImageT = Aws::String>
136 SetParentImage(std::forward<ParentImageT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::String& GetDateCreated() const { return m_dateCreated; }
146 inline bool DateCreatedHasBeenSet() const { return m_dateCreatedHasBeenSet; }
147 template <typename DateCreatedT = Aws::String>
148 void SetDateCreated(DateCreatedT&& value) {
149 m_dateCreatedHasBeenSet = true;
150 m_dateCreated = std::forward<DateCreatedT>(value);
151 }
152 template <typename DateCreatedT = Aws::String>
154 SetDateCreated(std::forward<DateCreatedT>(value));
155 return *this;
156 }
158
160
167 inline const Aws::String& GetInstanceImage() const { return m_instanceImage; }
168 inline bool InstanceImageHasBeenSet() const { return m_instanceImageHasBeenSet; }
169 template <typename InstanceImageT = Aws::String>
170 void SetInstanceImage(InstanceImageT&& value) {
171 m_instanceImageHasBeenSet = true;
172 m_instanceImage = std::forward<InstanceImageT>(value);
173 }
174 template <typename InstanceImageT = Aws::String>
175 ContainerRecipeSummary& WithInstanceImage(InstanceImageT&& value) {
176 SetInstanceImage(std::forward<InstanceImageT>(value));
177 return *this;
178 }
180
182
185 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
186 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
187 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
188 void SetTags(TagsT&& value) {
189 m_tagsHasBeenSet = true;
190 m_tags = std::forward<TagsT>(value);
191 }
192 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
194 SetTags(std::forward<TagsT>(value));
195 return *this;
196 }
197 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
198 ContainerRecipeSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
199 m_tagsHasBeenSet = true;
200 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
201 return *this;
202 }
204 private:
205 Aws::String m_arn;
206
207 ContainerType m_containerType{ContainerType::NOT_SET};
208
209 Aws::String m_name;
210
211 Platform m_platform{Platform::NOT_SET};
212
213 Aws::String m_owner;
214
215 Aws::String m_parentImage;
216
217 Aws::String m_dateCreated;
218
219 Aws::String m_instanceImage;
220
222 bool m_arnHasBeenSet = false;
223 bool m_containerTypeHasBeenSet = false;
224 bool m_nameHasBeenSet = false;
225 bool m_platformHasBeenSet = false;
226 bool m_ownerHasBeenSet = false;
227 bool m_parentImageHasBeenSet = false;
228 bool m_dateCreatedHasBeenSet = false;
229 bool m_instanceImageHasBeenSet = false;
230 bool m_tagsHasBeenSet = false;
231};
232
233} // namespace Model
234} // namespace imagebuilder
235} // namespace Aws
ContainerRecipeSummary & WithTags(TagsT &&value)
ContainerRecipeSummary & WithInstanceImage(InstanceImageT &&value)
AWS_IMAGEBUILDER_API ContainerRecipeSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IMAGEBUILDER_API ContainerRecipeSummary(Aws::Utils::Json::JsonView jsonValue)
ContainerRecipeSummary & WithOwner(OwnerT &&value)
ContainerRecipeSummary & WithDateCreated(DateCreatedT &&value)
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IMAGEBUILDER_API ContainerRecipeSummary()=default
ContainerRecipeSummary & WithPlatform(Platform value)
ContainerRecipeSummary & WithName(NameT &&value)
ContainerRecipeSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
ContainerRecipeSummary & WithContainerType(ContainerType value)
ContainerRecipeSummary & WithParentImage(ParentImageT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
ContainerRecipeSummary & WithArn(ArnT &&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
Aws::Utils::Json::JsonValue JsonValue