AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LifecyclePolicyDetailExclusionRulesAmis.h
1
6#pragma once
7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/imagebuilder/model/LifecyclePolicyDetailExclusionRulesAmisLastLaunched.h>
10#include <aws/core/utils/memory/stl/AWSMap.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:
41 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline bool GetIsPublic() const{ return m_isPublic; }
49 inline bool IsPublicHasBeenSet() const { return m_isPublicHasBeenSet; }
50 inline void SetIsPublic(bool value) { m_isPublicHasBeenSet = true; m_isPublic = value; }
51 inline LifecyclePolicyDetailExclusionRulesAmis& WithIsPublic(bool value) { SetIsPublic(value); return *this;}
53
55
59 inline const Aws::Vector<Aws::String>& GetRegions() const{ return m_regions; }
60 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
61 inline void SetRegions(const Aws::Vector<Aws::String>& value) { m_regionsHasBeenSet = true; m_regions = value; }
62 inline void SetRegions(Aws::Vector<Aws::String>&& value) { m_regionsHasBeenSet = true; m_regions = std::move(value); }
65 inline LifecyclePolicyDetailExclusionRulesAmis& AddRegions(const Aws::String& value) { m_regionsHasBeenSet = true; m_regions.push_back(value); return *this; }
66 inline LifecyclePolicyDetailExclusionRulesAmis& AddRegions(Aws::String&& value) { m_regionsHasBeenSet = true; m_regions.push_back(std::move(value)); return *this; }
67 inline LifecyclePolicyDetailExclusionRulesAmis& AddRegions(const char* value) { m_regionsHasBeenSet = true; m_regions.push_back(value); return *this; }
69
71
75 inline const Aws::Vector<Aws::String>& GetSharedAccounts() const{ return m_sharedAccounts; }
76 inline bool SharedAccountsHasBeenSet() const { return m_sharedAccountsHasBeenSet; }
77 inline void SetSharedAccounts(const Aws::Vector<Aws::String>& value) { m_sharedAccountsHasBeenSet = true; m_sharedAccounts = value; }
78 inline void SetSharedAccounts(Aws::Vector<Aws::String>&& value) { m_sharedAccountsHasBeenSet = true; m_sharedAccounts = std::move(value); }
81 inline LifecyclePolicyDetailExclusionRulesAmis& AddSharedAccounts(const Aws::String& value) { m_sharedAccountsHasBeenSet = true; m_sharedAccounts.push_back(value); return *this; }
82 inline LifecyclePolicyDetailExclusionRulesAmis& AddSharedAccounts(Aws::String&& value) { m_sharedAccountsHasBeenSet = true; m_sharedAccounts.push_back(std::move(value)); return *this; }
83 inline LifecyclePolicyDetailExclusionRulesAmis& AddSharedAccounts(const char* value) { m_sharedAccountsHasBeenSet = true; m_sharedAccounts.push_back(value); return *this; }
85
87
91 inline const LifecyclePolicyDetailExclusionRulesAmisLastLaunched& GetLastLaunched() const{ return m_lastLaunched; }
92 inline bool LastLaunchedHasBeenSet() const { return m_lastLaunchedHasBeenSet; }
93 inline void SetLastLaunched(const LifecyclePolicyDetailExclusionRulesAmisLastLaunched& value) { m_lastLaunchedHasBeenSet = true; m_lastLaunched = value; }
94 inline void SetLastLaunched(LifecyclePolicyDetailExclusionRulesAmisLastLaunched&& value) { m_lastLaunchedHasBeenSet = true; m_lastLaunched = std::move(value); }
98
100
104 inline const Aws::Map<Aws::String, Aws::String>& GetTagMap() const{ return m_tagMap; }
105 inline bool TagMapHasBeenSet() const { return m_tagMapHasBeenSet; }
106 inline void SetTagMap(const Aws::Map<Aws::String, Aws::String>& value) { m_tagMapHasBeenSet = true; m_tagMap = value; }
107 inline void SetTagMap(Aws::Map<Aws::String, Aws::String>&& value) { m_tagMapHasBeenSet = true; m_tagMap = std::move(value); }
110 inline LifecyclePolicyDetailExclusionRulesAmis& AddTagMap(const Aws::String& key, const Aws::String& value) { m_tagMapHasBeenSet = true; m_tagMap.emplace(key, value); return *this; }
111 inline LifecyclePolicyDetailExclusionRulesAmis& AddTagMap(Aws::String&& key, const Aws::String& value) { m_tagMapHasBeenSet = true; m_tagMap.emplace(std::move(key), value); return *this; }
112 inline LifecyclePolicyDetailExclusionRulesAmis& AddTagMap(const Aws::String& key, Aws::String&& value) { m_tagMapHasBeenSet = true; m_tagMap.emplace(key, std::move(value)); return *this; }
113 inline LifecyclePolicyDetailExclusionRulesAmis& AddTagMap(Aws::String&& key, Aws::String&& value) { m_tagMapHasBeenSet = true; m_tagMap.emplace(std::move(key), std::move(value)); return *this; }
114 inline LifecyclePolicyDetailExclusionRulesAmis& AddTagMap(const char* key, Aws::String&& value) { m_tagMapHasBeenSet = true; m_tagMap.emplace(key, std::move(value)); return *this; }
115 inline LifecyclePolicyDetailExclusionRulesAmis& AddTagMap(Aws::String&& key, const char* value) { m_tagMapHasBeenSet = true; m_tagMap.emplace(std::move(key), value); return *this; }
116 inline LifecyclePolicyDetailExclusionRulesAmis& AddTagMap(const char* key, const char* value) { m_tagMapHasBeenSet = true; m_tagMap.emplace(key, value); return *this; }
118 private:
119
120 bool m_isPublic;
121 bool m_isPublicHasBeenSet = false;
122
123 Aws::Vector<Aws::String> m_regions;
124 bool m_regionsHasBeenSet = false;
125
126 Aws::Vector<Aws::String> m_sharedAccounts;
127 bool m_sharedAccountsHasBeenSet = false;
128
130 bool m_lastLaunchedHasBeenSet = false;
131
133 bool m_tagMapHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace imagebuilder
138} // namespace Aws
void SetLastLaunched(const LifecyclePolicyDetailExclusionRulesAmisLastLaunched &value)
LifecyclePolicyDetailExclusionRulesAmis & AddRegions(const char *value)
const LifecyclePolicyDetailExclusionRulesAmisLastLaunched & GetLastLaunched() const
LifecyclePolicyDetailExclusionRulesAmis & WithLastLaunched(LifecyclePolicyDetailExclusionRulesAmisLastLaunched &&value)
LifecyclePolicyDetailExclusionRulesAmis & AddRegions(Aws::String &&value)
LifecyclePolicyDetailExclusionRulesAmis & WithTagMap(Aws::Map< Aws::String, Aws::String > &&value)
LifecyclePolicyDetailExclusionRulesAmis & AddTagMap(Aws::String &&key, Aws::String &&value)
LifecyclePolicyDetailExclusionRulesAmis & WithSharedAccounts(const Aws::Vector< Aws::String > &value)
AWS_IMAGEBUILDER_API LifecyclePolicyDetailExclusionRulesAmis & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
LifecyclePolicyDetailExclusionRulesAmis & AddTagMap(Aws::String &&key, const Aws::String &value)
LifecyclePolicyDetailExclusionRulesAmis & WithLastLaunched(const LifecyclePolicyDetailExclusionRulesAmisLastLaunched &value)
LifecyclePolicyDetailExclusionRulesAmis & AddRegions(const Aws::String &value)
LifecyclePolicyDetailExclusionRulesAmis & AddSharedAccounts(Aws::String &&value)
LifecyclePolicyDetailExclusionRulesAmis & WithSharedAccounts(Aws::Vector< Aws::String > &&value)
LifecyclePolicyDetailExclusionRulesAmis & AddTagMap(const Aws::String &key, Aws::String &&value)
LifecyclePolicyDetailExclusionRulesAmis & AddTagMap(const char *key, const char *value)
LifecyclePolicyDetailExclusionRulesAmis & WithRegions(const Aws::Vector< Aws::String > &value)
LifecyclePolicyDetailExclusionRulesAmis & WithTagMap(const Aws::Map< Aws::String, Aws::String > &value)
LifecyclePolicyDetailExclusionRulesAmis & AddSharedAccounts(const char *value)
LifecyclePolicyDetailExclusionRulesAmis & AddTagMap(Aws::String &&key, const char *value)
void SetLastLaunched(LifecyclePolicyDetailExclusionRulesAmisLastLaunched &&value)
LifecyclePolicyDetailExclusionRulesAmis & WithRegions(Aws::Vector< Aws::String > &&value)
LifecyclePolicyDetailExclusionRulesAmis & AddTagMap(const char *key, Aws::String &&value)
LifecyclePolicyDetailExclusionRulesAmis & AddSharedAccounts(const Aws::String &value)
AWS_IMAGEBUILDER_API LifecyclePolicyDetailExclusionRulesAmis(Aws::Utils::Json::JsonView jsonValue)
LifecyclePolicyDetailExclusionRulesAmis & AddTagMap(const Aws::String &key, const Aws::String &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