AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
LifecyclePolicyDetailExclusionRules.h
1
6#pragma once
7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/imagebuilder/model/LifecyclePolicyDetailExclusionRulesAmis.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace imagebuilder
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_IMAGEBUILDER_API LifecyclePolicyDetailExclusionRules() = default;
40 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::Map<Aws::String, Aws::String>& GetTagMap() const { return m_tagMap; }
49 inline bool TagMapHasBeenSet() const { return m_tagMapHasBeenSet; }
50 template<typename TagMapT = Aws::Map<Aws::String, Aws::String>>
51 void SetTagMap(TagMapT&& value) { m_tagMapHasBeenSet = true; m_tagMap = std::forward<TagMapT>(value); }
52 template<typename TagMapT = Aws::Map<Aws::String, Aws::String>>
53 LifecyclePolicyDetailExclusionRules& WithTagMap(TagMapT&& value) { SetTagMap(std::forward<TagMapT>(value)); return *this;}
54 template<typename TagMapKeyT = Aws::String, typename TagMapValueT = Aws::String>
55 LifecyclePolicyDetailExclusionRules& AddTagMap(TagMapKeyT&& key, TagMapValueT&& value) {
56 m_tagMapHasBeenSet = true; m_tagMap.emplace(std::forward<TagMapKeyT>(key), std::forward<TagMapValueT>(value)); return *this;
57 }
59
61
65 inline const LifecyclePolicyDetailExclusionRulesAmis& GetAmis() const { return m_amis; }
66 inline bool AmisHasBeenSet() const { return m_amisHasBeenSet; }
67 template<typename AmisT = LifecyclePolicyDetailExclusionRulesAmis>
68 void SetAmis(AmisT&& value) { m_amisHasBeenSet = true; m_amis = std::forward<AmisT>(value); }
69 template<typename AmisT = LifecyclePolicyDetailExclusionRulesAmis>
70 LifecyclePolicyDetailExclusionRules& WithAmis(AmisT&& value) { SetAmis(std::forward<AmisT>(value)); return *this;}
72 private:
73
75 bool m_tagMapHasBeenSet = false;
76
78 bool m_amisHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace imagebuilder
83} // namespace Aws
AWS_IMAGEBUILDER_API LifecyclePolicyDetailExclusionRules()=default
const LifecyclePolicyDetailExclusionRulesAmis & GetAmis() const
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
LifecyclePolicyDetailExclusionRules & WithTagMap(TagMapT &&value)
LifecyclePolicyDetailExclusionRules & AddTagMap(TagMapKeyT &&key, TagMapValueT &&value)
AWS_IMAGEBUILDER_API LifecyclePolicyDetailExclusionRules & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IMAGEBUILDER_API LifecyclePolicyDetailExclusionRules(Aws::Utils::Json::JsonView jsonValue)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue