/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SageMaker { namespace Model { /** *

The performance results from running an Inference Recommender job on an * existing endpoint.

See Also:

AWS * API Reference

*/ class EndpointPerformance { public: AWS_SAGEMAKER_API EndpointPerformance(); AWS_SAGEMAKER_API EndpointPerformance(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKER_API EndpointPerformance& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The metrics for an existing endpoint.

*/ inline const InferenceMetrics& GetMetrics() const{ return m_metrics; } /** *

The metrics for an existing endpoint.

*/ inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; } /** *

The metrics for an existing endpoint.

*/ inline void SetMetrics(const InferenceMetrics& value) { m_metricsHasBeenSet = true; m_metrics = value; } /** *

The metrics for an existing endpoint.

*/ inline void SetMetrics(InferenceMetrics&& value) { m_metricsHasBeenSet = true; m_metrics = std::move(value); } /** *

The metrics for an existing endpoint.

*/ inline EndpointPerformance& WithMetrics(const InferenceMetrics& value) { SetMetrics(value); return *this;} /** *

The metrics for an existing endpoint.

*/ inline EndpointPerformance& WithMetrics(InferenceMetrics&& value) { SetMetrics(std::move(value)); return *this;} inline const EndpointInfo& GetEndpointInfo() const{ return m_endpointInfo; } inline bool EndpointInfoHasBeenSet() const { return m_endpointInfoHasBeenSet; } inline void SetEndpointInfo(const EndpointInfo& value) { m_endpointInfoHasBeenSet = true; m_endpointInfo = value; } inline void SetEndpointInfo(EndpointInfo&& value) { m_endpointInfoHasBeenSet = true; m_endpointInfo = std::move(value); } inline EndpointPerformance& WithEndpointInfo(const EndpointInfo& value) { SetEndpointInfo(value); return *this;} inline EndpointPerformance& WithEndpointInfo(EndpointInfo&& value) { SetEndpointInfo(std::move(value)); return *this;} private: InferenceMetrics m_metrics; bool m_metricsHasBeenSet = false; EndpointInfo m_endpointInfo; bool m_endpointInfoHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws