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>
24namespace CodeGuruProfiler
50 inline void SetAllMatchesCount(
int value) { m_allMatchesCountHasBeenSet =
true; m_allMatchesCount = value; }
60 inline void SetAllMatchesSum(
double value) { m_allMatchesSumHasBeenSet =
true; m_allMatchesSum = value; }
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>
85 template<
typename PatternT = Pattern>
86 void SetPattern(PatternT&& value) { m_patternHasBeenSet =
true; m_pattern = std::forward<PatternT>(value); }
87 template<
typename PatternT = Pattern>
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>
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>>
115 template<
typename TopMatchesT = Match>
116 Recommendation&
AddTopMatches(TopMatchesT&& value) { m_topMatchesHasBeenSet =
true; m_topMatches.emplace_back(std::forward<TopMatchesT>(value));
return *
this; }
120 int m_allMatchesCount{0};
121 bool m_allMatchesCountHasBeenSet =
false;
123 double m_allMatchesSum{0.0};
124 bool m_allMatchesSumHasBeenSet =
false;
127 bool m_endTimeHasBeenSet =
false;
130 bool m_patternHasBeenSet =
false;
133 bool m_startTimeHasBeenSet =
false;
136 bool m_topMatchesHasBeenSet =
false;
void SetAllMatchesSum(double value)
void SetStartTime(StartTimeT &&value)
Recommendation & WithPattern(PatternT &&value)
bool PatternHasBeenSet() const
int GetAllMatchesCount() const
double GetAllMatchesSum() const
bool EndTimeHasBeenSet() const
bool TopMatchesHasBeenSet() const
const Aws::Utils::DateTime & GetEndTime() const
const Aws::Vector< Match > & GetTopMatches() const
const Pattern & GetPattern() const
AWS_CODEGURUPROFILER_API Recommendation & operator=(Aws::Utils::Json::JsonView jsonValue)
Recommendation & WithTopMatches(TopMatchesT &&value)
bool StartTimeHasBeenSet() const
void SetPattern(PatternT &&value)
Recommendation & AddTopMatches(TopMatchesT &&value)
Recommendation & WithAllMatchesSum(double value)
AWS_CODEGURUPROFILER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAllMatchesCount(int value)
void SetEndTime(EndTimeT &&value)
bool AllMatchesSumHasBeenSet() const
bool AllMatchesCountHasBeenSet() 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)
void SetTopMatches(TopMatchesT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue