AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CandidateProperties.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/CandidateArtifactLocations.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/sagemaker/model/MetricDatum.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SageMaker
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_SAGEMAKER_API CandidateProperties() = default;
37 AWS_SAGEMAKER_API CandidateProperties(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const CandidateArtifactLocations& GetCandidateArtifactLocations() const { return m_candidateArtifactLocations; }
47 inline bool CandidateArtifactLocationsHasBeenSet() const { return m_candidateArtifactLocationsHasBeenSet; }
48 template<typename CandidateArtifactLocationsT = CandidateArtifactLocations>
49 void SetCandidateArtifactLocations(CandidateArtifactLocationsT&& value) { m_candidateArtifactLocationsHasBeenSet = true; m_candidateArtifactLocations = std::forward<CandidateArtifactLocationsT>(value); }
50 template<typename CandidateArtifactLocationsT = CandidateArtifactLocations>
51 CandidateProperties& WithCandidateArtifactLocations(CandidateArtifactLocationsT&& value) { SetCandidateArtifactLocations(std::forward<CandidateArtifactLocationsT>(value)); return *this;}
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) { m_candidateMetricsHasBeenSet = true; m_candidateMetrics = std::forward<CandidateMetricsT>(value); }
62 template<typename CandidateMetricsT = Aws::Vector<MetricDatum>>
63 CandidateProperties& WithCandidateMetrics(CandidateMetricsT&& value) { SetCandidateMetrics(std::forward<CandidateMetricsT>(value)); return *this;}
64 template<typename CandidateMetricsT = MetricDatum>
65 CandidateProperties& AddCandidateMetrics(CandidateMetricsT&& value) { m_candidateMetricsHasBeenSet = true; m_candidateMetrics.emplace_back(std::forward<CandidateMetricsT>(value)); return *this; }
67 private:
68
69 CandidateArtifactLocations m_candidateArtifactLocations;
70 bool m_candidateArtifactLocationsHasBeenSet = false;
71
72 Aws::Vector<MetricDatum> m_candidateMetrics;
73 bool m_candidateMetricsHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace SageMaker
78} // 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