AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Recommendation.h
1
6#pragma once
7#include <aws/codeguruprofiler/CodeGuruProfiler_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/codeguruprofiler/model/Pattern.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/codeguruprofiler/model/Match.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CodeGuruProfiler
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_CODEGURUPROFILER_API Recommendation() = default;
39 AWS_CODEGURUPROFILER_API Recommendation(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CODEGURUPROFILER_API Recommendation& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CODEGURUPROFILER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline int GetAllMatchesCount() const { return m_allMatchesCount; }
49 inline bool AllMatchesCountHasBeenSet() const { return m_allMatchesCountHasBeenSet; }
50 inline void SetAllMatchesCount(int value) { m_allMatchesCountHasBeenSet = true; m_allMatchesCount = value; }
51 inline Recommendation& WithAllMatchesCount(int value) { SetAllMatchesCount(value); return *this;}
53
55
58 inline double GetAllMatchesSum() const { return m_allMatchesSum; }
59 inline bool AllMatchesSumHasBeenSet() const { return m_allMatchesSumHasBeenSet; }
60 inline void SetAllMatchesSum(double value) { m_allMatchesSumHasBeenSet = true; m_allMatchesSum = value; }
61 inline Recommendation& WithAllMatchesSum(double value) { SetAllMatchesSum(value); return *this;}
63
65
70 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
71 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
72 template<typename EndTimeT = Aws::Utils::DateTime>
73 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
74 template<typename EndTimeT = Aws::Utils::DateTime>
75 Recommendation& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
77
79
83 inline const Pattern& GetPattern() const { return m_pattern; }
84 inline bool PatternHasBeenSet() const { return m_patternHasBeenSet; }
85 template<typename PatternT = Pattern>
86 void SetPattern(PatternT&& value) { m_patternHasBeenSet = true; m_pattern = std::forward<PatternT>(value); }
87 template<typename PatternT = Pattern>
88 Recommendation& WithPattern(PatternT&& value) { SetPattern(std::forward<PatternT>(value)); return *this;}
90
92
97 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
98 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
99 template<typename StartTimeT = Aws::Utils::DateTime>
100 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
101 template<typename StartTimeT = Aws::Utils::DateTime>
102 Recommendation& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
104
106
109 inline const Aws::Vector<Match>& GetTopMatches() const { return m_topMatches; }
110 inline bool TopMatchesHasBeenSet() const { return m_topMatchesHasBeenSet; }
111 template<typename TopMatchesT = Aws::Vector<Match>>
112 void SetTopMatches(TopMatchesT&& value) { m_topMatchesHasBeenSet = true; m_topMatches = std::forward<TopMatchesT>(value); }
113 template<typename TopMatchesT = Aws::Vector<Match>>
114 Recommendation& WithTopMatches(TopMatchesT&& value) { SetTopMatches(std::forward<TopMatchesT>(value)); return *this;}
115 template<typename TopMatchesT = Match>
116 Recommendation& AddTopMatches(TopMatchesT&& value) { m_topMatchesHasBeenSet = true; m_topMatches.emplace_back(std::forward<TopMatchesT>(value)); return *this; }
118 private:
119
120 int m_allMatchesCount{0};
121 bool m_allMatchesCountHasBeenSet = false;
122
123 double m_allMatchesSum{0.0};
124 bool m_allMatchesSumHasBeenSet = false;
125
126 Aws::Utils::DateTime m_endTime{};
127 bool m_endTimeHasBeenSet = false;
128
129 Pattern m_pattern;
130 bool m_patternHasBeenSet = false;
131
132 Aws::Utils::DateTime m_startTime{};
133 bool m_startTimeHasBeenSet = false;
134
135 Aws::Vector<Match> m_topMatches;
136 bool m_topMatchesHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace CodeGuruProfiler
141} // namespace Aws
Recommendation & WithPattern(PatternT &&value)
const Aws::Utils::DateTime & GetEndTime() const
const Aws::Vector< Match > & GetTopMatches() const
AWS_CODEGURUPROFILER_API Recommendation & operator=(Aws::Utils::Json::JsonView jsonValue)
Recommendation & WithTopMatches(TopMatchesT &&value)
Recommendation & AddTopMatches(TopMatchesT &&value)
Recommendation & WithAllMatchesSum(double value)
AWS_CODEGURUPROFILER_API Aws::Utils::Json::JsonValue Jsonize() const
Recommendation & WithStartTime(StartTimeT &&value)
AWS_CODEGURUPROFILER_API Recommendation()=default
const Aws::Utils::DateTime & GetStartTime() const
Recommendation & WithEndTime(EndTimeT &&value)
AWS_CODEGURUPROFILER_API Recommendation(Aws::Utils::Json::JsonView jsonValue)
Recommendation & WithAllMatchesCount(int value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue