/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The details for a specific benchmark from an Inference Recommender
* job.See Also:
AWS
* API Reference
The reason why a benchmark failed.
*/ inline const Aws::String& GetFailureReason() const{ return m_failureReason; } /** *The reason why a benchmark failed.
*/ inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; } /** *The reason why a benchmark failed.
*/ inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; } /** *The reason why a benchmark failed.
*/ inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); } /** *The reason why a benchmark failed.
*/ inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); } /** *The reason why a benchmark failed.
*/ inline RecommendationJobInferenceBenchmark& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;} /** *The reason why a benchmark failed.
*/ inline RecommendationJobInferenceBenchmark& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;} /** *The reason why a benchmark failed.
*/ inline RecommendationJobInferenceBenchmark& WithFailureReason(const char* value) { SetFailureReason(value); return *this;} inline const InferenceMetrics& GetEndpointMetrics() const{ return m_endpointMetrics; } inline bool EndpointMetricsHasBeenSet() const { return m_endpointMetricsHasBeenSet; } inline void SetEndpointMetrics(const InferenceMetrics& value) { m_endpointMetricsHasBeenSet = true; m_endpointMetrics = value; } inline void SetEndpointMetrics(InferenceMetrics&& value) { m_endpointMetricsHasBeenSet = true; m_endpointMetrics = std::move(value); } inline RecommendationJobInferenceBenchmark& WithEndpointMetrics(const InferenceMetrics& value) { SetEndpointMetrics(value); return *this;} inline RecommendationJobInferenceBenchmark& WithEndpointMetrics(InferenceMetrics&& value) { SetEndpointMetrics(std::move(value)); return *this;} /** *A timestamp that shows when the benchmark completed.
*/ inline const Aws::Utils::DateTime& GetInvocationEndTime() const{ return m_invocationEndTime; } /** *A timestamp that shows when the benchmark completed.
*/ inline bool InvocationEndTimeHasBeenSet() const { return m_invocationEndTimeHasBeenSet; } /** *A timestamp that shows when the benchmark completed.
*/ inline void SetInvocationEndTime(const Aws::Utils::DateTime& value) { m_invocationEndTimeHasBeenSet = true; m_invocationEndTime = value; } /** *A timestamp that shows when the benchmark completed.
*/ inline void SetInvocationEndTime(Aws::Utils::DateTime&& value) { m_invocationEndTimeHasBeenSet = true; m_invocationEndTime = std::move(value); } /** *A timestamp that shows when the benchmark completed.
*/ inline RecommendationJobInferenceBenchmark& WithInvocationEndTime(const Aws::Utils::DateTime& value) { SetInvocationEndTime(value); return *this;} /** *A timestamp that shows when the benchmark completed.
*/ inline RecommendationJobInferenceBenchmark& WithInvocationEndTime(Aws::Utils::DateTime&& value) { SetInvocationEndTime(std::move(value)); return *this;} /** *A timestamp that shows when the benchmark started.
*/ inline const Aws::Utils::DateTime& GetInvocationStartTime() const{ return m_invocationStartTime; } /** *A timestamp that shows when the benchmark started.
*/ inline bool InvocationStartTimeHasBeenSet() const { return m_invocationStartTimeHasBeenSet; } /** *A timestamp that shows when the benchmark started.
*/ inline void SetInvocationStartTime(const Aws::Utils::DateTime& value) { m_invocationStartTimeHasBeenSet = true; m_invocationStartTime = value; } /** *A timestamp that shows when the benchmark started.
*/ inline void SetInvocationStartTime(Aws::Utils::DateTime&& value) { m_invocationStartTimeHasBeenSet = true; m_invocationStartTime = std::move(value); } /** *A timestamp that shows when the benchmark started.
*/ inline RecommendationJobInferenceBenchmark& WithInvocationStartTime(const Aws::Utils::DateTime& value) { SetInvocationStartTime(value); return *this;} /** *A timestamp that shows when the benchmark started.
*/ inline RecommendationJobInferenceBenchmark& WithInvocationStartTime(Aws::Utils::DateTime&& value) { SetInvocationStartTime(std::move(value)); return *this;} private: RecommendationMetrics m_metrics; bool m_metricsHasBeenSet = false; EndpointOutputConfiguration m_endpointConfiguration; bool m_endpointConfigurationHasBeenSet = false; ModelConfiguration m_modelConfiguration; bool m_modelConfigurationHasBeenSet = false; Aws::String m_failureReason; bool m_failureReasonHasBeenSet = false; InferenceMetrics m_endpointMetrics; bool m_endpointMetricsHasBeenSet = false; Aws::Utils::DateTime m_invocationEndTime; bool m_invocationEndTimeHasBeenSet = false; Aws::Utils::DateTime m_invocationStartTime; bool m_invocationStartTimeHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws