AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Recommendation.h
1
6#pragma once
7#include <aws/devops-guru/DevOpsGuru_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/devops-guru/model/RecommendationRelatedEvent.h>
11#include <aws/devops-guru/model/RecommendationRelatedAnomaly.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace DevOpsGuru
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_DEVOPSGURU_API Recommendation() = default;
39 AWS_DEVOPSGURU_API Recommendation(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DEVOPSGURU_API Recommendation& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetDescription() const { return m_description; }
49 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
50 template<typename DescriptionT = Aws::String>
51 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
52 template<typename DescriptionT = Aws::String>
53 Recommendation& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
55
57
60 inline const Aws::String& GetLink() const { return m_link; }
61 inline bool LinkHasBeenSet() const { return m_linkHasBeenSet; }
62 template<typename LinkT = Aws::String>
63 void SetLink(LinkT&& value) { m_linkHasBeenSet = true; m_link = std::forward<LinkT>(value); }
64 template<typename LinkT = Aws::String>
65 Recommendation& WithLink(LinkT&& value) { SetLink(std::forward<LinkT>(value)); return *this;}
67
69
72 inline const Aws::String& GetName() const { return m_name; }
73 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
74 template<typename NameT = Aws::String>
75 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
76 template<typename NameT = Aws::String>
77 Recommendation& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
79
81
84 inline const Aws::String& GetReason() const { return m_reason; }
85 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
86 template<typename ReasonT = Aws::String>
87 void SetReason(ReasonT&& value) { m_reasonHasBeenSet = true; m_reason = std::forward<ReasonT>(value); }
88 template<typename ReasonT = Aws::String>
89 Recommendation& WithReason(ReasonT&& value) { SetReason(std::forward<ReasonT>(value)); return *this;}
91
93
97 inline const Aws::Vector<RecommendationRelatedEvent>& GetRelatedEvents() const { return m_relatedEvents; }
98 inline bool RelatedEventsHasBeenSet() const { return m_relatedEventsHasBeenSet; }
99 template<typename RelatedEventsT = Aws::Vector<RecommendationRelatedEvent>>
100 void SetRelatedEvents(RelatedEventsT&& value) { m_relatedEventsHasBeenSet = true; m_relatedEvents = std::forward<RelatedEventsT>(value); }
101 template<typename RelatedEventsT = Aws::Vector<RecommendationRelatedEvent>>
102 Recommendation& WithRelatedEvents(RelatedEventsT&& value) { SetRelatedEvents(std::forward<RelatedEventsT>(value)); return *this;}
103 template<typename RelatedEventsT = RecommendationRelatedEvent>
104 Recommendation& AddRelatedEvents(RelatedEventsT&& value) { m_relatedEventsHasBeenSet = true; m_relatedEvents.emplace_back(std::forward<RelatedEventsT>(value)); return *this; }
106
108
112 inline const Aws::Vector<RecommendationRelatedAnomaly>& GetRelatedAnomalies() const { return m_relatedAnomalies; }
113 inline bool RelatedAnomaliesHasBeenSet() const { return m_relatedAnomaliesHasBeenSet; }
114 template<typename RelatedAnomaliesT = Aws::Vector<RecommendationRelatedAnomaly>>
115 void SetRelatedAnomalies(RelatedAnomaliesT&& value) { m_relatedAnomaliesHasBeenSet = true; m_relatedAnomalies = std::forward<RelatedAnomaliesT>(value); }
116 template<typename RelatedAnomaliesT = Aws::Vector<RecommendationRelatedAnomaly>>
117 Recommendation& WithRelatedAnomalies(RelatedAnomaliesT&& value) { SetRelatedAnomalies(std::forward<RelatedAnomaliesT>(value)); return *this;}
118 template<typename RelatedAnomaliesT = RecommendationRelatedAnomaly>
119 Recommendation& AddRelatedAnomalies(RelatedAnomaliesT&& value) { m_relatedAnomaliesHasBeenSet = true; m_relatedAnomalies.emplace_back(std::forward<RelatedAnomaliesT>(value)); return *this; }
121
123
126 inline const Aws::String& GetCategory() const { return m_category; }
127 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
128 template<typename CategoryT = Aws::String>
129 void SetCategory(CategoryT&& value) { m_categoryHasBeenSet = true; m_category = std::forward<CategoryT>(value); }
130 template<typename CategoryT = Aws::String>
131 Recommendation& WithCategory(CategoryT&& value) { SetCategory(std::forward<CategoryT>(value)); return *this;}
133 private:
134
135 Aws::String m_description;
136 bool m_descriptionHasBeenSet = false;
137
138 Aws::String m_link;
139 bool m_linkHasBeenSet = false;
140
141 Aws::String m_name;
142 bool m_nameHasBeenSet = false;
143
144 Aws::String m_reason;
145 bool m_reasonHasBeenSet = false;
146
148 bool m_relatedEventsHasBeenSet = false;
149
151 bool m_relatedAnomaliesHasBeenSet = false;
152
153 Aws::String m_category;
154 bool m_categoryHasBeenSet = false;
155 };
156
157} // namespace Model
158} // namespace DevOpsGuru
159} // namespace Aws
AWS_DEVOPSGURU_API Recommendation()=default
const Aws::String & GetLink() const
const Aws::String & GetCategory() const
const Aws::Vector< RecommendationRelatedEvent > & GetRelatedEvents() const
AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDescription(DescriptionT &&value)
const Aws::String & GetName() const
Recommendation & WithDescription(DescriptionT &&value)
Recommendation & AddRelatedEvents(RelatedEventsT &&value)
Recommendation & WithLink(LinkT &&value)
Recommendation & WithReason(ReasonT &&value)
AWS_DEVOPSGURU_API Recommendation(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetReason() const
Recommendation & WithRelatedEvents(RelatedEventsT &&value)
void SetRelatedAnomalies(RelatedAnomaliesT &&value)
Recommendation & WithRelatedAnomalies(RelatedAnomaliesT &&value)
void SetRelatedEvents(RelatedEventsT &&value)
Recommendation & WithCategory(CategoryT &&value)
const Aws::String & GetDescription() const
const Aws::Vector< RecommendationRelatedAnomaly > & GetRelatedAnomalies() const
Recommendation & WithName(NameT &&value)
AWS_DEVOPSGURU_API Recommendation & operator=(Aws::Utils::Json::JsonView jsonValue)
Recommendation & AddRelatedAnomalies(RelatedAnomaliesT &&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