AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ModelQuality.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/MetricsSource.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SageMaker {
20namespace Model {
21
28 public:
29 AWS_SAGEMAKER_API ModelQuality() = default;
30 AWS_SAGEMAKER_API ModelQuality(Aws::Utils::Json::JsonView jsonValue);
31 AWS_SAGEMAKER_API ModelQuality& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const MetricsSource& GetStatistics() const { return m_statistics; }
39 inline bool StatisticsHasBeenSet() const { return m_statisticsHasBeenSet; }
40 template <typename StatisticsT = MetricsSource>
41 void SetStatistics(StatisticsT&& value) {
42 m_statisticsHasBeenSet = true;
43 m_statistics = std::forward<StatisticsT>(value);
44 }
45 template <typename StatisticsT = MetricsSource>
46 ModelQuality& WithStatistics(StatisticsT&& value) {
47 SetStatistics(std::forward<StatisticsT>(value));
48 return *this;
49 }
51
53
56 inline const MetricsSource& GetConstraints() const { return m_constraints; }
57 inline bool ConstraintsHasBeenSet() const { return m_constraintsHasBeenSet; }
58 template <typename ConstraintsT = MetricsSource>
59 void SetConstraints(ConstraintsT&& value) {
60 m_constraintsHasBeenSet = true;
61 m_constraints = std::forward<ConstraintsT>(value);
62 }
63 template <typename ConstraintsT = MetricsSource>
64 ModelQuality& WithConstraints(ConstraintsT&& value) {
65 SetConstraints(std::forward<ConstraintsT>(value));
66 return *this;
67 }
69 private:
70 MetricsSource m_statistics;
71
72 MetricsSource m_constraints;
73 bool m_statisticsHasBeenSet = false;
74 bool m_constraintsHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace SageMaker
79} // namespace Aws
const MetricsSource & GetStatistics() const
void SetConstraints(ConstraintsT &&value)
const MetricsSource & GetConstraints() const
AWS_SAGEMAKER_API ModelQuality()=default
AWS_SAGEMAKER_API ModelQuality(Aws::Utils::Json::JsonView jsonValue)
void SetStatistics(StatisticsT &&value)
ModelQuality & WithStatistics(StatisticsT &&value)
AWS_SAGEMAKER_API ModelQuality & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
ModelQuality & WithConstraints(ConstraintsT &&value)
Aws::Utils::Json::JsonValue JsonValue