AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PerformanceIssueDetails.h
1
6#pragma once
7#include <aws/rds/RDS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/rds/model/Metric.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace RDS
25{
26namespace Model
27{
28
35 {
36 public:
40
41 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
50 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
51 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
52 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
53 inline PerformanceIssueDetails& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
54 inline PerformanceIssueDetails& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
56
58
61 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
62 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
63 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
64 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
65 inline PerformanceIssueDetails& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
66 inline PerformanceIssueDetails& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
68
70
73 inline const Aws::Vector<Metric>& GetMetrics() const{ return m_metrics; }
74 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
75 inline void SetMetrics(const Aws::Vector<Metric>& value) { m_metricsHasBeenSet = true; m_metrics = value; }
76 inline void SetMetrics(Aws::Vector<Metric>&& value) { m_metricsHasBeenSet = true; m_metrics = std::move(value); }
77 inline PerformanceIssueDetails& WithMetrics(const Aws::Vector<Metric>& value) { SetMetrics(value); return *this;}
78 inline PerformanceIssueDetails& WithMetrics(Aws::Vector<Metric>&& value) { SetMetrics(std::move(value)); return *this;}
79 inline PerformanceIssueDetails& AddMetrics(const Metric& value) { m_metricsHasBeenSet = true; m_metrics.push_back(value); return *this; }
80 inline PerformanceIssueDetails& AddMetrics(Metric&& value) { m_metricsHasBeenSet = true; m_metrics.push_back(std::move(value)); return *this; }
82
84
88 inline const Aws::String& GetAnalysis() const{ return m_analysis; }
89 inline bool AnalysisHasBeenSet() const { return m_analysisHasBeenSet; }
90 inline void SetAnalysis(const Aws::String& value) { m_analysisHasBeenSet = true; m_analysis = value; }
91 inline void SetAnalysis(Aws::String&& value) { m_analysisHasBeenSet = true; m_analysis = std::move(value); }
92 inline void SetAnalysis(const char* value) { m_analysisHasBeenSet = true; m_analysis.assign(value); }
93 inline PerformanceIssueDetails& WithAnalysis(const Aws::String& value) { SetAnalysis(value); return *this;}
94 inline PerformanceIssueDetails& WithAnalysis(Aws::String&& value) { SetAnalysis(std::move(value)); return *this;}
95 inline PerformanceIssueDetails& WithAnalysis(const char* value) { SetAnalysis(value); return *this;}
97 private:
98
99 Aws::Utils::DateTime m_startTime;
100 bool m_startTimeHasBeenSet = false;
101
102 Aws::Utils::DateTime m_endTime;
103 bool m_endTimeHasBeenSet = false;
104
105 Aws::Vector<Metric> m_metrics;
106 bool m_metricsHasBeenSet = false;
107
108 Aws::String m_analysis;
109 bool m_analysisHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace RDS
114} // namespace Aws
PerformanceIssueDetails & WithAnalysis(const Aws::String &value)
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
PerformanceIssueDetails & WithAnalysis(const char *value)
PerformanceIssueDetails & WithStartTime(Aws::Utils::DateTime &&value)
PerformanceIssueDetails & AddMetrics(Metric &&value)
void SetStartTime(const Aws::Utils::DateTime &value)
void SetMetrics(Aws::Vector< Metric > &&value)
void SetMetrics(const Aws::Vector< Metric > &value)
PerformanceIssueDetails & WithMetrics(Aws::Vector< Metric > &&value)
const Aws::Utils::DateTime & GetStartTime() const
PerformanceIssueDetails & AddMetrics(const Metric &value)
void SetStartTime(Aws::Utils::DateTime &&value)
PerformanceIssueDetails & WithAnalysis(Aws::String &&value)
const Aws::Utils::DateTime & GetEndTime() const
PerformanceIssueDetails & WithMetrics(const Aws::Vector< Metric > &value)
const Aws::Vector< Metric > & GetMetrics() const
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_RDS_API PerformanceIssueDetails & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetEndTime(const Aws::Utils::DateTime &value)
void SetEndTime(Aws::Utils::DateTime &&value)
PerformanceIssueDetails & WithEndTime(Aws::Utils::DateTime &&value)
AWS_RDS_API PerformanceIssueDetails(const Aws::Utils::Xml::XmlNode &xmlNode)
PerformanceIssueDetails & WithEndTime(const Aws::Utils::DateTime &value)
PerformanceIssueDetails & WithStartTime(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream