AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
51 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
52 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
53 inline Recommendation& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
54 inline Recommendation& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
55 inline Recommendation& WithDescription(const char* value) { SetDescription(value); return *this;}
57
59
62 inline const Aws::String& GetLink() const{ return m_link; }
63 inline bool LinkHasBeenSet() const { return m_linkHasBeenSet; }
64 inline void SetLink(const Aws::String& value) { m_linkHasBeenSet = true; m_link = value; }
65 inline void SetLink(Aws::String&& value) { m_linkHasBeenSet = true; m_link = std::move(value); }
66 inline void SetLink(const char* value) { m_linkHasBeenSet = true; m_link.assign(value); }
67 inline Recommendation& WithLink(const Aws::String& value) { SetLink(value); return *this;}
68 inline Recommendation& WithLink(Aws::String&& value) { SetLink(std::move(value)); return *this;}
69 inline Recommendation& WithLink(const char* value) { SetLink(value); return *this;}
71
73
76 inline const Aws::String& GetName() const{ return m_name; }
77 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
78 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
79 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
80 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
81 inline Recommendation& WithName(const Aws::String& value) { SetName(value); return *this;}
82 inline Recommendation& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
83 inline Recommendation& WithName(const char* value) { SetName(value); return *this;}
85
87
90 inline const Aws::String& GetReason() const{ return m_reason; }
91 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
92 inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
93 inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
94 inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
95 inline Recommendation& WithReason(const Aws::String& value) { SetReason(value); return *this;}
96 inline Recommendation& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
97 inline Recommendation& WithReason(const char* value) { SetReason(value); return *this;}
99
101
105 inline const Aws::Vector<RecommendationRelatedEvent>& GetRelatedEvents() const{ return m_relatedEvents; }
106 inline bool RelatedEventsHasBeenSet() const { return m_relatedEventsHasBeenSet; }
107 inline void SetRelatedEvents(const Aws::Vector<RecommendationRelatedEvent>& value) { m_relatedEventsHasBeenSet = true; m_relatedEvents = value; }
108 inline void SetRelatedEvents(Aws::Vector<RecommendationRelatedEvent>&& value) { m_relatedEventsHasBeenSet = true; m_relatedEvents = std::move(value); }
111 inline Recommendation& AddRelatedEvents(const RecommendationRelatedEvent& value) { m_relatedEventsHasBeenSet = true; m_relatedEvents.push_back(value); return *this; }
112 inline Recommendation& AddRelatedEvents(RecommendationRelatedEvent&& value) { m_relatedEventsHasBeenSet = true; m_relatedEvents.push_back(std::move(value)); return *this; }
114
116
120 inline const Aws::Vector<RecommendationRelatedAnomaly>& GetRelatedAnomalies() const{ return m_relatedAnomalies; }
121 inline bool RelatedAnomaliesHasBeenSet() const { return m_relatedAnomaliesHasBeenSet; }
122 inline void SetRelatedAnomalies(const Aws::Vector<RecommendationRelatedAnomaly>& value) { m_relatedAnomaliesHasBeenSet = true; m_relatedAnomalies = value; }
123 inline void SetRelatedAnomalies(Aws::Vector<RecommendationRelatedAnomaly>&& value) { m_relatedAnomaliesHasBeenSet = true; m_relatedAnomalies = std::move(value); }
126 inline Recommendation& AddRelatedAnomalies(const RecommendationRelatedAnomaly& value) { m_relatedAnomaliesHasBeenSet = true; m_relatedAnomalies.push_back(value); return *this; }
127 inline Recommendation& AddRelatedAnomalies(RecommendationRelatedAnomaly&& value) { m_relatedAnomaliesHasBeenSet = true; m_relatedAnomalies.push_back(std::move(value)); return *this; }
129
131
134 inline const Aws::String& GetCategory() const{ return m_category; }
135 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
136 inline void SetCategory(const Aws::String& value) { m_categoryHasBeenSet = true; m_category = value; }
137 inline void SetCategory(Aws::String&& value) { m_categoryHasBeenSet = true; m_category = std::move(value); }
138 inline void SetCategory(const char* value) { m_categoryHasBeenSet = true; m_category.assign(value); }
139 inline Recommendation& WithCategory(const Aws::String& value) { SetCategory(value); return *this;}
140 inline Recommendation& WithCategory(Aws::String&& value) { SetCategory(std::move(value)); return *this;}
141 inline Recommendation& WithCategory(const char* value) { SetCategory(value); return *this;}
143 private:
144
145 Aws::String m_description;
146 bool m_descriptionHasBeenSet = false;
147
148 Aws::String m_link;
149 bool m_linkHasBeenSet = false;
150
151 Aws::String m_name;
152 bool m_nameHasBeenSet = false;
153
154 Aws::String m_reason;
155 bool m_reasonHasBeenSet = false;
156
158 bool m_relatedEventsHasBeenSet = false;
159
161 bool m_relatedAnomaliesHasBeenSet = false;
162
163 Aws::String m_category;
164 bool m_categoryHasBeenSet = false;
165 };
166
167} // namespace Model
168} // namespace DevOpsGuru
169} // namespace Aws
Recommendation & WithLink(const char *value)
Recommendation & AddRelatedEvents(RecommendationRelatedEvent &&value)
Recommendation & WithDescription(const char *value)
Recommendation & WithReason(const Aws::String &value)
void SetName(Aws::String &&value)
const Aws::String & GetLink() const
const Aws::String & GetCategory() const
Recommendation & WithRelatedEvents(const Aws::Vector< RecommendationRelatedEvent > &value)
const Aws::Vector< RecommendationRelatedEvent > & GetRelatedEvents() const
AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const
Recommendation & AddRelatedAnomalies(const RecommendationRelatedAnomaly &value)
void SetReason(const Aws::String &value)
const Aws::String & GetName() const
Recommendation & WithDescription(const Aws::String &value)
void SetLink(const Aws::String &value)
void SetLink(Aws::String &&value)
void SetDescription(const Aws::String &value)
Recommendation & WithLink(Aws::String &&value)
void SetRelatedEvents(Aws::Vector< RecommendationRelatedEvent > &&value)
Recommendation & AddRelatedAnomalies(RecommendationRelatedAnomaly &&value)
Recommendation & WithRelatedEvents(Aws::Vector< RecommendationRelatedEvent > &&value)
Recommendation & WithReason(Aws::String &&value)
AWS_DEVOPSGURU_API Recommendation(Aws::Utils::Json::JsonView jsonValue)
Recommendation & WithName(Aws::String &&value)
const Aws::String & GetReason() const
Recommendation & WithLink(const Aws::String &value)
void SetReason(Aws::String &&value)
Recommendation & WithName(const char *value)
void SetRelatedAnomalies(const Aws::Vector< RecommendationRelatedAnomaly > &value)
Recommendation & WithCategory(const Aws::String &value)
const Aws::String & GetDescription() const
void SetCategory(const Aws::String &value)
const Aws::Vector< RecommendationRelatedAnomaly > & GetRelatedAnomalies() const
Recommendation & WithCategory(Aws::String &&value)
void SetRelatedEvents(const Aws::Vector< RecommendationRelatedEvent > &value)
Recommendation & WithRelatedAnomalies(Aws::Vector< RecommendationRelatedAnomaly > &&value)
void SetDescription(Aws::String &&value)
Recommendation & WithRelatedAnomalies(const Aws::Vector< RecommendationRelatedAnomaly > &value)
Recommendation & WithCategory(const char *value)
void SetRelatedAnomalies(Aws::Vector< RecommendationRelatedAnomaly > &&value)
void SetName(const Aws::String &value)
void SetDescription(const char *value)
AWS_DEVOPSGURU_API Recommendation & operator=(Aws::Utils::Json::JsonView jsonValue)
Recommendation & WithName(const Aws::String &value)
Recommendation & AddRelatedEvents(const RecommendationRelatedEvent &value)
Recommendation & WithReason(const char *value)
void SetCategory(Aws::String &&value)
Recommendation & WithDescription(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