AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ContainerRecipeSummary.h
1
6#pragma once
7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/imagebuilder/model/ContainerType.h>
10#include <aws/imagebuilder/model/Platform.h>
11#include <aws/core/utils/memory/stl/AWSMap.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
35 {
36 public:
37 AWS_IMAGEBUILDER_API ContainerRecipeSummary() = default;
38 AWS_IMAGEBUILDER_API ContainerRecipeSummary(Aws::Utils::Json::JsonView jsonValue);
40 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetArn() const { return m_arn; }
48 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
49 template<typename ArnT = Aws::String>
50 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
51 template<typename ArnT = Aws::String>
52 ContainerRecipeSummary& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
54
56
59 inline ContainerType GetContainerType() const { return m_containerType; }
60 inline bool ContainerTypeHasBeenSet() const { return m_containerTypeHasBeenSet; }
61 inline void SetContainerType(ContainerType value) { m_containerTypeHasBeenSet = true; m_containerType = value; }
64
66
69 inline const Aws::String& GetName() const { return m_name; }
70 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
71 template<typename NameT = Aws::String>
72 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
73 template<typename NameT = Aws::String>
74 ContainerRecipeSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
76
78
81 inline Platform GetPlatform() const { return m_platform; }
82 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
83 inline void SetPlatform(Platform value) { m_platformHasBeenSet = true; m_platform = value; }
84 inline ContainerRecipeSummary& WithPlatform(Platform value) { SetPlatform(value); return *this;}
86
88
91 inline const Aws::String& GetOwner() const { return m_owner; }
92 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
93 template<typename OwnerT = Aws::String>
94 void SetOwner(OwnerT&& value) { m_ownerHasBeenSet = true; m_owner = std::forward<OwnerT>(value); }
95 template<typename OwnerT = Aws::String>
96 ContainerRecipeSummary& WithOwner(OwnerT&& value) { SetOwner(std::forward<OwnerT>(value)); return *this;}
98
100
103 inline const Aws::String& GetParentImage() const { return m_parentImage; }
104 inline bool ParentImageHasBeenSet() const { return m_parentImageHasBeenSet; }
105 template<typename ParentImageT = Aws::String>
106 void SetParentImage(ParentImageT&& value) { m_parentImageHasBeenSet = true; m_parentImage = std::forward<ParentImageT>(value); }
107 template<typename ParentImageT = Aws::String>
108 ContainerRecipeSummary& WithParentImage(ParentImageT&& value) { SetParentImage(std::forward<ParentImageT>(value)); return *this;}
110
112
115 inline const Aws::String& GetDateCreated() const { return m_dateCreated; }
116 inline bool DateCreatedHasBeenSet() const { return m_dateCreatedHasBeenSet; }
117 template<typename DateCreatedT = Aws::String>
118 void SetDateCreated(DateCreatedT&& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = std::forward<DateCreatedT>(value); }
119 template<typename DateCreatedT = Aws::String>
120 ContainerRecipeSummary& WithDateCreated(DateCreatedT&& value) { SetDateCreated(std::forward<DateCreatedT>(value)); return *this;}
122
124
127 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
128 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
129 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
130 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
131 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
132 ContainerRecipeSummary& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
133 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
134 ContainerRecipeSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
135 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
136 }
138 private:
139
140 Aws::String m_arn;
141 bool m_arnHasBeenSet = false;
142
143 ContainerType m_containerType{ContainerType::NOT_SET};
144 bool m_containerTypeHasBeenSet = false;
145
146 Aws::String m_name;
147 bool m_nameHasBeenSet = false;
148
149 Platform m_platform{Platform::NOT_SET};
150 bool m_platformHasBeenSet = false;
151
152 Aws::String m_owner;
153 bool m_ownerHasBeenSet = false;
154
155 Aws::String m_parentImage;
156 bool m_parentImageHasBeenSet = false;
157
158 Aws::String m_dateCreated;
159 bool m_dateCreatedHasBeenSet = false;
160
162 bool m_tagsHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace imagebuilder
167} // namespace Aws
ContainerRecipeSummary & WithTags(TagsT &&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