AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
LifecyclePolicyResourceSelection.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/LifecyclePolicyResourceSelectionRecipe.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 LifecyclePolicyResourceSelection() = default;
36 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::Vector<LifecyclePolicyResourceSelectionRecipe>& GetRecipes() const { return m_recipes; }
44 inline bool RecipesHasBeenSet() const { return m_recipesHasBeenSet; }
45 template <typename RecipesT = Aws::Vector<LifecyclePolicyResourceSelectionRecipe>>
46 void SetRecipes(RecipesT&& value) {
47 m_recipesHasBeenSet = true;
48 m_recipes = std::forward<RecipesT>(value);
49 }
50 template <typename RecipesT = Aws::Vector<LifecyclePolicyResourceSelectionRecipe>>
52 SetRecipes(std::forward<RecipesT>(value));
53 return *this;
54 }
55 template <typename RecipesT = LifecyclePolicyResourceSelectionRecipe>
57 m_recipesHasBeenSet = true;
58 m_recipes.emplace_back(std::forward<RecipesT>(value));
59 return *this;
60 }
62
64
68 inline const Aws::Map<Aws::String, Aws::String>& GetTagMap() const { return m_tagMap; }
69 inline bool TagMapHasBeenSet() const { return m_tagMapHasBeenSet; }
70 template <typename TagMapT = Aws::Map<Aws::String, Aws::String>>
71 void SetTagMap(TagMapT&& value) {
72 m_tagMapHasBeenSet = true;
73 m_tagMap = std::forward<TagMapT>(value);
74 }
75 template <typename TagMapT = Aws::Map<Aws::String, Aws::String>>
77 SetTagMap(std::forward<TagMapT>(value));
78 return *this;
79 }
80 template <typename TagMapKeyT = Aws::String, typename TagMapValueT = Aws::String>
81 LifecyclePolicyResourceSelection& AddTagMap(TagMapKeyT&& key, TagMapValueT&& value) {
82 m_tagMapHasBeenSet = true;
83 m_tagMap.emplace(std::forward<TagMapKeyT>(key), std::forward<TagMapValueT>(value));
84 return *this;
85 }
87 private:
89
91 bool m_recipesHasBeenSet = false;
92 bool m_tagMapHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace imagebuilder
97} // namespace Aws
AWS_IMAGEBUILDER_API LifecyclePolicyResourceSelection(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< LifecyclePolicyResourceSelectionRecipe > & GetRecipes() const
LifecyclePolicyResourceSelection & AddTagMap(TagMapKeyT &&key, TagMapValueT &&value)
LifecyclePolicyResourceSelection & WithTagMap(TagMapT &&value)
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IMAGEBUILDER_API LifecyclePolicyResourceSelection()=default
LifecyclePolicyResourceSelection & WithRecipes(RecipesT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTagMap() const
LifecyclePolicyResourceSelection & AddRecipes(RecipesT &&value)
AWS_IMAGEBUILDER_API LifecyclePolicyResourceSelection & operator=(Aws::Utils::Json::JsonView jsonValue)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue