AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetRecipes(const Aws::Vector<LifecyclePolicyResourceSelectionRecipe>& value) { m_recipesHasBeenSet = true; m_recipes = value; }
52 inline void SetRecipes(Aws::Vector<LifecyclePolicyResourceSelectionRecipe>&& value) { m_recipesHasBeenSet = true; m_recipes = std::move(value); }
55 inline LifecyclePolicyResourceSelection& AddRecipes(const LifecyclePolicyResourceSelectionRecipe& value) { m_recipesHasBeenSet = true; m_recipes.push_back(value); return *this; }
56 inline LifecyclePolicyResourceSelection& AddRecipes(LifecyclePolicyResourceSelectionRecipe&& value) { m_recipesHasBeenSet = true; m_recipes.push_back(std::move(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 inline void SetTagMap(const Aws::Map<Aws::String, Aws::String>& value) { m_tagMapHasBeenSet = true; m_tagMap = value; }
67 inline void SetTagMap(Aws::Map<Aws::String, Aws::String>&& value) { m_tagMapHasBeenSet = true; m_tagMap = std::move(value); }
70 inline LifecyclePolicyResourceSelection& AddTagMap(const Aws::String& key, const Aws::String& value) { m_tagMapHasBeenSet = true; m_tagMap.emplace(key, value); return *this; }
71 inline LifecyclePolicyResourceSelection& AddTagMap(Aws::String&& key, const Aws::String& value) { m_tagMapHasBeenSet = true; m_tagMap.emplace(std::move(key), value); return *this; }
72 inline LifecyclePolicyResourceSelection& AddTagMap(const Aws::String& key, Aws::String&& value) { m_tagMapHasBeenSet = true; m_tagMap.emplace(key, std::move(value)); return *this; }
73 inline LifecyclePolicyResourceSelection& AddTagMap(Aws::String&& key, Aws::String&& value) { m_tagMapHasBeenSet = true; m_tagMap.emplace(std::move(key), std::move(value)); return *this; }
74 inline LifecyclePolicyResourceSelection& AddTagMap(const char* key, Aws::String&& value) { m_tagMapHasBeenSet = true; m_tagMap.emplace(key, std::move(value)); return *this; }
75 inline LifecyclePolicyResourceSelection& AddTagMap(Aws::String&& key, const char* value) { m_tagMapHasBeenSet = true; m_tagMap.emplace(std::move(key), value); return *this; }
76 inline LifecyclePolicyResourceSelection& AddTagMap(const char* key, const char* value) { m_tagMapHasBeenSet = true; m_tagMap.emplace(key, value); return *this; }
78 private:
79
81 bool m_recipesHasBeenSet = false;
82
84 bool m_tagMapHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace imagebuilder
89} // namespace Aws
LifecyclePolicyResourceSelection & AddTagMap(Aws::String &&key, Aws::String &&value)
AWS_IMAGEBUILDER_API LifecyclePolicyResourceSelection(Aws::Utils::Json::JsonView jsonValue)
LifecyclePolicyResourceSelection & AddTagMap(Aws::String &&key, const Aws::String &value)
LifecyclePolicyResourceSelection & AddTagMap(const char *key, Aws::String &&value)
void SetRecipes(Aws::Vector< LifecyclePolicyResourceSelectionRecipe > &&value)
void SetTagMap(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Vector< LifecyclePolicyResourceSelectionRecipe > & GetRecipes() const
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTagMap(const Aws::Map< Aws::String, Aws::String > &value)
LifecyclePolicyResourceSelection & WithTagMap(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetTagMap() const
LifecyclePolicyResourceSelection & AddTagMap(const Aws::String &key, Aws::String &&value)
LifecyclePolicyResourceSelection & AddTagMap(const char *key, const char *value)
LifecyclePolicyResourceSelection & AddTagMap(const Aws::String &key, const Aws::String &value)
LifecyclePolicyResourceSelection & WithRecipes(Aws::Vector< LifecyclePolicyResourceSelectionRecipe > &&value)
LifecyclePolicyResourceSelection & AddRecipes(const LifecyclePolicyResourceSelectionRecipe &value)
LifecyclePolicyResourceSelection & WithTagMap(const Aws::Map< Aws::String, Aws::String > &value)
LifecyclePolicyResourceSelection & AddRecipes(LifecyclePolicyResourceSelectionRecipe &&value)
void SetRecipes(const Aws::Vector< LifecyclePolicyResourceSelectionRecipe > &value)
AWS_IMAGEBUILDER_API LifecyclePolicyResourceSelection & operator=(Aws::Utils::Json::JsonView jsonValue)
LifecyclePolicyResourceSelection & AddTagMap(Aws::String &&key, const char *value)
LifecyclePolicyResourceSelection & WithRecipes(const Aws::Vector< LifecyclePolicyResourceSelectionRecipe > &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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue