AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
ReactiveInsight.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/ResourceCollection.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DevOpsGuru {
24namespace Model {
25
33 public:
34 AWS_DEVOPSGURU_API ReactiveInsight() = default;
35 AWS_DEVOPSGURU_API ReactiveInsight(Aws::Utils::Json::JsonView jsonValue);
37 AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetId() const { return m_id; }
44 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
45 template <typename IdT = Aws::String>
46 void SetId(IdT&& value) {
47 m_idHasBeenSet = true;
48 m_id = std::forward<IdT>(value);
49 }
50 template <typename IdT = Aws::String>
51 ReactiveInsight& WithId(IdT&& value) {
52 SetId(std::forward<IdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template <typename NameT = Aws::String>
64 void SetName(NameT&& value) {
65 m_nameHasBeenSet = true;
66 m_name = std::forward<NameT>(value);
67 }
68 template <typename NameT = Aws::String>
69 ReactiveInsight& WithName(NameT&& value) {
70 SetName(std::forward<NameT>(value));
71 return *this;
72 }
74
76
81 inline InsightSeverity GetSeverity() const { return m_severity; }
82 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
83 inline void SetSeverity(InsightSeverity value) {
84 m_severityHasBeenSet = true;
85 m_severity = value;
86 }
88 SetSeverity(value);
89 return *this;
90 }
92
94
97 inline InsightStatus GetStatus() const { return m_status; }
98 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
99 inline void SetStatus(InsightStatus value) {
100 m_statusHasBeenSet = true;
101 m_status = value;
102 }
104 SetStatus(value);
105 return *this;
106 }
108
110
111 inline const InsightTimeRange& GetInsightTimeRange() const { return m_insightTimeRange; }
112 inline bool InsightTimeRangeHasBeenSet() const { return m_insightTimeRangeHasBeenSet; }
113 template <typename InsightTimeRangeT = InsightTimeRange>
114 void SetInsightTimeRange(InsightTimeRangeT&& value) {
115 m_insightTimeRangeHasBeenSet = true;
116 m_insightTimeRange = std::forward<InsightTimeRangeT>(value);
117 }
118 template <typename InsightTimeRangeT = InsightTimeRange>
119 ReactiveInsight& WithInsightTimeRange(InsightTimeRangeT&& value) {
120 SetInsightTimeRange(std::forward<InsightTimeRangeT>(value));
121 return *this;
122 }
124
126
127 inline const ResourceCollection& GetResourceCollection() const { return m_resourceCollection; }
128 inline bool ResourceCollectionHasBeenSet() const { return m_resourceCollectionHasBeenSet; }
129 template <typename ResourceCollectionT = ResourceCollection>
130 void SetResourceCollection(ResourceCollectionT&& value) {
131 m_resourceCollectionHasBeenSet = true;
132 m_resourceCollection = std::forward<ResourceCollectionT>(value);
133 }
134 template <typename ResourceCollectionT = ResourceCollection>
135 ReactiveInsight& WithResourceCollection(ResourceCollectionT&& value) {
136 SetResourceCollection(std::forward<ResourceCollectionT>(value));
137 return *this;
138 }
140
142
147 inline const Aws::String& GetSsmOpsItemId() const { return m_ssmOpsItemId; }
148 inline bool SsmOpsItemIdHasBeenSet() const { return m_ssmOpsItemIdHasBeenSet; }
149 template <typename SsmOpsItemIdT = Aws::String>
150 void SetSsmOpsItemId(SsmOpsItemIdT&& value) {
151 m_ssmOpsItemIdHasBeenSet = true;
152 m_ssmOpsItemId = std::forward<SsmOpsItemIdT>(value);
153 }
154 template <typename SsmOpsItemIdT = Aws::String>
155 ReactiveInsight& WithSsmOpsItemId(SsmOpsItemIdT&& value) {
156 SetSsmOpsItemId(std::forward<SsmOpsItemIdT>(value));
157 return *this;
158 }
160
162
165 inline const Aws::String& GetDescription() const { return m_description; }
166 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
167 template <typename DescriptionT = Aws::String>
168 void SetDescription(DescriptionT&& value) {
169 m_descriptionHasBeenSet = true;
170 m_description = std::forward<DescriptionT>(value);
171 }
172 template <typename DescriptionT = Aws::String>
173 ReactiveInsight& WithDescription(DescriptionT&& value) {
174 SetDescription(std::forward<DescriptionT>(value));
175 return *this;
176 }
178 private:
179 Aws::String m_id;
180
181 Aws::String m_name;
182
184
186
187 InsightTimeRange m_insightTimeRange;
188
189 ResourceCollection m_resourceCollection;
190
191 Aws::String m_ssmOpsItemId;
192
193 Aws::String m_description;
194 bool m_idHasBeenSet = false;
195 bool m_nameHasBeenSet = false;
196 bool m_severityHasBeenSet = false;
197 bool m_statusHasBeenSet = false;
198 bool m_insightTimeRangeHasBeenSet = false;
199 bool m_resourceCollectionHasBeenSet = false;
200 bool m_ssmOpsItemIdHasBeenSet = false;
201 bool m_descriptionHasBeenSet = false;
202};
203
204} // namespace Model
205} // namespace DevOpsGuru
206} // namespace Aws
void SetDescription(DescriptionT &&value)
ReactiveInsight & WithId(IdT &&value)
const Aws::String & GetSsmOpsItemId() const
ReactiveInsight & WithInsightTimeRange(InsightTimeRangeT &&value)
AWS_DEVOPSGURU_API ReactiveInsight(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
ReactiveInsight & WithDescription(DescriptionT &&value)
void SetSsmOpsItemId(SsmOpsItemIdT &&value)
ReactiveInsight & WithName(NameT &&value)
void SetInsightTimeRange(InsightTimeRangeT &&value)
ReactiveInsight & WithSeverity(InsightSeverity value)
const Aws::String & GetDescription() const
const InsightTimeRange & GetInsightTimeRange() const
AWS_DEVOPSGURU_API ReactiveInsight()=default
const ResourceCollection & GetResourceCollection() const
ReactiveInsight & WithStatus(InsightStatus value)
AWS_DEVOPSGURU_API ReactiveInsight & operator=(Aws::Utils::Json::JsonView jsonValue)
ReactiveInsight & WithSsmOpsItemId(SsmOpsItemIdT &&value)
void SetSeverity(InsightSeverity value)
void SetResourceCollection(ResourceCollectionT &&value)
AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetId() const
ReactiveInsight & WithResourceCollection(ResourceCollectionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue