AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
AnalysisReport.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/pi/PI_EXPORTS.h>
11#include <aws/pi/model/AnalysisStatus.h>
12#include <aws/pi/model/Insight.h>
13#include <aws/pi/model/ServiceType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace PI {
25namespace Model {
26
34 public:
35 AWS_PI_API AnalysisReport() = default;
39
41
44 inline const Aws::String& GetAnalysisReportId() const { return m_analysisReportId; }
45 inline bool AnalysisReportIdHasBeenSet() const { return m_analysisReportIdHasBeenSet; }
46 template <typename AnalysisReportIdT = Aws::String>
47 void SetAnalysisReportId(AnalysisReportIdT&& value) {
48 m_analysisReportIdHasBeenSet = true;
49 m_analysisReportId = std::forward<AnalysisReportIdT>(value);
50 }
51 template <typename AnalysisReportIdT = Aws::String>
52 AnalysisReport& WithAnalysisReportId(AnalysisReportIdT&& value) {
53 SetAnalysisReportId(std::forward<AnalysisReportIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetIdentifier() const { return m_identifier; }
63 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
64 template <typename IdentifierT = Aws::String>
65 void SetIdentifier(IdentifierT&& value) {
66 m_identifierHasBeenSet = true;
67 m_identifier = std::forward<IdentifierT>(value);
68 }
69 template <typename IdentifierT = Aws::String>
70 AnalysisReport& WithIdentifier(IdentifierT&& value) {
71 SetIdentifier(std::forward<IdentifierT>(value));
72 return *this;
73 }
75
77
82 inline ServiceType GetServiceType() const { return m_serviceType; }
83 inline bool ServiceTypeHasBeenSet() const { return m_serviceTypeHasBeenSet; }
84 inline void SetServiceType(ServiceType value) {
85 m_serviceTypeHasBeenSet = true;
86 m_serviceType = value;
87 }
89 SetServiceType(value);
90 return *this;
91 }
93
95
98 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
99 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
100 template <typename CreateTimeT = Aws::Utils::DateTime>
101 void SetCreateTime(CreateTimeT&& value) {
102 m_createTimeHasBeenSet = true;
103 m_createTime = std::forward<CreateTimeT>(value);
104 }
105 template <typename CreateTimeT = Aws::Utils::DateTime>
106 AnalysisReport& WithCreateTime(CreateTimeT&& value) {
107 SetCreateTime(std::forward<CreateTimeT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
117 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
118 template <typename StartTimeT = Aws::Utils::DateTime>
119 void SetStartTime(StartTimeT&& value) {
120 m_startTimeHasBeenSet = true;
121 m_startTime = std::forward<StartTimeT>(value);
122 }
123 template <typename StartTimeT = Aws::Utils::DateTime>
124 AnalysisReport& WithStartTime(StartTimeT&& value) {
125 SetStartTime(std::forward<StartTimeT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
135 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
136 template <typename EndTimeT = Aws::Utils::DateTime>
137 void SetEndTime(EndTimeT&& value) {
138 m_endTimeHasBeenSet = true;
139 m_endTime = std::forward<EndTimeT>(value);
140 }
141 template <typename EndTimeT = Aws::Utils::DateTime>
142 AnalysisReport& WithEndTime(EndTimeT&& value) {
143 SetEndTime(std::forward<EndTimeT>(value));
144 return *this;
145 }
147
149
152 inline AnalysisStatus GetStatus() const { return m_status; }
153 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
154 inline void SetStatus(AnalysisStatus value) {
155 m_statusHasBeenSet = true;
156 m_status = value;
157 }
159 SetStatus(value);
160 return *this;
161 }
163
165
168 inline const Aws::Vector<Insight>& GetInsights() const { return m_insights; }
169 inline bool InsightsHasBeenSet() const { return m_insightsHasBeenSet; }
170 template <typename InsightsT = Aws::Vector<Insight>>
171 void SetInsights(InsightsT&& value) {
172 m_insightsHasBeenSet = true;
173 m_insights = std::forward<InsightsT>(value);
174 }
175 template <typename InsightsT = Aws::Vector<Insight>>
176 AnalysisReport& WithInsights(InsightsT&& value) {
177 SetInsights(std::forward<InsightsT>(value));
178 return *this;
179 }
180 template <typename InsightsT = Insight>
181 AnalysisReport& AddInsights(InsightsT&& value) {
182 m_insightsHasBeenSet = true;
183 m_insights.emplace_back(std::forward<InsightsT>(value));
184 return *this;
185 }
187 private:
188 Aws::String m_analysisReportId;
189
190 Aws::String m_identifier;
191
192 ServiceType m_serviceType{ServiceType::NOT_SET};
193
194 Aws::Utils::DateTime m_createTime{};
195
196 Aws::Utils::DateTime m_startTime{};
197
198 Aws::Utils::DateTime m_endTime{};
199
201
202 Aws::Vector<Insight> m_insights;
203 bool m_analysisReportIdHasBeenSet = false;
204 bool m_identifierHasBeenSet = false;
205 bool m_serviceTypeHasBeenSet = false;
206 bool m_createTimeHasBeenSet = false;
207 bool m_startTimeHasBeenSet = false;
208 bool m_endTimeHasBeenSet = false;
209 bool m_statusHasBeenSet = false;
210 bool m_insightsHasBeenSet = false;
211};
212
213} // namespace Model
214} // namespace PI
215} // namespace Aws
const Aws::Utils::DateTime & GetEndTime() const
AnalysisReport & WithIdentifier(IdentifierT &&value)
const Aws::String & GetAnalysisReportId() const
void SetCreateTime(CreateTimeT &&value)
void SetStartTime(StartTimeT &&value)
void SetServiceType(ServiceType value)
void SetInsights(InsightsT &&value)
AnalysisReport & WithEndTime(EndTimeT &&value)
AWS_PI_API AnalysisReport(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetIdentifier() const
AnalysisReport & AddInsights(InsightsT &&value)
const Aws::Utils::DateTime & GetCreateTime() const
AWS_PI_API AnalysisReport & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetStartTime() const
AnalysisReport & WithStartTime(StartTimeT &&value)
AnalysisReport & WithCreateTime(CreateTimeT &&value)
AnalysisReport & WithInsights(InsightsT &&value)
AWS_PI_API AnalysisReport()=default
AWS_PI_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEndTime(EndTimeT &&value)
const Aws::Vector< Insight > & GetInsights() const
AnalysisReport & WithServiceType(ServiceType value)
void SetAnalysisReportId(AnalysisReportIdT &&value)
void SetIdentifier(IdentifierT &&value)
AnalysisStatus GetStatus() const
AnalysisReport & WithAnalysisReportId(AnalysisReportIdT &&value)
void SetStatus(AnalysisStatus value)
AnalysisReport & WithStatus(AnalysisStatus value)
ServiceType GetServiceType() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue