AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
55 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
56 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
57 inline ProactiveInsightSummary& WithId(const Aws::String& value) { SetId(value); return *this;}
58 inline ProactiveInsightSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
59 inline ProactiveInsightSummary& WithId(const char* value) { SetId(value); return *this;}
61
63
66 inline const Aws::String& GetName() const{ return m_name; }
67 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
68 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
69 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
70 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
71 inline ProactiveInsightSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
72 inline ProactiveInsightSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
73 inline ProactiveInsightSummary& WithName(const char* value) { SetName(value); return *this;}
75
77
82 inline const InsightSeverity& GetSeverity() const{ return m_severity; }
83 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
84 inline void SetSeverity(const InsightSeverity& value) { m_severityHasBeenSet = true; m_severity = value; }
85 inline void SetSeverity(InsightSeverity&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); }
86 inline ProactiveInsightSummary& WithSeverity(const InsightSeverity& value) { SetSeverity(value); return *this;}
87 inline ProactiveInsightSummary& WithSeverity(InsightSeverity&& value) { SetSeverity(std::move(value)); return *this;}
89
91
94 inline const InsightStatus& GetStatus() const{ return m_status; }
95 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
96 inline void SetStatus(const InsightStatus& value) { m_statusHasBeenSet = true; m_status = value; }
97 inline void SetStatus(InsightStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
98 inline ProactiveInsightSummary& WithStatus(const InsightStatus& value) { SetStatus(value); return *this;}
99 inline ProactiveInsightSummary& WithStatus(InsightStatus&& value) { SetStatus(std::move(value)); return *this;}
101
103
104 inline const InsightTimeRange& GetInsightTimeRange() const{ return m_insightTimeRange; }
105 inline bool InsightTimeRangeHasBeenSet() const { return m_insightTimeRangeHasBeenSet; }
106 inline void SetInsightTimeRange(const InsightTimeRange& value) { m_insightTimeRangeHasBeenSet = true; m_insightTimeRange = value; }
107 inline void SetInsightTimeRange(InsightTimeRange&& value) { m_insightTimeRangeHasBeenSet = true; m_insightTimeRange = std::move(value); }
109 inline ProactiveInsightSummary& WithInsightTimeRange(InsightTimeRange&& value) { SetInsightTimeRange(std::move(value)); return *this;}
111
113
114 inline const PredictionTimeRange& GetPredictionTimeRange() const{ return m_predictionTimeRange; }
115 inline bool PredictionTimeRangeHasBeenSet() const { return m_predictionTimeRangeHasBeenSet; }
116 inline void SetPredictionTimeRange(const PredictionTimeRange& value) { m_predictionTimeRangeHasBeenSet = true; m_predictionTimeRange = value; }
117 inline void SetPredictionTimeRange(PredictionTimeRange&& value) { m_predictionTimeRangeHasBeenSet = true; m_predictionTimeRange = std::move(value); }
121
123
124 inline const ResourceCollection& GetResourceCollection() const{ return m_resourceCollection; }
125 inline bool ResourceCollectionHasBeenSet() const { return m_resourceCollectionHasBeenSet; }
126 inline void SetResourceCollection(const ResourceCollection& value) { m_resourceCollectionHasBeenSet = true; m_resourceCollection = value; }
127 inline void SetResourceCollection(ResourceCollection&& value) { m_resourceCollectionHasBeenSet = true; m_resourceCollection = std::move(value); }
131
133
136 inline const ServiceCollection& GetServiceCollection() const{ return m_serviceCollection; }
137 inline bool ServiceCollectionHasBeenSet() const { return m_serviceCollectionHasBeenSet; }
138 inline void SetServiceCollection(const ServiceCollection& value) { m_serviceCollectionHasBeenSet = true; m_serviceCollection = value; }
139 inline void SetServiceCollection(ServiceCollection&& value) { m_serviceCollectionHasBeenSet = true; m_serviceCollection = std::move(value); }
141 inline ProactiveInsightSummary& WithServiceCollection(ServiceCollection&& value) { SetServiceCollection(std::move(value)); return *this;}
143
145
149 inline const Aws::Vector<Aws::String>& GetAssociatedResourceArns() const{ return m_associatedResourceArns; }
150 inline bool AssociatedResourceArnsHasBeenSet() const { return m_associatedResourceArnsHasBeenSet; }
151 inline void SetAssociatedResourceArns(const Aws::Vector<Aws::String>& value) { m_associatedResourceArnsHasBeenSet = true; m_associatedResourceArns = value; }
152 inline void SetAssociatedResourceArns(Aws::Vector<Aws::String>&& value) { m_associatedResourceArnsHasBeenSet = true; m_associatedResourceArns = std::move(value); }
155 inline ProactiveInsightSummary& AddAssociatedResourceArns(const Aws::String& value) { m_associatedResourceArnsHasBeenSet = true; m_associatedResourceArns.push_back(value); return *this; }
156 inline ProactiveInsightSummary& AddAssociatedResourceArns(Aws::String&& value) { m_associatedResourceArnsHasBeenSet = true; m_associatedResourceArns.push_back(std::move(value)); return *this; }
157 inline ProactiveInsightSummary& AddAssociatedResourceArns(const char* value) { m_associatedResourceArnsHasBeenSet = true; m_associatedResourceArns.push_back(value); return *this; }
159 private:
160
161 Aws::String m_id;
162 bool m_idHasBeenSet = false;
163
164 Aws::String m_name;
165 bool m_nameHasBeenSet = false;
166
167 InsightSeverity m_severity;
168 bool m_severityHasBeenSet = false;
169
170 InsightStatus m_status;
171 bool m_statusHasBeenSet = false;
172
173 InsightTimeRange m_insightTimeRange;
174 bool m_insightTimeRangeHasBeenSet = false;
175
176 PredictionTimeRange m_predictionTimeRange;
177 bool m_predictionTimeRangeHasBeenSet = false;
178
179 ResourceCollection m_resourceCollection;
180 bool m_resourceCollectionHasBeenSet = false;
181
182 ServiceCollection m_serviceCollection;
183 bool m_serviceCollectionHasBeenSet = false;
184
185 Aws::Vector<Aws::String> m_associatedResourceArns;
186 bool m_associatedResourceArnsHasBeenSet = false;
187 };
188
189} // namespace Model
190} // namespace DevOpsGuru
191} // namespace Aws
AWS_DEVOPSGURU_API ProactiveInsightSummary(Aws::Utils::Json::JsonView jsonValue)
ProactiveInsightSummary & WithPredictionTimeRange(const PredictionTimeRange &value)
ProactiveInsightSummary & WithName(const Aws::String &value)
ProactiveInsightSummary & WithSeverity(const InsightSeverity &value)
ProactiveInsightSummary & WithInsightTimeRange(InsightTimeRange &&value)
ProactiveInsightSummary & WithName(Aws::String &&value)
void SetAssociatedResourceArns(const Aws::Vector< Aws::String > &value)
void SetPredictionTimeRange(PredictionTimeRange &&value)
void SetInsightTimeRange(const InsightTimeRange &value)
ProactiveInsightSummary & WithInsightTimeRange(const InsightTimeRange &value)
ProactiveInsightSummary & WithId(const char *value)
ProactiveInsightSummary & WithStatus(InsightStatus &&value)
void SetResourceCollection(const ResourceCollection &value)
ProactiveInsightSummary & AddAssociatedResourceArns(const Aws::String &value)
ProactiveInsightSummary & AddAssociatedResourceArns(Aws::String &&value)
ProactiveInsightSummary & WithId(Aws::String &&value)
void SetServiceCollection(const ServiceCollection &value)
void SetAssociatedResourceArns(Aws::Vector< Aws::String > &&value)
const PredictionTimeRange & GetPredictionTimeRange() const
AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const
ProactiveInsightSummary & WithResourceCollection(const ResourceCollection &value)
ProactiveInsightSummary & WithAssociatedResourceArns(const Aws::Vector< Aws::String > &value)
ProactiveInsightSummary & WithStatus(const InsightStatus &value)
ProactiveInsightSummary & WithId(const Aws::String &value)
ProactiveInsightSummary & WithSeverity(InsightSeverity &&value)
const Aws::Vector< Aws::String > & GetAssociatedResourceArns() const
ProactiveInsightSummary & WithAssociatedResourceArns(Aws::Vector< Aws::String > &&value)
ProactiveInsightSummary & WithName(const char *value)
const ResourceCollection & GetResourceCollection() const
ProactiveInsightSummary & WithServiceCollection(const ServiceCollection &value)
ProactiveInsightSummary & WithPredictionTimeRange(PredictionTimeRange &&value)
ProactiveInsightSummary & WithServiceCollection(ServiceCollection &&value)
void SetPredictionTimeRange(const PredictionTimeRange &value)
AWS_DEVOPSGURU_API ProactiveInsightSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ProactiveInsightSummary & AddAssociatedResourceArns(const char *value)
ProactiveInsightSummary & WithResourceCollection(ResourceCollection &&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