AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
Recommendation.h
1
6#pragma once
7#include <aws/codeguruprofiler/CodeGuruProfiler_EXPORTS.h>
8#include <aws/codeguruprofiler/model/Match.h>
9#include <aws/codeguruprofiler/model/Pattern.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CodeGuruProfiler {
23namespace Model {
24
32 public:
33 AWS_CODEGURUPROFILER_API Recommendation() = default;
34 AWS_CODEGURUPROFILER_API Recommendation(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CODEGURUPROFILER_API Recommendation& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CODEGURUPROFILER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline int GetAllMatchesCount() const { return m_allMatchesCount; }
43 inline bool AllMatchesCountHasBeenSet() const { return m_allMatchesCountHasBeenSet; }
44 inline void SetAllMatchesCount(int value) {
45 m_allMatchesCountHasBeenSet = true;
46 m_allMatchesCount = value;
47 }
49 SetAllMatchesCount(value);
50 return *this;
51 }
53
55
58 inline double GetAllMatchesSum() const { return m_allMatchesSum; }
59 inline bool AllMatchesSumHasBeenSet() const { return m_allMatchesSumHasBeenSet; }
60 inline void SetAllMatchesSum(double value) {
61 m_allMatchesSumHasBeenSet = true;
62 m_allMatchesSum = value;
63 }
64 inline Recommendation& WithAllMatchesSum(double value) {
65 SetAllMatchesSum(value);
66 return *this;
67 }
69
71
76 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
77 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
78 template <typename EndTimeT = Aws::Utils::DateTime>
79 void SetEndTime(EndTimeT&& value) {
80 m_endTimeHasBeenSet = true;
81 m_endTime = std::forward<EndTimeT>(value);
82 }
83 template <typename EndTimeT = Aws::Utils::DateTime>
84 Recommendation& WithEndTime(EndTimeT&& value) {
85 SetEndTime(std::forward<EndTimeT>(value));
86 return *this;
87 }
89
91
95 inline const Pattern& GetPattern() const { return m_pattern; }
96 inline bool PatternHasBeenSet() const { return m_patternHasBeenSet; }
97 template <typename PatternT = Pattern>
98 void SetPattern(PatternT&& value) {
99 m_patternHasBeenSet = true;
100 m_pattern = std::forward<PatternT>(value);
101 }
102 template <typename PatternT = Pattern>
103 Recommendation& WithPattern(PatternT&& value) {
104 SetPattern(std::forward<PatternT>(value));
105 return *this;
106 }
108
110
115 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
116 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
117 template <typename StartTimeT = Aws::Utils::DateTime>
118 void SetStartTime(StartTimeT&& value) {
119 m_startTimeHasBeenSet = true;
120 m_startTime = std::forward<StartTimeT>(value);
121 }
122 template <typename StartTimeT = Aws::Utils::DateTime>
123 Recommendation& WithStartTime(StartTimeT&& value) {
124 SetStartTime(std::forward<StartTimeT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::Vector<Match>& GetTopMatches() const { return m_topMatches; }
134 inline bool TopMatchesHasBeenSet() const { return m_topMatchesHasBeenSet; }
135 template <typename TopMatchesT = Aws::Vector<Match>>
136 void SetTopMatches(TopMatchesT&& value) {
137 m_topMatchesHasBeenSet = true;
138 m_topMatches = std::forward<TopMatchesT>(value);
139 }
140 template <typename TopMatchesT = Aws::Vector<Match>>
141 Recommendation& WithTopMatches(TopMatchesT&& value) {
142 SetTopMatches(std::forward<TopMatchesT>(value));
143 return *this;
144 }
145 template <typename TopMatchesT = Match>
146 Recommendation& AddTopMatches(TopMatchesT&& value) {
147 m_topMatchesHasBeenSet = true;
148 m_topMatches.emplace_back(std::forward<TopMatchesT>(value));
149 return *this;
150 }
152 private:
153 int m_allMatchesCount{0};
154
155 double m_allMatchesSum{0.0};
156
157 Aws::Utils::DateTime m_endTime{};
158
159 Pattern m_pattern;
160
161 Aws::Utils::DateTime m_startTime{};
162
163 Aws::Vector<Match> m_topMatches;
164 bool m_allMatchesCountHasBeenSet = false;
165 bool m_allMatchesSumHasBeenSet = false;
166 bool m_endTimeHasBeenSet = false;
167 bool m_patternHasBeenSet = false;
168 bool m_startTimeHasBeenSet = false;
169 bool m_topMatchesHasBeenSet = false;
170};
171
172} // namespace Model
173} // namespace CodeGuruProfiler
174} // 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