AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
ReactiveInsightSummary.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/ResourceCollection.h>
14#include <aws/devops-guru/model/ServiceCollection.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace DevOpsGuru {
26namespace Model {
27
35 public:
36 AWS_DEVOPSGURU_API ReactiveInsightSummary() = default;
39 AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetId() const { return m_id; }
46 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
47 template <typename IdT = Aws::String>
48 void SetId(IdT&& value) {
49 m_idHasBeenSet = true;
50 m_id = std::forward<IdT>(value);
51 }
52 template <typename IdT = Aws::String>
54 SetId(std::forward<IdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetName() const { return m_name; }
64 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65 template <typename NameT = Aws::String>
66 void SetName(NameT&& value) {
67 m_nameHasBeenSet = true;
68 m_name = std::forward<NameT>(value);
69 }
70 template <typename NameT = Aws::String>
72 SetName(std::forward<NameT>(value));
73 return *this;
74 }
76
78
83 inline InsightSeverity GetSeverity() const { return m_severity; }
84 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
85 inline void SetSeverity(InsightSeverity value) {
86 m_severityHasBeenSet = true;
87 m_severity = value;
88 }
90 SetSeverity(value);
91 return *this;
92 }
94
96
99 inline InsightStatus GetStatus() const { return m_status; }
100 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
101 inline void SetStatus(InsightStatus value) {
102 m_statusHasBeenSet = true;
103 m_status = value;
104 }
106 SetStatus(value);
107 return *this;
108 }
110
112
113 inline const InsightTimeRange& GetInsightTimeRange() const { return m_insightTimeRange; }
114 inline bool InsightTimeRangeHasBeenSet() const { return m_insightTimeRangeHasBeenSet; }
115 template <typename InsightTimeRangeT = InsightTimeRange>
116 void SetInsightTimeRange(InsightTimeRangeT&& value) {
117 m_insightTimeRangeHasBeenSet = true;
118 m_insightTimeRange = std::forward<InsightTimeRangeT>(value);
119 }
120 template <typename InsightTimeRangeT = InsightTimeRange>
121 ReactiveInsightSummary& WithInsightTimeRange(InsightTimeRangeT&& value) {
122 SetInsightTimeRange(std::forward<InsightTimeRangeT>(value));
123 return *this;
124 }
126
128
129 inline const ResourceCollection& GetResourceCollection() const { return m_resourceCollection; }
130 inline bool ResourceCollectionHasBeenSet() const { return m_resourceCollectionHasBeenSet; }
131 template <typename ResourceCollectionT = ResourceCollection>
132 void SetResourceCollection(ResourceCollectionT&& value) {
133 m_resourceCollectionHasBeenSet = true;
134 m_resourceCollection = std::forward<ResourceCollectionT>(value);
135 }
136 template <typename ResourceCollectionT = ResourceCollection>
137 ReactiveInsightSummary& WithResourceCollection(ResourceCollectionT&& value) {
138 SetResourceCollection(std::forward<ResourceCollectionT>(value));
139 return *this;
140 }
142
144
147 inline const ServiceCollection& GetServiceCollection() const { return m_serviceCollection; }
148 inline bool ServiceCollectionHasBeenSet() const { return m_serviceCollectionHasBeenSet; }
149 template <typename ServiceCollectionT = ServiceCollection>
150 void SetServiceCollection(ServiceCollectionT&& value) {
151 m_serviceCollectionHasBeenSet = true;
152 m_serviceCollection = std::forward<ServiceCollectionT>(value);
153 }
154 template <typename ServiceCollectionT = ServiceCollection>
155 ReactiveInsightSummary& WithServiceCollection(ServiceCollectionT&& value) {
156 SetServiceCollection(std::forward<ServiceCollectionT>(value));
157 return *this;
158 }
160
162
166 inline const Aws::Vector<Aws::String>& GetAssociatedResourceArns() const { return m_associatedResourceArns; }
167 inline bool AssociatedResourceArnsHasBeenSet() const { return m_associatedResourceArnsHasBeenSet; }
168 template <typename AssociatedResourceArnsT = Aws::Vector<Aws::String>>
169 void SetAssociatedResourceArns(AssociatedResourceArnsT&& value) {
170 m_associatedResourceArnsHasBeenSet = true;
171 m_associatedResourceArns = std::forward<AssociatedResourceArnsT>(value);
172 }
173 template <typename AssociatedResourceArnsT = Aws::Vector<Aws::String>>
174 ReactiveInsightSummary& WithAssociatedResourceArns(AssociatedResourceArnsT&& value) {
175 SetAssociatedResourceArns(std::forward<AssociatedResourceArnsT>(value));
176 return *this;
177 }
178 template <typename AssociatedResourceArnsT = Aws::String>
179 ReactiveInsightSummary& AddAssociatedResourceArns(AssociatedResourceArnsT&& value) {
180 m_associatedResourceArnsHasBeenSet = true;
181 m_associatedResourceArns.emplace_back(std::forward<AssociatedResourceArnsT>(value));
182 return *this;
183 }
185 private:
186 Aws::String m_id;
187
188 Aws::String m_name;
189
191
193
194 InsightTimeRange m_insightTimeRange;
195
196 ResourceCollection m_resourceCollection;
197
198 ServiceCollection m_serviceCollection;
199
200 Aws::Vector<Aws::String> m_associatedResourceArns;
201 bool m_idHasBeenSet = false;
202 bool m_nameHasBeenSet = false;
203 bool m_severityHasBeenSet = false;
204 bool m_statusHasBeenSet = false;
205 bool m_insightTimeRangeHasBeenSet = false;
206 bool m_resourceCollectionHasBeenSet = false;
207 bool m_serviceCollectionHasBeenSet = false;
208 bool m_associatedResourceArnsHasBeenSet = false;
209};
210
211} // namespace Model
212} // namespace DevOpsGuru
213} // namespace Aws
ReactiveInsightSummary & WithId(IdT &&value)
ReactiveInsightSummary & WithAssociatedResourceArns(AssociatedResourceArnsT &&value)
void SetResourceCollection(ResourceCollectionT &&value)
AWS_DEVOPSGURU_API ReactiveInsightSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ReactiveInsightSummary & WithStatus(InsightStatus value)
ReactiveInsightSummary & WithSeverity(InsightSeverity value)
AWS_DEVOPSGURU_API ReactiveInsightSummary(Aws::Utils::Json::JsonView jsonValue)
ReactiveInsightSummary & WithResourceCollection(ResourceCollectionT &&value)
ReactiveInsightSummary & WithInsightTimeRange(InsightTimeRangeT &&value)
void SetServiceCollection(ServiceCollectionT &&value)
ReactiveInsightSummary & AddAssociatedResourceArns(AssociatedResourceArnsT &&value)
const ResourceCollection & GetResourceCollection() const
const Aws::Vector< Aws::String > & GetAssociatedResourceArns() const
AWS_DEVOPSGURU_API ReactiveInsightSummary()=default
void SetAssociatedResourceArns(AssociatedResourceArnsT &&value)
AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const
const ServiceCollection & GetServiceCollection() const
ReactiveInsightSummary & WithServiceCollection(ServiceCollectionT &&value)
ReactiveInsightSummary & WithName(NameT &&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