AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ReactiveInsightSummary.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/ResourceCollection.h>
13#include <aws/devops-guru/model/ServiceCollection.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace DevOpsGuru
28{
29namespace Model
30{
31
39 {
40 public:
41 AWS_DEVOPSGURU_API ReactiveInsightSummary() = default;
44 AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetId() const { return m_id; }
52 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
53 template<typename IdT = Aws::String>
54 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
55 template<typename IdT = Aws::String>
56 ReactiveInsightSummary& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
67 template<typename NameT = Aws::String>
68 ReactiveInsightSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
70
72
77 inline InsightSeverity GetSeverity() const { return m_severity; }
78 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
79 inline void SetSeverity(InsightSeverity value) { m_severityHasBeenSet = true; m_severity = value; }
80 inline ReactiveInsightSummary& WithSeverity(InsightSeverity value) { SetSeverity(value); return *this;}
82
84
87 inline InsightStatus GetStatus() const { return m_status; }
88 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
89 inline void SetStatus(InsightStatus value) { m_statusHasBeenSet = true; m_status = value; }
90 inline ReactiveInsightSummary& WithStatus(InsightStatus value) { SetStatus(value); return *this;}
92
94
95 inline const InsightTimeRange& GetInsightTimeRange() const { return m_insightTimeRange; }
96 inline bool InsightTimeRangeHasBeenSet() const { return m_insightTimeRangeHasBeenSet; }
97 template<typename InsightTimeRangeT = InsightTimeRange>
98 void SetInsightTimeRange(InsightTimeRangeT&& value) { m_insightTimeRangeHasBeenSet = true; m_insightTimeRange = std::forward<InsightTimeRangeT>(value); }
99 template<typename InsightTimeRangeT = InsightTimeRange>
100 ReactiveInsightSummary& WithInsightTimeRange(InsightTimeRangeT&& value) { SetInsightTimeRange(std::forward<InsightTimeRangeT>(value)); return *this;}
102
104
105 inline const ResourceCollection& GetResourceCollection() const { return m_resourceCollection; }
106 inline bool ResourceCollectionHasBeenSet() const { return m_resourceCollectionHasBeenSet; }
107 template<typename ResourceCollectionT = ResourceCollection>
108 void SetResourceCollection(ResourceCollectionT&& value) { m_resourceCollectionHasBeenSet = true; m_resourceCollection = std::forward<ResourceCollectionT>(value); }
109 template<typename ResourceCollectionT = ResourceCollection>
110 ReactiveInsightSummary& WithResourceCollection(ResourceCollectionT&& value) { SetResourceCollection(std::forward<ResourceCollectionT>(value)); return *this;}
112
114
117 inline const ServiceCollection& GetServiceCollection() const { return m_serviceCollection; }
118 inline bool ServiceCollectionHasBeenSet() const { return m_serviceCollectionHasBeenSet; }
119 template<typename ServiceCollectionT = ServiceCollection>
120 void SetServiceCollection(ServiceCollectionT&& value) { m_serviceCollectionHasBeenSet = true; m_serviceCollection = std::forward<ServiceCollectionT>(value); }
121 template<typename ServiceCollectionT = ServiceCollection>
122 ReactiveInsightSummary& WithServiceCollection(ServiceCollectionT&& value) { SetServiceCollection(std::forward<ServiceCollectionT>(value)); return *this;}
124
126
130 inline const Aws::Vector<Aws::String>& GetAssociatedResourceArns() const { return m_associatedResourceArns; }
131 inline bool AssociatedResourceArnsHasBeenSet() const { return m_associatedResourceArnsHasBeenSet; }
132 template<typename AssociatedResourceArnsT = Aws::Vector<Aws::String>>
133 void SetAssociatedResourceArns(AssociatedResourceArnsT&& value) { m_associatedResourceArnsHasBeenSet = true; m_associatedResourceArns = std::forward<AssociatedResourceArnsT>(value); }
134 template<typename AssociatedResourceArnsT = Aws::Vector<Aws::String>>
135 ReactiveInsightSummary& WithAssociatedResourceArns(AssociatedResourceArnsT&& value) { SetAssociatedResourceArns(std::forward<AssociatedResourceArnsT>(value)); return *this;}
136 template<typename AssociatedResourceArnsT = Aws::String>
137 ReactiveInsightSummary& AddAssociatedResourceArns(AssociatedResourceArnsT&& value) { m_associatedResourceArnsHasBeenSet = true; m_associatedResourceArns.emplace_back(std::forward<AssociatedResourceArnsT>(value)); return *this; }
139 private:
140
141 Aws::String m_id;
142 bool m_idHasBeenSet = false;
143
144 Aws::String m_name;
145 bool m_nameHasBeenSet = false;
146
148 bool m_severityHasBeenSet = false;
149
151 bool m_statusHasBeenSet = false;
152
153 InsightTimeRange m_insightTimeRange;
154 bool m_insightTimeRangeHasBeenSet = false;
155
156 ResourceCollection m_resourceCollection;
157 bool m_resourceCollectionHasBeenSet = false;
158
159 ServiceCollection m_serviceCollection;
160 bool m_serviceCollectionHasBeenSet = false;
161
162 Aws::Vector<Aws::String> m_associatedResourceArns;
163 bool m_associatedResourceArnsHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace DevOpsGuru
168} // namespace Aws
ReactiveInsightSummary & WithId(IdT &&value)
ReactiveInsightSummary & WithAssociatedResourceArns(AssociatedResourceArnsT &&value)
const InsightTimeRange & GetInsightTimeRange() const
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