AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ProactiveInsightSummary.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 <aws/devops-guru/model/ServiceCollection.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace DevOpsGuru
29{
30namespace Model
31{
32
40 {
41 public:
42 AWS_DEVOPSGURU_API ProactiveInsightSummary() = default;
45 AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::String& GetId() const { return m_id; }
53 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
54 template<typename IdT = Aws::String>
55 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
56 template<typename IdT = Aws::String>
57 ProactiveInsightSummary& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
68 template<typename NameT = Aws::String>
69 ProactiveInsightSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
71
73
78 inline InsightSeverity GetSeverity() const { return m_severity; }
79 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
80 inline void SetSeverity(InsightSeverity value) { m_severityHasBeenSet = true; m_severity = value; }
81 inline ProactiveInsightSummary& WithSeverity(InsightSeverity value) { SetSeverity(value); return *this;}
83
85
88 inline InsightStatus GetStatus() const { return m_status; }
89 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
90 inline void SetStatus(InsightStatus value) { m_statusHasBeenSet = true; m_status = value; }
91 inline ProactiveInsightSummary& WithStatus(InsightStatus value) { SetStatus(value); return *this;}
93
95
96 inline const InsightTimeRange& GetInsightTimeRange() const { return m_insightTimeRange; }
97 inline bool InsightTimeRangeHasBeenSet() const { return m_insightTimeRangeHasBeenSet; }
98 template<typename InsightTimeRangeT = InsightTimeRange>
99 void SetInsightTimeRange(InsightTimeRangeT&& value) { m_insightTimeRangeHasBeenSet = true; m_insightTimeRange = std::forward<InsightTimeRangeT>(value); }
100 template<typename InsightTimeRangeT = InsightTimeRange>
101 ProactiveInsightSummary& WithInsightTimeRange(InsightTimeRangeT&& value) { SetInsightTimeRange(std::forward<InsightTimeRangeT>(value)); return *this;}
103
105
106 inline const PredictionTimeRange& GetPredictionTimeRange() const { return m_predictionTimeRange; }
107 inline bool PredictionTimeRangeHasBeenSet() const { return m_predictionTimeRangeHasBeenSet; }
108 template<typename PredictionTimeRangeT = PredictionTimeRange>
109 void SetPredictionTimeRange(PredictionTimeRangeT&& value) { m_predictionTimeRangeHasBeenSet = true; m_predictionTimeRange = std::forward<PredictionTimeRangeT>(value); }
110 template<typename PredictionTimeRangeT = PredictionTimeRange>
111 ProactiveInsightSummary& WithPredictionTimeRange(PredictionTimeRangeT&& value) { SetPredictionTimeRange(std::forward<PredictionTimeRangeT>(value)); return *this;}
113
115
116 inline const ResourceCollection& GetResourceCollection() const { return m_resourceCollection; }
117 inline bool ResourceCollectionHasBeenSet() const { return m_resourceCollectionHasBeenSet; }
118 template<typename ResourceCollectionT = ResourceCollection>
119 void SetResourceCollection(ResourceCollectionT&& value) { m_resourceCollectionHasBeenSet = true; m_resourceCollection = std::forward<ResourceCollectionT>(value); }
120 template<typename ResourceCollectionT = ResourceCollection>
121 ProactiveInsightSummary& WithResourceCollection(ResourceCollectionT&& value) { SetResourceCollection(std::forward<ResourceCollectionT>(value)); return *this;}
123
125
128 inline const ServiceCollection& GetServiceCollection() const { return m_serviceCollection; }
129 inline bool ServiceCollectionHasBeenSet() const { return m_serviceCollectionHasBeenSet; }
130 template<typename ServiceCollectionT = ServiceCollection>
131 void SetServiceCollection(ServiceCollectionT&& value) { m_serviceCollectionHasBeenSet = true; m_serviceCollection = std::forward<ServiceCollectionT>(value); }
132 template<typename ServiceCollectionT = ServiceCollection>
133 ProactiveInsightSummary& WithServiceCollection(ServiceCollectionT&& value) { SetServiceCollection(std::forward<ServiceCollectionT>(value)); return *this;}
135
137
141 inline const Aws::Vector<Aws::String>& GetAssociatedResourceArns() const { return m_associatedResourceArns; }
142 inline bool AssociatedResourceArnsHasBeenSet() const { return m_associatedResourceArnsHasBeenSet; }
143 template<typename AssociatedResourceArnsT = Aws::Vector<Aws::String>>
144 void SetAssociatedResourceArns(AssociatedResourceArnsT&& value) { m_associatedResourceArnsHasBeenSet = true; m_associatedResourceArns = std::forward<AssociatedResourceArnsT>(value); }
145 template<typename AssociatedResourceArnsT = Aws::Vector<Aws::String>>
146 ProactiveInsightSummary& WithAssociatedResourceArns(AssociatedResourceArnsT&& value) { SetAssociatedResourceArns(std::forward<AssociatedResourceArnsT>(value)); return *this;}
147 template<typename AssociatedResourceArnsT = Aws::String>
148 ProactiveInsightSummary& AddAssociatedResourceArns(AssociatedResourceArnsT&& value) { m_associatedResourceArnsHasBeenSet = true; m_associatedResourceArns.emplace_back(std::forward<AssociatedResourceArnsT>(value)); return *this; }
150 private:
151
152 Aws::String m_id;
153 bool m_idHasBeenSet = false;
154
155 Aws::String m_name;
156 bool m_nameHasBeenSet = false;
157
159 bool m_severityHasBeenSet = false;
160
162 bool m_statusHasBeenSet = false;
163
164 InsightTimeRange m_insightTimeRange;
165 bool m_insightTimeRangeHasBeenSet = false;
166
167 PredictionTimeRange m_predictionTimeRange;
168 bool m_predictionTimeRangeHasBeenSet = false;
169
170 ResourceCollection m_resourceCollection;
171 bool m_resourceCollectionHasBeenSet = false;
172
173 ServiceCollection m_serviceCollection;
174 bool m_serviceCollectionHasBeenSet = false;
175
176 Aws::Vector<Aws::String> m_associatedResourceArns;
177 bool m_associatedResourceArnsHasBeenSet = false;
178 };
179
180} // namespace Model
181} // namespace DevOpsGuru
182} // 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