AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ProactiveInsightSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/devops-guru/DevOpsGuru_EXPORTS.h>
10#include <aws/devops-guru/model/InsightSeverity.h>
11#include <aws/devops-guru/model/InsightStatus.h>
12#include <aws/devops-guru/model/InsightTimeRange.h>
13#include <aws/devops-guru/model/PredictionTimeRange.h>
14#include <aws/devops-guru/model/ResourceCollection.h>
15#include <aws/devops-guru/model/ServiceCollection.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace DevOpsGuru {
27namespace Model {
28
36 public:
37 AWS_DEVOPSGURU_API ProactiveInsightSummary() = default;
40 AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Aws::String& GetId() const { return m_id; }
47 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
48 template <typename IdT = Aws::String>
49 void SetId(IdT&& value) {
50 m_idHasBeenSet = true;
51 m_id = std::forward<IdT>(value);
52 }
53 template <typename IdT = Aws::String>
55 SetId(std::forward<IdT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetName() const { return m_name; }
65 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
66 template <typename NameT = Aws::String>
67 void SetName(NameT&& value) {
68 m_nameHasBeenSet = true;
69 m_name = std::forward<NameT>(value);
70 }
71 template <typename NameT = Aws::String>
73 SetName(std::forward<NameT>(value));
74 return *this;
75 }
77
79
84 inline InsightSeverity GetSeverity() const { return m_severity; }
85 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
86 inline void SetSeverity(InsightSeverity value) {
87 m_severityHasBeenSet = true;
88 m_severity = value;
89 }
91 SetSeverity(value);
92 return *this;
93 }
95
97
100 inline InsightStatus GetStatus() const { return m_status; }
101 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
102 inline void SetStatus(InsightStatus value) {
103 m_statusHasBeenSet = true;
104 m_status = value;
105 }
107 SetStatus(value);
108 return *this;
109 }
111
113
114 inline const InsightTimeRange& GetInsightTimeRange() const { return m_insightTimeRange; }
115 inline bool InsightTimeRangeHasBeenSet() const { return m_insightTimeRangeHasBeenSet; }
116 template <typename InsightTimeRangeT = InsightTimeRange>
117 void SetInsightTimeRange(InsightTimeRangeT&& value) {
118 m_insightTimeRangeHasBeenSet = true;
119 m_insightTimeRange = std::forward<InsightTimeRangeT>(value);
120 }
121 template <typename InsightTimeRangeT = InsightTimeRange>
122 ProactiveInsightSummary& WithInsightTimeRange(InsightTimeRangeT&& value) {
123 SetInsightTimeRange(std::forward<InsightTimeRangeT>(value));
124 return *this;
125 }
127
129
130 inline const PredictionTimeRange& GetPredictionTimeRange() const { return m_predictionTimeRange; }
131 inline bool PredictionTimeRangeHasBeenSet() const { return m_predictionTimeRangeHasBeenSet; }
132 template <typename PredictionTimeRangeT = PredictionTimeRange>
133 void SetPredictionTimeRange(PredictionTimeRangeT&& value) {
134 m_predictionTimeRangeHasBeenSet = true;
135 m_predictionTimeRange = std::forward<PredictionTimeRangeT>(value);
136 }
137 template <typename PredictionTimeRangeT = PredictionTimeRange>
138 ProactiveInsightSummary& WithPredictionTimeRange(PredictionTimeRangeT&& value) {
139 SetPredictionTimeRange(std::forward<PredictionTimeRangeT>(value));
140 return *this;
141 }
143
145
146 inline const ResourceCollection& GetResourceCollection() const { return m_resourceCollection; }
147 inline bool ResourceCollectionHasBeenSet() const { return m_resourceCollectionHasBeenSet; }
148 template <typename ResourceCollectionT = ResourceCollection>
149 void SetResourceCollection(ResourceCollectionT&& value) {
150 m_resourceCollectionHasBeenSet = true;
151 m_resourceCollection = std::forward<ResourceCollectionT>(value);
152 }
153 template <typename ResourceCollectionT = ResourceCollection>
154 ProactiveInsightSummary& WithResourceCollection(ResourceCollectionT&& value) {
155 SetResourceCollection(std::forward<ResourceCollectionT>(value));
156 return *this;
157 }
159
161
164 inline const ServiceCollection& GetServiceCollection() const { return m_serviceCollection; }
165 inline bool ServiceCollectionHasBeenSet() const { return m_serviceCollectionHasBeenSet; }
166 template <typename ServiceCollectionT = ServiceCollection>
167 void SetServiceCollection(ServiceCollectionT&& value) {
168 m_serviceCollectionHasBeenSet = true;
169 m_serviceCollection = std::forward<ServiceCollectionT>(value);
170 }
171 template <typename ServiceCollectionT = ServiceCollection>
172 ProactiveInsightSummary& WithServiceCollection(ServiceCollectionT&& value) {
173 SetServiceCollection(std::forward<ServiceCollectionT>(value));
174 return *this;
175 }
177
179
183 inline const Aws::Vector<Aws::String>& GetAssociatedResourceArns() const { return m_associatedResourceArns; }
184 inline bool AssociatedResourceArnsHasBeenSet() const { return m_associatedResourceArnsHasBeenSet; }
185 template <typename AssociatedResourceArnsT = Aws::Vector<Aws::String>>
186 void SetAssociatedResourceArns(AssociatedResourceArnsT&& value) {
187 m_associatedResourceArnsHasBeenSet = true;
188 m_associatedResourceArns = std::forward<AssociatedResourceArnsT>(value);
189 }
190 template <typename AssociatedResourceArnsT = Aws::Vector<Aws::String>>
191 ProactiveInsightSummary& WithAssociatedResourceArns(AssociatedResourceArnsT&& value) {
192 SetAssociatedResourceArns(std::forward<AssociatedResourceArnsT>(value));
193 return *this;
194 }
195 template <typename AssociatedResourceArnsT = Aws::String>
196 ProactiveInsightSummary& AddAssociatedResourceArns(AssociatedResourceArnsT&& value) {
197 m_associatedResourceArnsHasBeenSet = true;
198 m_associatedResourceArns.emplace_back(std::forward<AssociatedResourceArnsT>(value));
199 return *this;
200 }
202 private:
203 Aws::String m_id;
204
205 Aws::String m_name;
206
208
210
211 InsightTimeRange m_insightTimeRange;
212
213 PredictionTimeRange m_predictionTimeRange;
214
215 ResourceCollection m_resourceCollection;
216
217 ServiceCollection m_serviceCollection;
218
219 Aws::Vector<Aws::String> m_associatedResourceArns;
220 bool m_idHasBeenSet = false;
221 bool m_nameHasBeenSet = false;
222 bool m_severityHasBeenSet = false;
223 bool m_statusHasBeenSet = false;
224 bool m_insightTimeRangeHasBeenSet = false;
225 bool m_predictionTimeRangeHasBeenSet = false;
226 bool m_resourceCollectionHasBeenSet = false;
227 bool m_serviceCollectionHasBeenSet = false;
228 bool m_associatedResourceArnsHasBeenSet = false;
229};
230
231} // namespace Model
232} // namespace DevOpsGuru
233} // namespace Aws
ProactiveInsightSummary & WithResourceCollection(ResourceCollectionT &&value)
ProactiveInsightSummary & WithAssociatedResourceArns(AssociatedResourceArnsT &&value)
AWS_DEVOPSGURU_API ProactiveInsightSummary(Aws::Utils::Json::JsonView jsonValue)
void SetResourceCollection(ResourceCollectionT &&value)
ProactiveInsightSummary & WithSeverity(InsightSeverity value)
ProactiveInsightSummary & WithPredictionTimeRange(PredictionTimeRangeT &&value)
ProactiveInsightSummary & AddAssociatedResourceArns(AssociatedResourceArnsT &&value)
ProactiveInsightSummary & WithName(NameT &&value)
ProactiveInsightSummary & WithId(IdT &&value)
const PredictionTimeRange & GetPredictionTimeRange() const
AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAssociatedResourceArns(AssociatedResourceArnsT &&value)
const Aws::Vector< Aws::String > & GetAssociatedResourceArns() const
ProactiveInsightSummary & WithInsightTimeRange(InsightTimeRangeT &&value)
void SetPredictionTimeRange(PredictionTimeRangeT &&value)
const ResourceCollection & GetResourceCollection() const
AWS_DEVOPSGURU_API ProactiveInsightSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DEVOPSGURU_API ProactiveInsightSummary()=default
ProactiveInsightSummary & WithServiceCollection(ServiceCollectionT &&value)
ProactiveInsightSummary & WithStatus(InsightStatus 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