AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
73 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
74 inline Recommendation& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
75 inline Recommendation& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
77
79
83 inline const Pattern& GetPattern() const{ return m_pattern; }
84 inline bool PatternHasBeenSet() const { return m_patternHasBeenSet; }
85 inline void SetPattern(const Pattern& value) { m_patternHasBeenSet = true; m_pattern = value; }
86 inline void SetPattern(Pattern&& value) { m_patternHasBeenSet = true; m_pattern = std::move(value); }
87 inline Recommendation& WithPattern(const Pattern& value) { SetPattern(value); return *this;}
88 inline Recommendation& WithPattern(Pattern&& value) { SetPattern(std::move(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 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
100 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
101 inline Recommendation& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
102 inline Recommendation& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(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 inline void SetTopMatches(const Aws::Vector<Match>& value) { m_topMatchesHasBeenSet = true; m_topMatches = value; }
112 inline void SetTopMatches(Aws::Vector<Match>&& value) { m_topMatchesHasBeenSet = true; m_topMatches = std::move(value); }
113 inline Recommendation& WithTopMatches(const Aws::Vector<Match>& value) { SetTopMatches(value); return *this;}
114 inline Recommendation& WithTopMatches(Aws::Vector<Match>&& value) { SetTopMatches(std::move(value)); return *this;}
115 inline Recommendation& AddTopMatches(const Match& value) { m_topMatchesHasBeenSet = true; m_topMatches.push_back(value); return *this; }
116 inline Recommendation& AddTopMatches(Match&& value) { m_topMatchesHasBeenSet = true; m_topMatches.push_back(std::move(value)); return *this; }
118 private:
119
120 int m_allMatchesCount;
121 bool m_allMatchesCountHasBeenSet = false;
122
123 double m_allMatchesSum;
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
void SetEndTime(Aws::Utils::DateTime &&value)
Recommendation & WithStartTime(Aws::Utils::DateTime &&value)
Recommendation & WithTopMatches(Aws::Vector< Match > &&value)
Recommendation & WithTopMatches(const Aws::Vector< Match > &value)
Recommendation & WithStartTime(const Aws::Utils::DateTime &value)
Recommendation & WithPattern(Pattern &&value)
void SetStartTime(Aws::Utils::DateTime &&value)
Recommendation & AddTopMatches(const Match &value)
Recommendation & WithPattern(const Pattern &value)
const Aws::Utils::DateTime & GetEndTime() const
const Aws::Vector< Match > & GetTopMatches() const
AWS_CODEGURUPROFILER_API Recommendation & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStartTime(const Aws::Utils::DateTime &value)
Recommendation & WithAllMatchesSum(double value)
Recommendation & AddTopMatches(Match &&value)
AWS_CODEGURUPROFILER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEndTime(const Aws::Utils::DateTime &value)
void SetTopMatches(Aws::Vector< Match > &&value)
const Aws::Utils::DateTime & GetStartTime() const
AWS_CODEGURUPROFILER_API Recommendation()
Recommendation & WithEndTime(Aws::Utils::DateTime &&value)
Recommendation & WithEndTime(const Aws::Utils::DateTime &value)
AWS_CODEGURUPROFILER_API Recommendation(Aws::Utils::Json::JsonView jsonValue)
void SetTopMatches(const Aws::Vector< Match > &value)
Recommendation & WithAllMatchesCount(int value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue