AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename AppComponentNameT = Aws::String>
52 void SetAppComponentName(AppComponentNameT&& value) { m_appComponentNameHasBeenSet = true; m_appComponentName = std::forward<AppComponentNameT>(value); }
53 template<typename AppComponentNameT = Aws::String>
54 SopRecommendation& WithAppComponentName(AppComponentNameT&& value) { SetAppComponentName(std::forward<AppComponentNameT>(value)); return *this;}
56
58
61 inline const Aws::String& GetDescription() const { return m_description; }
62 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
63 template<typename DescriptionT = Aws::String>
64 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
65 template<typename DescriptionT = Aws::String>
66 SopRecommendation& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
68
70
73 inline const Aws::Vector<RecommendationItem>& GetItems() const { return m_items; }
74 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
75 template<typename ItemsT = Aws::Vector<RecommendationItem>>
76 void SetItems(ItemsT&& value) { m_itemsHasBeenSet = true; m_items = std::forward<ItemsT>(value); }
77 template<typename ItemsT = Aws::Vector<RecommendationItem>>
78 SopRecommendation& WithItems(ItemsT&& value) { SetItems(std::forward<ItemsT>(value)); return *this;}
79 template<typename ItemsT = RecommendationItem>
80 SopRecommendation& AddItems(ItemsT&& value) { m_itemsHasBeenSet = true; m_items.emplace_back(std::forward<ItemsT>(value)); return *this; }
82
84
87 inline const Aws::String& GetName() const { return m_name; }
88 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
89 template<typename NameT = Aws::String>
90 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
91 template<typename NameT = Aws::String>
92 SopRecommendation& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
94
96
99 inline const Aws::String& GetPrerequisite() const { return m_prerequisite; }
100 inline bool PrerequisiteHasBeenSet() const { return m_prerequisiteHasBeenSet; }
101 template<typename PrerequisiteT = Aws::String>
102 void SetPrerequisite(PrerequisiteT&& value) { m_prerequisiteHasBeenSet = true; m_prerequisite = std::forward<PrerequisiteT>(value); }
103 template<typename PrerequisiteT = Aws::String>
104 SopRecommendation& WithPrerequisite(PrerequisiteT&& value) { SetPrerequisite(std::forward<PrerequisiteT>(value)); return *this;}
106
108
111 inline const Aws::String& GetRecommendationId() const { return m_recommendationId; }
112 inline bool RecommendationIdHasBeenSet() const { return m_recommendationIdHasBeenSet; }
113 template<typename RecommendationIdT = Aws::String>
114 void SetRecommendationId(RecommendationIdT&& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = std::forward<RecommendationIdT>(value); }
115 template<typename RecommendationIdT = Aws::String>
116 SopRecommendation& WithRecommendationId(RecommendationIdT&& value) { SetRecommendationId(std::forward<RecommendationIdT>(value)); return *this;}
118
120
123 inline RecommendationStatus GetRecommendationStatus() const { return m_recommendationStatus; }
124 inline bool RecommendationStatusHasBeenSet() const { return m_recommendationStatusHasBeenSet; }
125 inline void SetRecommendationStatus(RecommendationStatus value) { m_recommendationStatusHasBeenSet = true; m_recommendationStatus = value; }
128
130
133 inline const Aws::String& GetReferenceId() const { return m_referenceId; }
134 inline bool ReferenceIdHasBeenSet() const { return m_referenceIdHasBeenSet; }
135 template<typename ReferenceIdT = Aws::String>
136 void SetReferenceId(ReferenceIdT&& value) { m_referenceIdHasBeenSet = true; m_referenceId = std::forward<ReferenceIdT>(value); }
137 template<typename ReferenceIdT = Aws::String>
138 SopRecommendation& WithReferenceId(ReferenceIdT&& value) { SetReferenceId(std::forward<ReferenceIdT>(value)); return *this;}
140
142
145 inline SopServiceType GetServiceType() const { return m_serviceType; }
146 inline bool ServiceTypeHasBeenSet() const { return m_serviceTypeHasBeenSet; }
147 inline void SetServiceType(SopServiceType value) { m_serviceTypeHasBeenSet = true; m_serviceType = value; }
148 inline SopRecommendation& WithServiceType(SopServiceType value) { SetServiceType(value); return *this;}
150 private:
151
152 Aws::String m_appComponentName;
153 bool m_appComponentNameHasBeenSet = false;
154
155 Aws::String m_description;
156 bool m_descriptionHasBeenSet = false;
157
159 bool m_itemsHasBeenSet = false;
160
161 Aws::String m_name;
162 bool m_nameHasBeenSet = false;
163
164 Aws::String m_prerequisite;
165 bool m_prerequisiteHasBeenSet = false;
166
167 Aws::String m_recommendationId;
168 bool m_recommendationIdHasBeenSet = false;
169
171 bool m_recommendationStatusHasBeenSet = false;
172
173 Aws::String m_referenceId;
174 bool m_referenceIdHasBeenSet = false;
175
177 bool m_serviceTypeHasBeenSet = false;
178 };
179
180} // namespace Model
181} // namespace ResilienceHub
182} // namespace Aws
const Aws::Vector< RecommendationItem > & GetItems() const
AWS_RESILIENCEHUB_API SopRecommendation & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_RESILIENCEHUB_API SopRecommendation()=default
void SetAppComponentName(AppComponentNameT &&value)
const Aws::String & GetAppComponentName() const
SopRecommendation & WithServiceType(SopServiceType value)
void SetRecommendationId(RecommendationIdT &&value)
RecommendationStatus GetRecommendationStatus() const
SopRecommendation & WithReferenceId(ReferenceIdT &&value)
AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const
SopRecommendation & WithRecommendationId(RecommendationIdT &&value)
SopRecommendation & WithAppComponentName(AppComponentNameT &&value)
SopRecommendation & WithDescription(DescriptionT &&value)
void SetRecommendationStatus(RecommendationStatus value)
SopRecommendation & AddItems(ItemsT &&value)
SopRecommendation & WithPrerequisite(PrerequisiteT &&value)
SopRecommendation & WithName(NameT &&value)
SopRecommendation & WithRecommendationStatus(RecommendationStatus value)
AWS_RESILIENCEHUB_API SopRecommendation(Aws::Utils::Json::JsonView jsonValue)
SopRecommendation & WithItems(ItemsT &&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