AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AnalysisReport.h
1
6#pragma once
7#include <aws/pi/PI_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/pi/model/ServiceType.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/pi/model/AnalysisStatus.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/pi/model/Insight.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace PI
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_PI_API AnalysisReport() = default;
44
45
47
50 inline const Aws::String& GetAnalysisReportId() const { return m_analysisReportId; }
51 inline bool AnalysisReportIdHasBeenSet() const { return m_analysisReportIdHasBeenSet; }
52 template<typename AnalysisReportIdT = Aws::String>
53 void SetAnalysisReportId(AnalysisReportIdT&& value) { m_analysisReportIdHasBeenSet = true; m_analysisReportId = std::forward<AnalysisReportIdT>(value); }
54 template<typename AnalysisReportIdT = Aws::String>
55 AnalysisReport& WithAnalysisReportId(AnalysisReportIdT&& value) { SetAnalysisReportId(std::forward<AnalysisReportIdT>(value)); return *this;}
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) { m_identifierHasBeenSet = true; m_identifier = std::forward<IdentifierT>(value); }
66 template<typename IdentifierT = Aws::String>
67 AnalysisReport& WithIdentifier(IdentifierT&& value) { SetIdentifier(std::forward<IdentifierT>(value)); return *this;}
69
71
76 inline ServiceType GetServiceType() const { return m_serviceType; }
77 inline bool ServiceTypeHasBeenSet() const { return m_serviceTypeHasBeenSet; }
78 inline void SetServiceType(ServiceType value) { m_serviceTypeHasBeenSet = true; m_serviceType = value; }
79 inline AnalysisReport& WithServiceType(ServiceType value) { SetServiceType(value); return *this;}
81
83
86 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
87 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
88 template<typename CreateTimeT = Aws::Utils::DateTime>
89 void SetCreateTime(CreateTimeT&& value) { m_createTimeHasBeenSet = true; m_createTime = std::forward<CreateTimeT>(value); }
90 template<typename CreateTimeT = Aws::Utils::DateTime>
91 AnalysisReport& WithCreateTime(CreateTimeT&& value) { SetCreateTime(std::forward<CreateTimeT>(value)); return *this;}
93
95
98 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
99 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
100 template<typename StartTimeT = Aws::Utils::DateTime>
101 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
102 template<typename StartTimeT = Aws::Utils::DateTime>
103 AnalysisReport& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
105
107
110 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
111 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
112 template<typename EndTimeT = Aws::Utils::DateTime>
113 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
114 template<typename EndTimeT = Aws::Utils::DateTime>
115 AnalysisReport& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
117
119
122 inline AnalysisStatus GetStatus() const { return m_status; }
123 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
124 inline void SetStatus(AnalysisStatus value) { m_statusHasBeenSet = true; m_status = value; }
125 inline AnalysisReport& WithStatus(AnalysisStatus value) { SetStatus(value); return *this;}
127
129
132 inline const Aws::Vector<Insight>& GetInsights() const { return m_insights; }
133 inline bool InsightsHasBeenSet() const { return m_insightsHasBeenSet; }
134 template<typename InsightsT = Aws::Vector<Insight>>
135 void SetInsights(InsightsT&& value) { m_insightsHasBeenSet = true; m_insights = std::forward<InsightsT>(value); }
136 template<typename InsightsT = Aws::Vector<Insight>>
137 AnalysisReport& WithInsights(InsightsT&& value) { SetInsights(std::forward<InsightsT>(value)); return *this;}
138 template<typename InsightsT = Insight>
139 AnalysisReport& AddInsights(InsightsT&& value) { m_insightsHasBeenSet = true; m_insights.emplace_back(std::forward<InsightsT>(value)); return *this; }
141 private:
142
143 Aws::String m_analysisReportId;
144 bool m_analysisReportIdHasBeenSet = false;
145
146 Aws::String m_identifier;
147 bool m_identifierHasBeenSet = false;
148
149 ServiceType m_serviceType{ServiceType::NOT_SET};
150 bool m_serviceTypeHasBeenSet = false;
151
152 Aws::Utils::DateTime m_createTime{};
153 bool m_createTimeHasBeenSet = false;
154
155 Aws::Utils::DateTime m_startTime{};
156 bool m_startTimeHasBeenSet = false;
157
158 Aws::Utils::DateTime m_endTime{};
159 bool m_endTimeHasBeenSet = false;
160
162 bool m_statusHasBeenSet = false;
163
164 Aws::Vector<Insight> m_insights;
165 bool m_insightsHasBeenSet = false;
166 };
167
168} // namespace Model
169} // namespace PI
170} // 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