AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ProactiveInsight.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/devops-guru/DevOpsGuru_EXPORTS.h>
9#include <aws/devops-guru/model/InsightSeverity.h>
10#include <aws/devops-guru/model/InsightStatus.h>
11#include <aws/devops-guru/model/InsightTimeRange.h>
12#include <aws/devops-guru/model/PredictionTimeRange.h>
13#include <aws/devops-guru/model/ResourceCollection.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace DevOpsGuru {
25namespace Model {
26
34 public:
35 AWS_DEVOPSGURU_API ProactiveInsight() = default;
36 AWS_DEVOPSGURU_API ProactiveInsight(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetId() const { return m_id; }
45 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
46 template <typename IdT = Aws::String>
47 void SetId(IdT&& value) {
48 m_idHasBeenSet = true;
49 m_id = std::forward<IdT>(value);
50 }
51 template <typename IdT = Aws::String>
52 ProactiveInsight& WithId(IdT&& value) {
53 SetId(std::forward<IdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetName() const { return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 template <typename NameT = Aws::String>
65 void SetName(NameT&& value) {
66 m_nameHasBeenSet = true;
67 m_name = std::forward<NameT>(value);
68 }
69 template <typename NameT = Aws::String>
70 ProactiveInsight& WithName(NameT&& value) {
71 SetName(std::forward<NameT>(value));
72 return *this;
73 }
75
77
82 inline InsightSeverity GetSeverity() const { return m_severity; }
83 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
84 inline void SetSeverity(InsightSeverity value) {
85 m_severityHasBeenSet = true;
86 m_severity = value;
87 }
89 SetSeverity(value);
90 return *this;
91 }
93
95
98 inline InsightStatus GetStatus() const { return m_status; }
99 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
100 inline void SetStatus(InsightStatus value) {
101 m_statusHasBeenSet = true;
102 m_status = value;
103 }
105 SetStatus(value);
106 return *this;
107 }
109
111
112 inline const InsightTimeRange& GetInsightTimeRange() const { return m_insightTimeRange; }
113 inline bool InsightTimeRangeHasBeenSet() const { return m_insightTimeRangeHasBeenSet; }
114 template <typename InsightTimeRangeT = InsightTimeRange>
115 void SetInsightTimeRange(InsightTimeRangeT&& value) {
116 m_insightTimeRangeHasBeenSet = true;
117 m_insightTimeRange = std::forward<InsightTimeRangeT>(value);
118 }
119 template <typename InsightTimeRangeT = InsightTimeRange>
120 ProactiveInsight& WithInsightTimeRange(InsightTimeRangeT&& value) {
121 SetInsightTimeRange(std::forward<InsightTimeRangeT>(value));
122 return *this;
123 }
125
127
128 inline const PredictionTimeRange& GetPredictionTimeRange() const { return m_predictionTimeRange; }
129 inline bool PredictionTimeRangeHasBeenSet() const { return m_predictionTimeRangeHasBeenSet; }
130 template <typename PredictionTimeRangeT = PredictionTimeRange>
131 void SetPredictionTimeRange(PredictionTimeRangeT&& value) {
132 m_predictionTimeRangeHasBeenSet = true;
133 m_predictionTimeRange = std::forward<PredictionTimeRangeT>(value);
134 }
135 template <typename PredictionTimeRangeT = PredictionTimeRange>
136 ProactiveInsight& WithPredictionTimeRange(PredictionTimeRangeT&& value) {
137 SetPredictionTimeRange(std::forward<PredictionTimeRangeT>(value));
138 return *this;
139 }
141
143
144 inline const ResourceCollection& GetResourceCollection() const { return m_resourceCollection; }
145 inline bool ResourceCollectionHasBeenSet() const { return m_resourceCollectionHasBeenSet; }
146 template <typename ResourceCollectionT = ResourceCollection>
147 void SetResourceCollection(ResourceCollectionT&& value) {
148 m_resourceCollectionHasBeenSet = true;
149 m_resourceCollection = std::forward<ResourceCollectionT>(value);
150 }
151 template <typename ResourceCollectionT = ResourceCollection>
152 ProactiveInsight& WithResourceCollection(ResourceCollectionT&& value) {
153 SetResourceCollection(std::forward<ResourceCollectionT>(value));
154 return *this;
155 }
157
159
164 inline const Aws::String& GetSsmOpsItemId() const { return m_ssmOpsItemId; }
165 inline bool SsmOpsItemIdHasBeenSet() const { return m_ssmOpsItemIdHasBeenSet; }
166 template <typename SsmOpsItemIdT = Aws::String>
167 void SetSsmOpsItemId(SsmOpsItemIdT&& value) {
168 m_ssmOpsItemIdHasBeenSet = true;
169 m_ssmOpsItemId = std::forward<SsmOpsItemIdT>(value);
170 }
171 template <typename SsmOpsItemIdT = Aws::String>
172 ProactiveInsight& WithSsmOpsItemId(SsmOpsItemIdT&& value) {
173 SetSsmOpsItemId(std::forward<SsmOpsItemIdT>(value));
174 return *this;
175 }
177
179
182 inline const Aws::String& GetDescription() const { return m_description; }
183 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
184 template <typename DescriptionT = Aws::String>
185 void SetDescription(DescriptionT&& value) {
186 m_descriptionHasBeenSet = true;
187 m_description = std::forward<DescriptionT>(value);
188 }
189 template <typename DescriptionT = Aws::String>
190 ProactiveInsight& WithDescription(DescriptionT&& value) {
191 SetDescription(std::forward<DescriptionT>(value));
192 return *this;
193 }
195 private:
196 Aws::String m_id;
197
198 Aws::String m_name;
199
201
203
204 InsightTimeRange m_insightTimeRange;
205
206 PredictionTimeRange m_predictionTimeRange;
207
208 ResourceCollection m_resourceCollection;
209
210 Aws::String m_ssmOpsItemId;
211
212 Aws::String m_description;
213 bool m_idHasBeenSet = false;
214 bool m_nameHasBeenSet = false;
215 bool m_severityHasBeenSet = false;
216 bool m_statusHasBeenSet = false;
217 bool m_insightTimeRangeHasBeenSet = false;
218 bool m_predictionTimeRangeHasBeenSet = false;
219 bool m_resourceCollectionHasBeenSet = false;
220 bool m_ssmOpsItemIdHasBeenSet = false;
221 bool m_descriptionHasBeenSet = false;
222};
223
224} // namespace Model
225} // namespace DevOpsGuru
226} // namespace Aws
AWS_DEVOPSGURU_API ProactiveInsight()=default
AWS_DEVOPSGURU_API ProactiveInsight(Aws::Utils::Json::JsonView jsonValue)
ProactiveInsight & WithStatus(InsightStatus value)
ProactiveInsight & WithSeverity(InsightSeverity value)
AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const
void SetResourceCollection(ResourceCollectionT &&value)
ProactiveInsight & WithDescription(DescriptionT &&value)
ProactiveInsight & WithSsmOpsItemId(SsmOpsItemIdT &&value)
const Aws::String & GetSsmOpsItemId() const
const Aws::String & GetDescription() const
const ResourceCollection & GetResourceCollection() const
ProactiveInsight & WithPredictionTimeRange(PredictionTimeRangeT &&value)
void SetSeverity(InsightSeverity value)
void SetSsmOpsItemId(SsmOpsItemIdT &&value)
AWS_DEVOPSGURU_API ProactiveInsight & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetInsightTimeRange(InsightTimeRangeT &&value)
void SetDescription(DescriptionT &&value)
const PredictionTimeRange & GetPredictionTimeRange() const
void SetPredictionTimeRange(PredictionTimeRangeT &&value)
const InsightTimeRange & GetInsightTimeRange() const
ProactiveInsight & WithResourceCollection(ResourceCollectionT &&value)
ProactiveInsight & WithInsightTimeRange(InsightTimeRangeT &&value)
ProactiveInsight & WithName(NameT &&value)
ProactiveInsight & WithId(IdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue