AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAppComponentNames(const Aws::Vector<Aws::String>& value) { m_appComponentNamesHasBeenSet = true; m_appComponentNames = value; }
53 inline void SetAppComponentNames(Aws::Vector<Aws::String>&& value) { m_appComponentNamesHasBeenSet = true; m_appComponentNames = std::move(value); }
56 inline AlarmRecommendation& AddAppComponentNames(const Aws::String& value) { m_appComponentNamesHasBeenSet = true; m_appComponentNames.push_back(value); return *this; }
57 inline AlarmRecommendation& AddAppComponentNames(Aws::String&& value) { m_appComponentNamesHasBeenSet = true; m_appComponentNames.push_back(std::move(value)); return *this; }
58 inline AlarmRecommendation& AddAppComponentNames(const char* value) { m_appComponentNamesHasBeenSet = true; m_appComponentNames.push_back(value); return *this; }
60
62
65 inline const Aws::String& GetDescription() const{ return m_description; }
66 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
67 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
68 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
69 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
70 inline AlarmRecommendation& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
71 inline AlarmRecommendation& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
72 inline AlarmRecommendation& WithDescription(const char* value) { SetDescription(value); return *this;}
74
76
79 inline const Aws::Vector<RecommendationItem>& GetItems() const{ return m_items; }
80 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
81 inline void SetItems(const Aws::Vector<RecommendationItem>& value) { m_itemsHasBeenSet = true; m_items = value; }
82 inline void SetItems(Aws::Vector<RecommendationItem>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
83 inline AlarmRecommendation& WithItems(const Aws::Vector<RecommendationItem>& value) { SetItems(value); return *this;}
84 inline AlarmRecommendation& WithItems(Aws::Vector<RecommendationItem>&& value) { SetItems(std::move(value)); return *this;}
85 inline AlarmRecommendation& AddItems(const RecommendationItem& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
86 inline AlarmRecommendation& AddItems(RecommendationItem&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; }
88
90
93 inline const Aws::String& GetName() const{ return m_name; }
94 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
95 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
96 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
97 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
98 inline AlarmRecommendation& WithName(const Aws::String& value) { SetName(value); return *this;}
99 inline AlarmRecommendation& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
100 inline AlarmRecommendation& WithName(const char* value) { SetName(value); return *this;}
102
104
107 inline const Aws::String& GetPrerequisite() const{ return m_prerequisite; }
108 inline bool PrerequisiteHasBeenSet() const { return m_prerequisiteHasBeenSet; }
109 inline void SetPrerequisite(const Aws::String& value) { m_prerequisiteHasBeenSet = true; m_prerequisite = value; }
110 inline void SetPrerequisite(Aws::String&& value) { m_prerequisiteHasBeenSet = true; m_prerequisite = std::move(value); }
111 inline void SetPrerequisite(const char* value) { m_prerequisiteHasBeenSet = true; m_prerequisite.assign(value); }
112 inline AlarmRecommendation& WithPrerequisite(const Aws::String& value) { SetPrerequisite(value); return *this;}
113 inline AlarmRecommendation& WithPrerequisite(Aws::String&& value) { SetPrerequisite(std::move(value)); return *this;}
114 inline AlarmRecommendation& WithPrerequisite(const char* value) { SetPrerequisite(value); return *this;}
116
118
121 inline const Aws::String& GetRecommendationId() const{ return m_recommendationId; }
122 inline bool RecommendationIdHasBeenSet() const { return m_recommendationIdHasBeenSet; }
123 inline void SetRecommendationId(const Aws::String& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = value; }
124 inline void SetRecommendationId(Aws::String&& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = std::move(value); }
125 inline void SetRecommendationId(const char* value) { m_recommendationIdHasBeenSet = true; m_recommendationId.assign(value); }
126 inline AlarmRecommendation& WithRecommendationId(const Aws::String& value) { SetRecommendationId(value); return *this;}
127 inline AlarmRecommendation& WithRecommendationId(Aws::String&& value) { SetRecommendationId(std::move(value)); return *this;}
128 inline AlarmRecommendation& WithRecommendationId(const char* value) { SetRecommendationId(value); return *this;}
130
132
135 inline const RecommendationStatus& GetRecommendationStatus() const{ return m_recommendationStatus; }
136 inline bool RecommendationStatusHasBeenSet() const { return m_recommendationStatusHasBeenSet; }
137 inline void SetRecommendationStatus(const RecommendationStatus& value) { m_recommendationStatusHasBeenSet = true; m_recommendationStatus = value; }
138 inline void SetRecommendationStatus(RecommendationStatus&& value) { m_recommendationStatusHasBeenSet = true; m_recommendationStatus = std::move(value); }
142
144
147 inline const Aws::String& GetReferenceId() const{ return m_referenceId; }
148 inline bool ReferenceIdHasBeenSet() const { return m_referenceIdHasBeenSet; }
149 inline void SetReferenceId(const Aws::String& value) { m_referenceIdHasBeenSet = true; m_referenceId = value; }
150 inline void SetReferenceId(Aws::String&& value) { m_referenceIdHasBeenSet = true; m_referenceId = std::move(value); }
151 inline void SetReferenceId(const char* value) { m_referenceIdHasBeenSet = true; m_referenceId.assign(value); }
152 inline AlarmRecommendation& WithReferenceId(const Aws::String& value) { SetReferenceId(value); return *this;}
153 inline AlarmRecommendation& WithReferenceId(Aws::String&& value) { SetReferenceId(std::move(value)); return *this;}
154 inline AlarmRecommendation& WithReferenceId(const char* value) { SetReferenceId(value); return *this;}
156
158
161 inline const AlarmType& GetType() const{ return m_type; }
162 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
163 inline void SetType(const AlarmType& value) { m_typeHasBeenSet = true; m_type = value; }
164 inline void SetType(AlarmType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
165 inline AlarmRecommendation& WithType(const AlarmType& value) { SetType(value); return *this;}
166 inline AlarmRecommendation& WithType(AlarmType&& value) { SetType(std::move(value)); return *this;}
168 private:
169
170 Aws::Vector<Aws::String> m_appComponentNames;
171 bool m_appComponentNamesHasBeenSet = false;
172
173 Aws::String m_description;
174 bool m_descriptionHasBeenSet = false;
175
177 bool m_itemsHasBeenSet = false;
178
179 Aws::String m_name;
180 bool m_nameHasBeenSet = false;
181
182 Aws::String m_prerequisite;
183 bool m_prerequisiteHasBeenSet = false;
184
185 Aws::String m_recommendationId;
186 bool m_recommendationIdHasBeenSet = false;
187
188 RecommendationStatus m_recommendationStatus;
189 bool m_recommendationStatusHasBeenSet = false;
190
191 Aws::String m_referenceId;
192 bool m_referenceIdHasBeenSet = false;
193
194 AlarmType m_type;
195 bool m_typeHasBeenSet = false;
196 };
197
198} // namespace Model
199} // namespace ResilienceHub
200} // namespace Aws
AlarmRecommendation & WithName(const char *value)
AlarmRecommendation & WithName(const Aws::String &value)
AlarmRecommendation & WithRecommendationId(const char *value)
AlarmRecommendation & WithName(Aws::String &&value)
AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAppComponentNames(const Aws::Vector< Aws::String > &value)
AlarmRecommendation & WithRecommendationStatus(const RecommendationStatus &value)
AlarmRecommendation & AddAppComponentNames(const Aws::String &value)
const Aws::Vector< Aws::String > & GetAppComponentNames() const
const RecommendationStatus & GetRecommendationStatus() const
AlarmRecommendation & WithReferenceId(const char *value)
AlarmRecommendation & WithItems(Aws::Vector< RecommendationItem > &&value)
AlarmRecommendation & WithRecommendationStatus(RecommendationStatus &&value)
AlarmRecommendation & WithAppComponentNames(const Aws::Vector< Aws::String > &value)
AlarmRecommendation & WithPrerequisite(Aws::String &&value)
void SetItems(Aws::Vector< RecommendationItem > &&value)
AlarmRecommendation & AddAppComponentNames(const char *value)
AlarmRecommendation & WithPrerequisite(const Aws::String &value)
AlarmRecommendation & AddItems(const RecommendationItem &value)
AlarmRecommendation & WithDescription(Aws::String &&value)
AlarmRecommendation & WithPrerequisite(const char *value)
void SetAppComponentNames(Aws::Vector< Aws::String > &&value)
AlarmRecommendation & WithAppComponentNames(Aws::Vector< Aws::String > &&value)
AlarmRecommendation & AddItems(RecommendationItem &&value)
AlarmRecommendation & WithType(AlarmType &&value)
AlarmRecommendation & WithRecommendationId(Aws::String &&value)
AlarmRecommendation & WithReferenceId(Aws::String &&value)
const Aws::Vector< RecommendationItem > & GetItems() const
AlarmRecommendation & WithRecommendationId(const Aws::String &value)
void SetItems(const Aws::Vector< RecommendationItem > &value)
AWS_RESILIENCEHUB_API AlarmRecommendation(Aws::Utils::Json::JsonView jsonValue)
AlarmRecommendation & WithReferenceId(const Aws::String &value)
void SetRecommendationStatus(const RecommendationStatus &value)
AWS_RESILIENCEHUB_API AlarmRecommendation & operator=(Aws::Utils::Json::JsonView jsonValue)
AlarmRecommendation & WithDescription(const char *value)
AlarmRecommendation & AddAppComponentNames(Aws::String &&value)
void SetRecommendationStatus(RecommendationStatus &&value)
AlarmRecommendation & WithDescription(const Aws::String &value)
AlarmRecommendation & WithItems(const Aws::Vector< RecommendationItem > &value)
AlarmRecommendation & WithType(const AlarmType &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