AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
LifecyclePolicyResourceSelection.h
1
6#pragma once
7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/imagebuilder/model/LifecyclePolicyResourceSelectionRecipe.h>
11#include <aws/core/utils/memory/stl/AWSString.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 LifecyclePolicyResourceSelection() = default;
41 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::Vector<LifecyclePolicyResourceSelectionRecipe>& GetRecipes() const { return m_recipes; }
50 inline bool RecipesHasBeenSet() const { return m_recipesHasBeenSet; }
51 template<typename RecipesT = Aws::Vector<LifecyclePolicyResourceSelectionRecipe>>
52 void SetRecipes(RecipesT&& value) { m_recipesHasBeenSet = true; m_recipes = std::forward<RecipesT>(value); }
53 template<typename RecipesT = Aws::Vector<LifecyclePolicyResourceSelectionRecipe>>
54 LifecyclePolicyResourceSelection& WithRecipes(RecipesT&& value) { SetRecipes(std::forward<RecipesT>(value)); return *this;}
55 template<typename RecipesT = LifecyclePolicyResourceSelectionRecipe>
56 LifecyclePolicyResourceSelection& AddRecipes(RecipesT&& value) { m_recipesHasBeenSet = true; m_recipes.emplace_back(std::forward<RecipesT>(value)); return *this; }
58
60
64 inline const Aws::Map<Aws::String, Aws::String>& GetTagMap() const { return m_tagMap; }
65 inline bool TagMapHasBeenSet() const { return m_tagMapHasBeenSet; }
66 template<typename TagMapT = Aws::Map<Aws::String, Aws::String>>
67 void SetTagMap(TagMapT&& value) { m_tagMapHasBeenSet = true; m_tagMap = std::forward<TagMapT>(value); }
68 template<typename TagMapT = Aws::Map<Aws::String, Aws::String>>
69 LifecyclePolicyResourceSelection& WithTagMap(TagMapT&& value) { SetTagMap(std::forward<TagMapT>(value)); return *this;}
70 template<typename TagMapKeyT = Aws::String, typename TagMapValueT = Aws::String>
71 LifecyclePolicyResourceSelection& AddTagMap(TagMapKeyT&& key, TagMapValueT&& value) {
72 m_tagMapHasBeenSet = true; m_tagMap.emplace(std::forward<TagMapKeyT>(key), std::forward<TagMapValueT>(value)); return *this;
73 }
75 private:
76
78 bool m_recipesHasBeenSet = false;
79
81 bool m_tagMapHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace imagebuilder
86} // 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