AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SopRecommendation.h
1
6#pragma once
7#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/resiliencehub/model/RecommendationStatus.h>
11#include <aws/resiliencehub/model/SopServiceType.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 SopRecommendation();
40 AWS_RESILIENCEHUB_API SopRecommendation(Aws::Utils::Json::JsonView jsonValue);
41 AWS_RESILIENCEHUB_API SopRecommendation& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetAppComponentName() const{ return m_appComponentName; }
50 inline bool AppComponentNameHasBeenSet() const { return m_appComponentNameHasBeenSet; }
51 inline void SetAppComponentName(const Aws::String& value) { m_appComponentNameHasBeenSet = true; m_appComponentName = value; }
52 inline void SetAppComponentName(Aws::String&& value) { m_appComponentNameHasBeenSet = true; m_appComponentName = std::move(value); }
53 inline void SetAppComponentName(const char* value) { m_appComponentNameHasBeenSet = true; m_appComponentName.assign(value); }
54 inline SopRecommendation& WithAppComponentName(const Aws::String& value) { SetAppComponentName(value); return *this;}
55 inline SopRecommendation& WithAppComponentName(Aws::String&& value) { SetAppComponentName(std::move(value)); return *this;}
56 inline SopRecommendation& WithAppComponentName(const char* value) { SetAppComponentName(value); return *this;}
58
60
63 inline const Aws::String& GetDescription() const{ return m_description; }
64 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
65 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
66 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
67 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
68 inline SopRecommendation& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
69 inline SopRecommendation& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
70 inline SopRecommendation& WithDescription(const char* value) { SetDescription(value); return *this;}
72
74
77 inline const Aws::Vector<RecommendationItem>& GetItems() const{ return m_items; }
78 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
79 inline void SetItems(const Aws::Vector<RecommendationItem>& value) { m_itemsHasBeenSet = true; m_items = value; }
80 inline void SetItems(Aws::Vector<RecommendationItem>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
81 inline SopRecommendation& WithItems(const Aws::Vector<RecommendationItem>& value) { SetItems(value); return *this;}
82 inline SopRecommendation& WithItems(Aws::Vector<RecommendationItem>&& value) { SetItems(std::move(value)); return *this;}
83 inline SopRecommendation& AddItems(const RecommendationItem& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
84 inline SopRecommendation& AddItems(RecommendationItem&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; }
86
88
91 inline const Aws::String& GetName() const{ return m_name; }
92 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
93 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
94 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
95 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
96 inline SopRecommendation& WithName(const Aws::String& value) { SetName(value); return *this;}
97 inline SopRecommendation& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
98 inline SopRecommendation& WithName(const char* value) { SetName(value); return *this;}
100
102
105 inline const Aws::String& GetPrerequisite() const{ return m_prerequisite; }
106 inline bool PrerequisiteHasBeenSet() const { return m_prerequisiteHasBeenSet; }
107 inline void SetPrerequisite(const Aws::String& value) { m_prerequisiteHasBeenSet = true; m_prerequisite = value; }
108 inline void SetPrerequisite(Aws::String&& value) { m_prerequisiteHasBeenSet = true; m_prerequisite = std::move(value); }
109 inline void SetPrerequisite(const char* value) { m_prerequisiteHasBeenSet = true; m_prerequisite.assign(value); }
110 inline SopRecommendation& WithPrerequisite(const Aws::String& value) { SetPrerequisite(value); return *this;}
111 inline SopRecommendation& WithPrerequisite(Aws::String&& value) { SetPrerequisite(std::move(value)); return *this;}
112 inline SopRecommendation& WithPrerequisite(const char* value) { SetPrerequisite(value); return *this;}
114
116
119 inline const Aws::String& GetRecommendationId() const{ return m_recommendationId; }
120 inline bool RecommendationIdHasBeenSet() const { return m_recommendationIdHasBeenSet; }
121 inline void SetRecommendationId(const Aws::String& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = value; }
122 inline void SetRecommendationId(Aws::String&& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = std::move(value); }
123 inline void SetRecommendationId(const char* value) { m_recommendationIdHasBeenSet = true; m_recommendationId.assign(value); }
124 inline SopRecommendation& WithRecommendationId(const Aws::String& value) { SetRecommendationId(value); return *this;}
125 inline SopRecommendation& WithRecommendationId(Aws::String&& value) { SetRecommendationId(std::move(value)); return *this;}
126 inline SopRecommendation& WithRecommendationId(const char* value) { SetRecommendationId(value); return *this;}
128
130
133 inline const RecommendationStatus& GetRecommendationStatus() const{ return m_recommendationStatus; }
134 inline bool RecommendationStatusHasBeenSet() const { return m_recommendationStatusHasBeenSet; }
135 inline void SetRecommendationStatus(const RecommendationStatus& value) { m_recommendationStatusHasBeenSet = true; m_recommendationStatus = value; }
136 inline void SetRecommendationStatus(RecommendationStatus&& value) { m_recommendationStatusHasBeenSet = true; m_recommendationStatus = std::move(value); }
140
142
145 inline const Aws::String& GetReferenceId() const{ return m_referenceId; }
146 inline bool ReferenceIdHasBeenSet() const { return m_referenceIdHasBeenSet; }
147 inline void SetReferenceId(const Aws::String& value) { m_referenceIdHasBeenSet = true; m_referenceId = value; }
148 inline void SetReferenceId(Aws::String&& value) { m_referenceIdHasBeenSet = true; m_referenceId = std::move(value); }
149 inline void SetReferenceId(const char* value) { m_referenceIdHasBeenSet = true; m_referenceId.assign(value); }
150 inline SopRecommendation& WithReferenceId(const Aws::String& value) { SetReferenceId(value); return *this;}
151 inline SopRecommendation& WithReferenceId(Aws::String&& value) { SetReferenceId(std::move(value)); return *this;}
152 inline SopRecommendation& WithReferenceId(const char* value) { SetReferenceId(value); return *this;}
154
156
159 inline const SopServiceType& GetServiceType() const{ return m_serviceType; }
160 inline bool ServiceTypeHasBeenSet() const { return m_serviceTypeHasBeenSet; }
161 inline void SetServiceType(const SopServiceType& value) { m_serviceTypeHasBeenSet = true; m_serviceType = value; }
162 inline void SetServiceType(SopServiceType&& value) { m_serviceTypeHasBeenSet = true; m_serviceType = std::move(value); }
163 inline SopRecommendation& WithServiceType(const SopServiceType& value) { SetServiceType(value); return *this;}
164 inline SopRecommendation& WithServiceType(SopServiceType&& value) { SetServiceType(std::move(value)); return *this;}
166 private:
167
168 Aws::String m_appComponentName;
169 bool m_appComponentNameHasBeenSet = false;
170
171 Aws::String m_description;
172 bool m_descriptionHasBeenSet = false;
173
175 bool m_itemsHasBeenSet = false;
176
177 Aws::String m_name;
178 bool m_nameHasBeenSet = false;
179
180 Aws::String m_prerequisite;
181 bool m_prerequisiteHasBeenSet = false;
182
183 Aws::String m_recommendationId;
184 bool m_recommendationIdHasBeenSet = false;
185
186 RecommendationStatus m_recommendationStatus;
187 bool m_recommendationStatusHasBeenSet = false;
188
189 Aws::String m_referenceId;
190 bool m_referenceIdHasBeenSet = false;
191
192 SopServiceType m_serviceType;
193 bool m_serviceTypeHasBeenSet = false;
194 };
195
196} // namespace Model
197} // namespace ResilienceHub
198} // namespace Aws
const Aws::Vector< RecommendationItem > & GetItems() const
SopRecommendation & WithAppComponentName(const char *value)
SopRecommendation & WithDescription(Aws::String &&value)
SopRecommendation & WithRecommendationId(const char *value)
SopRecommendation & WithPrerequisite(Aws::String &&value)
SopRecommendation & WithDescription(const char *value)
AWS_RESILIENCEHUB_API SopRecommendation & operator=(Aws::Utils::Json::JsonView jsonValue)
SopRecommendation & WithServiceType(SopServiceType &&value)
SopRecommendation & WithReferenceId(Aws::String &&value)
const SopServiceType & GetServiceType() const
const Aws::String & GetAppComponentName() const
AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const
SopRecommendation & WithName(const char *value)
void SetRecommendationStatus(RecommendationStatus &&value)
void SetDescription(const Aws::String &value)
void SetRecommendationId(const Aws::String &value)
const RecommendationStatus & GetRecommendationStatus() const
SopRecommendation & WithAppComponentName(const Aws::String &value)
SopRecommendation & WithServiceType(const SopServiceType &value)
SopRecommendation & WithPrerequisite(const char *value)
SopRecommendation & WithRecommendationId(Aws::String &&value)
void SetItems(const Aws::Vector< RecommendationItem > &value)
SopRecommendation & WithPrerequisite(const Aws::String &value)
void SetReferenceId(const Aws::String &value)
void SetPrerequisite(const Aws::String &value)
SopRecommendation & WithReferenceId(const char *value)
SopRecommendation & AddItems(const RecommendationItem &value)
SopRecommendation & WithRecommendationId(const Aws::String &value)
SopRecommendation & AddItems(RecommendationItem &&value)
SopRecommendation & WithItems(Aws::Vector< RecommendationItem > &&value)
void SetRecommendationStatus(const RecommendationStatus &value)
void SetAppComponentName(const Aws::String &value)
AWS_RESILIENCEHUB_API SopRecommendation(Aws::Utils::Json::JsonView jsonValue)
SopRecommendation & WithItems(const Aws::Vector< RecommendationItem > &value)
SopRecommendation & WithReferenceId(const Aws::String &value)
SopRecommendation & WithRecommendationStatus(RecommendationStatus &&value)
void SetItems(Aws::Vector< RecommendationItem > &&value)
void SetServiceType(const SopServiceType &value)
SopRecommendation & WithAppComponentName(Aws::String &&value)
SopRecommendation & WithName(const Aws::String &value)
SopRecommendation & WithRecommendationStatus(const RecommendationStatus &value)
SopRecommendation & WithName(Aws::String &&value)
SopRecommendation & WithDescription(const Aws::String &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