AWS SDK for C++

AWS SDK for C++ Version 1.11.686

Loading...
Searching...
No Matches
EvaluationResult.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/rekognition/model/Summary.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Rekognition {
20namespace Model {
21
29 public:
30 AWS_REKOGNITION_API EvaluationResult() = default;
31 AWS_REKOGNITION_API EvaluationResult(Aws::Utils::Json::JsonView jsonValue);
32 AWS_REKOGNITION_API EvaluationResult& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
42 inline double GetF1Score() const { return m_f1Score; }
43 inline bool F1ScoreHasBeenSet() const { return m_f1ScoreHasBeenSet; }
44 inline void SetF1Score(double value) {
45 m_f1ScoreHasBeenSet = true;
46 m_f1Score = value;
47 }
48 inline EvaluationResult& WithF1Score(double value) {
49 SetF1Score(value);
50 return *this;
51 }
53
55
58 inline const Summary& GetSummary() const { return m_summary; }
59 inline bool SummaryHasBeenSet() const { return m_summaryHasBeenSet; }
60 template <typename SummaryT = Summary>
61 void SetSummary(SummaryT&& value) {
62 m_summaryHasBeenSet = true;
63 m_summary = std::forward<SummaryT>(value);
64 }
65 template <typename SummaryT = Summary>
66 EvaluationResult& WithSummary(SummaryT&& value) {
67 SetSummary(std::forward<SummaryT>(value));
68 return *this;
69 }
71 private:
72 double m_f1Score{0.0};
73 bool m_f1ScoreHasBeenSet = false;
74
75 Summary m_summary;
76 bool m_summaryHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace Rekognition
81} // namespace Aws
EvaluationResult & WithF1Score(double value)
EvaluationResult & WithSummary(SummaryT &&value)
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_REKOGNITION_API EvaluationResult(Aws::Utils::Json::JsonView jsonValue)
AWS_REKOGNITION_API EvaluationResult & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_REKOGNITION_API EvaluationResult()=default
Aws::Utils::Json::JsonValue JsonValue