AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GroupingRecommendation.h
1
6#pragma once
7#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
8#include <aws/resiliencehub/model/GroupingRecommendationConfidenceLevel.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/resiliencehub/model/GroupingAppComponent.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/resiliencehub/model/GroupingRecommendationRejectionReason.h>
14#include <aws/resiliencehub/model/GroupingRecommendationStatusType.h>
15#include <aws/resiliencehub/model/GroupingResource.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace ResilienceHub
29{
30namespace Model
31{
32
39 {
40 public:
41 AWS_RESILIENCEHUB_API GroupingRecommendation();
42 AWS_RESILIENCEHUB_API GroupingRecommendation(Aws::Utils::Json::JsonView jsonValue);
44 AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
52 inline const GroupingRecommendationConfidenceLevel& GetConfidenceLevel() const{ return m_confidenceLevel; }
53 inline bool ConfidenceLevelHasBeenSet() const { return m_confidenceLevelHasBeenSet; }
54 inline void SetConfidenceLevel(const GroupingRecommendationConfidenceLevel& value) { m_confidenceLevelHasBeenSet = true; m_confidenceLevel = value; }
55 inline void SetConfidenceLevel(GroupingRecommendationConfidenceLevel&& value) { m_confidenceLevelHasBeenSet = true; m_confidenceLevel = std::move(value); }
59
61
64 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
65 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
66 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
67 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
68 inline GroupingRecommendation& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
69 inline GroupingRecommendation& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
71
73
77 inline const GroupingAppComponent& GetGroupingAppComponent() const{ return m_groupingAppComponent; }
78 inline bool GroupingAppComponentHasBeenSet() const { return m_groupingAppComponentHasBeenSet; }
79 inline void SetGroupingAppComponent(const GroupingAppComponent& value) { m_groupingAppComponentHasBeenSet = true; m_groupingAppComponent = value; }
80 inline void SetGroupingAppComponent(GroupingAppComponent&& value) { m_groupingAppComponentHasBeenSet = true; m_groupingAppComponent = std::move(value); }
84
86
90 inline const Aws::String& GetGroupingRecommendationId() const{ return m_groupingRecommendationId; }
91 inline bool GroupingRecommendationIdHasBeenSet() const { return m_groupingRecommendationIdHasBeenSet; }
92 inline void SetGroupingRecommendationId(const Aws::String& value) { m_groupingRecommendationIdHasBeenSet = true; m_groupingRecommendationId = value; }
93 inline void SetGroupingRecommendationId(Aws::String&& value) { m_groupingRecommendationIdHasBeenSet = true; m_groupingRecommendationId = std::move(value); }
94 inline void SetGroupingRecommendationId(const char* value) { m_groupingRecommendationIdHasBeenSet = true; m_groupingRecommendationId.assign(value); }
97 inline GroupingRecommendation& WithGroupingRecommendationId(const char* value) { SetGroupingRecommendationId(value); return *this;}
99
101
105 inline const Aws::Vector<Aws::String>& GetRecommendationReasons() const{ return m_recommendationReasons; }
106 inline bool RecommendationReasonsHasBeenSet() const { return m_recommendationReasonsHasBeenSet; }
107 inline void SetRecommendationReasons(const Aws::Vector<Aws::String>& value) { m_recommendationReasonsHasBeenSet = true; m_recommendationReasons = value; }
108 inline void SetRecommendationReasons(Aws::Vector<Aws::String>&& value) { m_recommendationReasonsHasBeenSet = true; m_recommendationReasons = std::move(value); }
111 inline GroupingRecommendation& AddRecommendationReasons(const Aws::String& value) { m_recommendationReasonsHasBeenSet = true; m_recommendationReasons.push_back(value); return *this; }
112 inline GroupingRecommendation& AddRecommendationReasons(Aws::String&& value) { m_recommendationReasonsHasBeenSet = true; m_recommendationReasons.push_back(std::move(value)); return *this; }
113 inline GroupingRecommendation& AddRecommendationReasons(const char* value) { m_recommendationReasonsHasBeenSet = true; m_recommendationReasons.push_back(value); return *this; }
115
117
121 inline const GroupingRecommendationRejectionReason& GetRejectionReason() const{ return m_rejectionReason; }
122 inline bool RejectionReasonHasBeenSet() const { return m_rejectionReasonHasBeenSet; }
123 inline void SetRejectionReason(const GroupingRecommendationRejectionReason& value) { m_rejectionReasonHasBeenSet = true; m_rejectionReason = value; }
124 inline void SetRejectionReason(GroupingRecommendationRejectionReason&& value) { m_rejectionReasonHasBeenSet = true; m_rejectionReason = std::move(value); }
128
130
133 inline const Aws::Vector<GroupingResource>& GetResources() const{ return m_resources; }
134 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
135 inline void SetResources(const Aws::Vector<GroupingResource>& value) { m_resourcesHasBeenSet = true; m_resources = value; }
136 inline void SetResources(Aws::Vector<GroupingResource>&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); }
138 inline GroupingRecommendation& WithResources(Aws::Vector<GroupingResource>&& value) { SetResources(std::move(value)); return *this;}
139 inline GroupingRecommendation& AddResources(const GroupingResource& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
140 inline GroupingRecommendation& AddResources(GroupingResource&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(value)); return *this; }
142
144
147 inline double GetScore() const{ return m_score; }
148 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
149 inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; }
150 inline GroupingRecommendation& WithScore(double value) { SetScore(value); return *this;}
152
154
157 inline const GroupingRecommendationStatusType& GetStatus() const{ return m_status; }
158 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
159 inline void SetStatus(const GroupingRecommendationStatusType& value) { m_statusHasBeenSet = true; m_status = value; }
160 inline void SetStatus(GroupingRecommendationStatusType&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
162 inline GroupingRecommendation& WithStatus(GroupingRecommendationStatusType&& value) { SetStatus(std::move(value)); return *this;}
164 private:
165
167 bool m_confidenceLevelHasBeenSet = false;
168
169 Aws::Utils::DateTime m_creationTime;
170 bool m_creationTimeHasBeenSet = false;
171
172 GroupingAppComponent m_groupingAppComponent;
173 bool m_groupingAppComponentHasBeenSet = false;
174
175 Aws::String m_groupingRecommendationId;
176 bool m_groupingRecommendationIdHasBeenSet = false;
177
178 Aws::Vector<Aws::String> m_recommendationReasons;
179 bool m_recommendationReasonsHasBeenSet = false;
180
182 bool m_rejectionReasonHasBeenSet = false;
183
185 bool m_resourcesHasBeenSet = false;
186
187 double m_score;
188 bool m_scoreHasBeenSet = false;
189
191 bool m_statusHasBeenSet = false;
192 };
193
194} // namespace Model
195} // namespace ResilienceHub
196} // namespace Aws
void SetRecommendationReasons(const Aws::Vector< Aws::String > &value)
AWS_RESILIENCEHUB_API GroupingRecommendation & operator=(Aws::Utils::Json::JsonView jsonValue)
GroupingRecommendation & AddResources(const GroupingResource &value)
void SetGroupingAppComponent(const GroupingAppComponent &value)
GroupingRecommendation & WithResources(const Aws::Vector< GroupingResource > &value)
GroupingRecommendation & WithConfidenceLevel(GroupingRecommendationConfidenceLevel &&value)
void SetStatus(GroupingRecommendationStatusType &&value)
GroupingRecommendation & WithRecommendationReasons(const Aws::Vector< Aws::String > &value)
GroupingRecommendation & WithGroupingRecommendationId(const char *value)
GroupingRecommendation & WithGroupingAppComponent(GroupingAppComponent &&value)
GroupingRecommendation & WithRecommendationReasons(Aws::Vector< Aws::String > &&value)
GroupingRecommendation & WithResources(Aws::Vector< GroupingResource > &&value)
GroupingRecommendation & WithGroupingAppComponent(const GroupingAppComponent &value)
GroupingRecommendation & WithGroupingRecommendationId(const Aws::String &value)
void SetStatus(const GroupingRecommendationStatusType &value)
GroupingRecommendation & WithCreationTime(const Aws::Utils::DateTime &value)
GroupingRecommendation & AddRecommendationReasons(Aws::String &&value)
const GroupingRecommendationRejectionReason & GetRejectionReason() const
GroupingRecommendation & WithConfidenceLevel(const GroupingRecommendationConfidenceLevel &value)
const GroupingRecommendationStatusType & GetStatus() const
GroupingRecommendation & AddRecommendationReasons(const Aws::String &value)
void SetResources(const Aws::Vector< GroupingResource > &value)
GroupingRecommendation & WithRejectionReason(const GroupingRecommendationRejectionReason &value)
GroupingRecommendation & WithStatus(GroupingRecommendationStatusType &&value)
void SetRecommendationReasons(Aws::Vector< Aws::String > &&value)
void SetCreationTime(const Aws::Utils::DateTime &value)
const GroupingAppComponent & GetGroupingAppComponent() const
GroupingRecommendation & AddResources(GroupingResource &&value)
void SetRejectionReason(const GroupingRecommendationRejectionReason &value)
const GroupingRecommendationConfidenceLevel & GetConfidenceLevel() const
void SetResources(Aws::Vector< GroupingResource > &&value)
void SetConfidenceLevel(GroupingRecommendationConfidenceLevel &&value)
GroupingRecommendation & AddRecommendationReasons(const char *value)
const Aws::Vector< GroupingResource > & GetResources() const
GroupingRecommendation & WithCreationTime(Aws::Utils::DateTime &&value)
GroupingRecommendation & WithRejectionReason(GroupingRecommendationRejectionReason &&value)
GroupingRecommendation & WithGroupingRecommendationId(Aws::String &&value)
void SetGroupingAppComponent(GroupingAppComponent &&value)
const Aws::Vector< Aws::String > & GetRecommendationReasons() const
const Aws::Utils::DateTime & GetCreationTime() const
GroupingRecommendation & WithStatus(const GroupingRecommendationStatusType &value)
AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const
GroupingRecommendation & WithScore(double value)
void SetConfidenceLevel(const GroupingRecommendationConfidenceLevel &value)
AWS_RESILIENCEHUB_API GroupingRecommendation(Aws::Utils::Json::JsonView jsonValue)
void SetRejectionReason(GroupingRecommendationRejectionReason &&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