AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AlarmRecommendation.h
1
6#pragma once
7#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/resiliencehub/model/RecommendationStatus.h>
11#include <aws/resiliencehub/model/AlarmType.h>
12#include <aws/resiliencehub/model/RecommendationItem.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace ResilienceHub
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_RESILIENCEHUB_API AlarmRecommendation() = default;
40 AWS_RESILIENCEHUB_API AlarmRecommendation(Aws::Utils::Json::JsonView jsonValue);
41 AWS_RESILIENCEHUB_API AlarmRecommendation& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Aws::Vector<Aws::String>& GetAppComponentNames() const { return m_appComponentNames; }
51 inline bool AppComponentNamesHasBeenSet() const { return m_appComponentNamesHasBeenSet; }
52 template<typename AppComponentNamesT = Aws::Vector<Aws::String>>
53 void SetAppComponentNames(AppComponentNamesT&& value) { m_appComponentNamesHasBeenSet = true; m_appComponentNames = std::forward<AppComponentNamesT>(value); }
54 template<typename AppComponentNamesT = Aws::Vector<Aws::String>>
55 AlarmRecommendation& WithAppComponentNames(AppComponentNamesT&& value) { SetAppComponentNames(std::forward<AppComponentNamesT>(value)); return *this;}
56 template<typename AppComponentNamesT = Aws::String>
57 AlarmRecommendation& AddAppComponentNames(AppComponentNamesT&& value) { m_appComponentNamesHasBeenSet = true; m_appComponentNames.emplace_back(std::forward<AppComponentNamesT>(value)); return *this; }
59
61
64 inline const Aws::String& GetDescription() const { return m_description; }
65 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
66 template<typename DescriptionT = Aws::String>
67 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
68 template<typename DescriptionT = Aws::String>
69 AlarmRecommendation& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
71
73
76 inline const Aws::Vector<RecommendationItem>& GetItems() const { return m_items; }
77 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
78 template<typename ItemsT = Aws::Vector<RecommendationItem>>
79 void SetItems(ItemsT&& value) { m_itemsHasBeenSet = true; m_items = std::forward<ItemsT>(value); }
80 template<typename ItemsT = Aws::Vector<RecommendationItem>>
81 AlarmRecommendation& WithItems(ItemsT&& value) { SetItems(std::forward<ItemsT>(value)); return *this;}
82 template<typename ItemsT = RecommendationItem>
83 AlarmRecommendation& AddItems(ItemsT&& value) { m_itemsHasBeenSet = true; m_items.emplace_back(std::forward<ItemsT>(value)); return *this; }
85
87
90 inline const Aws::String& GetName() const { return m_name; }
91 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
92 template<typename NameT = Aws::String>
93 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
94 template<typename NameT = Aws::String>
95 AlarmRecommendation& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
97
99
102 inline const Aws::String& GetPrerequisite() const { return m_prerequisite; }
103 inline bool PrerequisiteHasBeenSet() const { return m_prerequisiteHasBeenSet; }
104 template<typename PrerequisiteT = Aws::String>
105 void SetPrerequisite(PrerequisiteT&& value) { m_prerequisiteHasBeenSet = true; m_prerequisite = std::forward<PrerequisiteT>(value); }
106 template<typename PrerequisiteT = Aws::String>
107 AlarmRecommendation& WithPrerequisite(PrerequisiteT&& value) { SetPrerequisite(std::forward<PrerequisiteT>(value)); return *this;}
109
111
114 inline const Aws::String& GetRecommendationId() const { return m_recommendationId; }
115 inline bool RecommendationIdHasBeenSet() const { return m_recommendationIdHasBeenSet; }
116 template<typename RecommendationIdT = Aws::String>
117 void SetRecommendationId(RecommendationIdT&& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = std::forward<RecommendationIdT>(value); }
118 template<typename RecommendationIdT = Aws::String>
119 AlarmRecommendation& WithRecommendationId(RecommendationIdT&& value) { SetRecommendationId(std::forward<RecommendationIdT>(value)); return *this;}
121
123
126 inline RecommendationStatus GetRecommendationStatus() const { return m_recommendationStatus; }
127 inline bool RecommendationStatusHasBeenSet() const { return m_recommendationStatusHasBeenSet; }
128 inline void SetRecommendationStatus(RecommendationStatus value) { m_recommendationStatusHasBeenSet = true; m_recommendationStatus = value; }
131
133
136 inline const Aws::String& GetReferenceId() const { return m_referenceId; }
137 inline bool ReferenceIdHasBeenSet() const { return m_referenceIdHasBeenSet; }
138 template<typename ReferenceIdT = Aws::String>
139 void SetReferenceId(ReferenceIdT&& value) { m_referenceIdHasBeenSet = true; m_referenceId = std::forward<ReferenceIdT>(value); }
140 template<typename ReferenceIdT = Aws::String>
141 AlarmRecommendation& WithReferenceId(ReferenceIdT&& value) { SetReferenceId(std::forward<ReferenceIdT>(value)); return *this;}
143
145
148 inline AlarmType GetType() const { return m_type; }
149 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
150 inline void SetType(AlarmType value) { m_typeHasBeenSet = true; m_type = value; }
151 inline AlarmRecommendation& WithType(AlarmType value) { SetType(value); return *this;}
153 private:
154
155 Aws::Vector<Aws::String> m_appComponentNames;
156 bool m_appComponentNamesHasBeenSet = false;
157
158 Aws::String m_description;
159 bool m_descriptionHasBeenSet = false;
160
162 bool m_itemsHasBeenSet = false;
163
164 Aws::String m_name;
165 bool m_nameHasBeenSet = false;
166
167 Aws::String m_prerequisite;
168 bool m_prerequisiteHasBeenSet = false;
169
170 Aws::String m_recommendationId;
171 bool m_recommendationIdHasBeenSet = false;
172
174 bool m_recommendationStatusHasBeenSet = false;
175
176 Aws::String m_referenceId;
177 bool m_referenceIdHasBeenSet = false;
178
180 bool m_typeHasBeenSet = false;
181 };
182
183} // namespace Model
184} // namespace ResilienceHub
185} // namespace Aws
void SetRecommendationStatus(RecommendationStatus value)
AlarmRecommendation & WithAppComponentNames(AppComponentNamesT &&value)
AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AlarmRecommendation & AddItems(ItemsT &&value)
AlarmRecommendation & AddAppComponentNames(AppComponentNamesT &&value)
const Aws::Vector< Aws::String > & GetAppComponentNames() const
AlarmRecommendation & WithType(AlarmType value)
AlarmRecommendation & WithRecommendationId(RecommendationIdT &&value)
AlarmRecommendation & WithReferenceId(ReferenceIdT &&value)
AWS_RESILIENCEHUB_API AlarmRecommendation()=default
AlarmRecommendation & WithDescription(DescriptionT &&value)
void SetRecommendationId(RecommendationIdT &&value)
AlarmRecommendation & WithName(NameT &&value)
AlarmRecommendation & WithItems(ItemsT &&value)
AlarmRecommendation & WithPrerequisite(PrerequisiteT &&value)
const Aws::Vector< RecommendationItem > & GetItems() const
AWS_RESILIENCEHUB_API AlarmRecommendation(Aws::Utils::Json::JsonView jsonValue)
AWS_RESILIENCEHUB_API AlarmRecommendation & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAppComponentNames(AppComponentNamesT &&value)
AlarmRecommendation & WithRecommendationStatus(RecommendationStatus value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue