AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ProactiveInsight.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/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#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace DevOpsGuru
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_DEVOPSGURU_API ProactiveInsight() = default;
41 AWS_DEVOPSGURU_API ProactiveInsight(Aws::Utils::Json::JsonView jsonValue);
43 AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetId() const { return m_id; }
51 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
52 template<typename IdT = Aws::String>
53 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
54 template<typename IdT = Aws::String>
55 ProactiveInsight& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
66 template<typename NameT = Aws::String>
67 ProactiveInsight& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
69
71
76 inline InsightSeverity GetSeverity() const { return m_severity; }
77 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
78 inline void SetSeverity(InsightSeverity value) { m_severityHasBeenSet = true; m_severity = value; }
79 inline ProactiveInsight& WithSeverity(InsightSeverity value) { SetSeverity(value); return *this;}
81
83
86 inline InsightStatus GetStatus() const { return m_status; }
87 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
88 inline void SetStatus(InsightStatus value) { m_statusHasBeenSet = true; m_status = value; }
89 inline ProactiveInsight& WithStatus(InsightStatus value) { SetStatus(value); return *this;}
91
93
94 inline const InsightTimeRange& GetInsightTimeRange() const { return m_insightTimeRange; }
95 inline bool InsightTimeRangeHasBeenSet() const { return m_insightTimeRangeHasBeenSet; }
96 template<typename InsightTimeRangeT = InsightTimeRange>
97 void SetInsightTimeRange(InsightTimeRangeT&& value) { m_insightTimeRangeHasBeenSet = true; m_insightTimeRange = std::forward<InsightTimeRangeT>(value); }
98 template<typename InsightTimeRangeT = InsightTimeRange>
99 ProactiveInsight& WithInsightTimeRange(InsightTimeRangeT&& value) { SetInsightTimeRange(std::forward<InsightTimeRangeT>(value)); return *this;}
101
103
104 inline const PredictionTimeRange& GetPredictionTimeRange() const { return m_predictionTimeRange; }
105 inline bool PredictionTimeRangeHasBeenSet() const { return m_predictionTimeRangeHasBeenSet; }
106 template<typename PredictionTimeRangeT = PredictionTimeRange>
107 void SetPredictionTimeRange(PredictionTimeRangeT&& value) { m_predictionTimeRangeHasBeenSet = true; m_predictionTimeRange = std::forward<PredictionTimeRangeT>(value); }
108 template<typename PredictionTimeRangeT = PredictionTimeRange>
109 ProactiveInsight& WithPredictionTimeRange(PredictionTimeRangeT&& value) { SetPredictionTimeRange(std::forward<PredictionTimeRangeT>(value)); return *this;}
111
113
114 inline const ResourceCollection& GetResourceCollection() const { return m_resourceCollection; }
115 inline bool ResourceCollectionHasBeenSet() const { return m_resourceCollectionHasBeenSet; }
116 template<typename ResourceCollectionT = ResourceCollection>
117 void SetResourceCollection(ResourceCollectionT&& value) { m_resourceCollectionHasBeenSet = true; m_resourceCollection = std::forward<ResourceCollectionT>(value); }
118 template<typename ResourceCollectionT = ResourceCollection>
119 ProactiveInsight& WithResourceCollection(ResourceCollectionT&& value) { SetResourceCollection(std::forward<ResourceCollectionT>(value)); return *this;}
121
123
128 inline const Aws::String& GetSsmOpsItemId() const { return m_ssmOpsItemId; }
129 inline bool SsmOpsItemIdHasBeenSet() const { return m_ssmOpsItemIdHasBeenSet; }
130 template<typename SsmOpsItemIdT = Aws::String>
131 void SetSsmOpsItemId(SsmOpsItemIdT&& value) { m_ssmOpsItemIdHasBeenSet = true; m_ssmOpsItemId = std::forward<SsmOpsItemIdT>(value); }
132 template<typename SsmOpsItemIdT = Aws::String>
133 ProactiveInsight& WithSsmOpsItemId(SsmOpsItemIdT&& value) { SetSsmOpsItemId(std::forward<SsmOpsItemIdT>(value)); return *this;}
135
137
140 inline const Aws::String& GetDescription() const { return m_description; }
141 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
142 template<typename DescriptionT = Aws::String>
143 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
144 template<typename DescriptionT = Aws::String>
145 ProactiveInsight& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
147 private:
148
149 Aws::String m_id;
150 bool m_idHasBeenSet = false;
151
152 Aws::String m_name;
153 bool m_nameHasBeenSet = false;
154
156 bool m_severityHasBeenSet = false;
157
159 bool m_statusHasBeenSet = false;
160
161 InsightTimeRange m_insightTimeRange;
162 bool m_insightTimeRangeHasBeenSet = false;
163
164 PredictionTimeRange m_predictionTimeRange;
165 bool m_predictionTimeRangeHasBeenSet = false;
166
167 ResourceCollection m_resourceCollection;
168 bool m_resourceCollectionHasBeenSet = false;
169
170 Aws::String m_ssmOpsItemId;
171 bool m_ssmOpsItemIdHasBeenSet = false;
172
173 Aws::String m_description;
174 bool m_descriptionHasBeenSet = false;
175 };
176
177} // namespace Model
178} // namespace DevOpsGuru
179} // 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