AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CandidateProperties.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/sagemaker/SageMaker_EXPORTS.h>
9#include <aws/sagemaker/model/CandidateArtifactLocations.h>
10#include <aws/sagemaker/model/MetricDatum.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SageMaker {
22namespace Model {
23
30 public:
31 AWS_SAGEMAKER_API CandidateProperties() = default;
32 AWS_SAGEMAKER_API CandidateProperties(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const CandidateArtifactLocations& GetCandidateArtifactLocations() const { return m_candidateArtifactLocations; }
41 inline bool CandidateArtifactLocationsHasBeenSet() const { return m_candidateArtifactLocationsHasBeenSet; }
42 template <typename CandidateArtifactLocationsT = CandidateArtifactLocations>
43 void SetCandidateArtifactLocations(CandidateArtifactLocationsT&& value) {
44 m_candidateArtifactLocationsHasBeenSet = true;
45 m_candidateArtifactLocations = std::forward<CandidateArtifactLocationsT>(value);
46 }
47 template <typename CandidateArtifactLocationsT = CandidateArtifactLocations>
48 CandidateProperties& WithCandidateArtifactLocations(CandidateArtifactLocationsT&& value) {
49 SetCandidateArtifactLocations(std::forward<CandidateArtifactLocationsT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Vector<MetricDatum>& GetCandidateMetrics() const { return m_candidateMetrics; }
59 inline bool CandidateMetricsHasBeenSet() const { return m_candidateMetricsHasBeenSet; }
60 template <typename CandidateMetricsT = Aws::Vector<MetricDatum>>
61 void SetCandidateMetrics(CandidateMetricsT&& value) {
62 m_candidateMetricsHasBeenSet = true;
63 m_candidateMetrics = std::forward<CandidateMetricsT>(value);
64 }
65 template <typename CandidateMetricsT = Aws::Vector<MetricDatum>>
66 CandidateProperties& WithCandidateMetrics(CandidateMetricsT&& value) {
67 SetCandidateMetrics(std::forward<CandidateMetricsT>(value));
68 return *this;
69 }
70 template <typename CandidateMetricsT = MetricDatum>
71 CandidateProperties& AddCandidateMetrics(CandidateMetricsT&& value) {
72 m_candidateMetricsHasBeenSet = true;
73 m_candidateMetrics.emplace_back(std::forward<CandidateMetricsT>(value));
74 return *this;
75 }
77 private:
78 CandidateArtifactLocations m_candidateArtifactLocations;
79
80 Aws::Vector<MetricDatum> m_candidateMetrics;
81 bool m_candidateArtifactLocationsHasBeenSet = false;
82 bool m_candidateMetricsHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace SageMaker
87} // namespace Aws
CandidateProperties & AddCandidateMetrics(CandidateMetricsT &&value)
AWS_SAGEMAKER_API CandidateProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API CandidateProperties(Aws::Utils::Json::JsonView jsonValue)
CandidateProperties & WithCandidateArtifactLocations(CandidateArtifactLocationsT &&value)
AWS_SAGEMAKER_API CandidateProperties()=default
const Aws::Vector< MetricDatum > & GetCandidateMetrics() const
void SetCandidateArtifactLocations(CandidateArtifactLocationsT &&value)
CandidateProperties & WithCandidateMetrics(CandidateMetricsT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCandidateMetrics(CandidateMetricsT &&value)
const CandidateArtifactLocations & GetCandidateArtifactLocations() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue