AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
RecommendationJobInferenceBenchmark.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/RecommendationMetrics.h>
9#include <aws/sagemaker/model/InferenceMetrics.h>
10#include <aws/sagemaker/model/EndpointOutputConfiguration.h>
11#include <aws/sagemaker/model/ModelConfiguration.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/DateTime.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace SageMaker
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_SAGEMAKER_API RecommendationJobInferenceBenchmark() = default;
43 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
48 inline const RecommendationMetrics& GetMetrics() const { return m_metrics; }
49 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
50 template<typename MetricsT = RecommendationMetrics>
51 void SetMetrics(MetricsT&& value) { m_metricsHasBeenSet = true; m_metrics = std::forward<MetricsT>(value); }
52 template<typename MetricsT = RecommendationMetrics>
53 RecommendationJobInferenceBenchmark& WithMetrics(MetricsT&& value) { SetMetrics(std::forward<MetricsT>(value)); return *this;}
55
57
58 inline const InferenceMetrics& GetEndpointMetrics() const { return m_endpointMetrics; }
59 inline bool EndpointMetricsHasBeenSet() const { return m_endpointMetricsHasBeenSet; }
60 template<typename EndpointMetricsT = InferenceMetrics>
61 void SetEndpointMetrics(EndpointMetricsT&& value) { m_endpointMetricsHasBeenSet = true; m_endpointMetrics = std::forward<EndpointMetricsT>(value); }
62 template<typename EndpointMetricsT = InferenceMetrics>
63 RecommendationJobInferenceBenchmark& WithEndpointMetrics(EndpointMetricsT&& value) { SetEndpointMetrics(std::forward<EndpointMetricsT>(value)); return *this;}
65
67
68 inline const EndpointOutputConfiguration& GetEndpointConfiguration() const { return m_endpointConfiguration; }
69 inline bool EndpointConfigurationHasBeenSet() const { return m_endpointConfigurationHasBeenSet; }
70 template<typename EndpointConfigurationT = EndpointOutputConfiguration>
71 void SetEndpointConfiguration(EndpointConfigurationT&& value) { m_endpointConfigurationHasBeenSet = true; m_endpointConfiguration = std::forward<EndpointConfigurationT>(value); }
72 template<typename EndpointConfigurationT = EndpointOutputConfiguration>
73 RecommendationJobInferenceBenchmark& WithEndpointConfiguration(EndpointConfigurationT&& value) { SetEndpointConfiguration(std::forward<EndpointConfigurationT>(value)); return *this;}
75
77
78 inline const ModelConfiguration& GetModelConfiguration() const { return m_modelConfiguration; }
79 inline bool ModelConfigurationHasBeenSet() const { return m_modelConfigurationHasBeenSet; }
80 template<typename ModelConfigurationT = ModelConfiguration>
81 void SetModelConfiguration(ModelConfigurationT&& value) { m_modelConfigurationHasBeenSet = true; m_modelConfiguration = std::forward<ModelConfigurationT>(value); }
82 template<typename ModelConfigurationT = ModelConfiguration>
83 RecommendationJobInferenceBenchmark& WithModelConfiguration(ModelConfigurationT&& value) { SetModelConfiguration(std::forward<ModelConfigurationT>(value)); return *this;}
85
87
90 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
91 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
92 template<typename FailureReasonT = Aws::String>
93 void SetFailureReason(FailureReasonT&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::forward<FailureReasonT>(value); }
94 template<typename FailureReasonT = Aws::String>
95 RecommendationJobInferenceBenchmark& WithFailureReason(FailureReasonT&& value) { SetFailureReason(std::forward<FailureReasonT>(value)); return *this;}
97
99
102 inline const Aws::Utils::DateTime& GetInvocationEndTime() const { return m_invocationEndTime; }
103 inline bool InvocationEndTimeHasBeenSet() const { return m_invocationEndTimeHasBeenSet; }
104 template<typename InvocationEndTimeT = Aws::Utils::DateTime>
105 void SetInvocationEndTime(InvocationEndTimeT&& value) { m_invocationEndTimeHasBeenSet = true; m_invocationEndTime = std::forward<InvocationEndTimeT>(value); }
106 template<typename InvocationEndTimeT = Aws::Utils::DateTime>
107 RecommendationJobInferenceBenchmark& WithInvocationEndTime(InvocationEndTimeT&& value) { SetInvocationEndTime(std::forward<InvocationEndTimeT>(value)); return *this;}
109
111
114 inline const Aws::Utils::DateTime& GetInvocationStartTime() const { return m_invocationStartTime; }
115 inline bool InvocationStartTimeHasBeenSet() const { return m_invocationStartTimeHasBeenSet; }
116 template<typename InvocationStartTimeT = Aws::Utils::DateTime>
117 void SetInvocationStartTime(InvocationStartTimeT&& value) { m_invocationStartTimeHasBeenSet = true; m_invocationStartTime = std::forward<InvocationStartTimeT>(value); }
118 template<typename InvocationStartTimeT = Aws::Utils::DateTime>
119 RecommendationJobInferenceBenchmark& WithInvocationStartTime(InvocationStartTimeT&& value) { SetInvocationStartTime(std::forward<InvocationStartTimeT>(value)); return *this;}
121 private:
122
123 RecommendationMetrics m_metrics;
124 bool m_metricsHasBeenSet = false;
125
126 InferenceMetrics m_endpointMetrics;
127 bool m_endpointMetricsHasBeenSet = false;
128
129 EndpointOutputConfiguration m_endpointConfiguration;
130 bool m_endpointConfigurationHasBeenSet = false;
131
132 ModelConfiguration m_modelConfiguration;
133 bool m_modelConfigurationHasBeenSet = false;
134
135 Aws::String m_failureReason;
136 bool m_failureReasonHasBeenSet = false;
137
138 Aws::Utils::DateTime m_invocationEndTime{};
139 bool m_invocationEndTimeHasBeenSet = false;
140
141 Aws::Utils::DateTime m_invocationStartTime{};
142 bool m_invocationStartTimeHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace SageMaker
147} // namespace Aws
RecommendationJobInferenceBenchmark & WithInvocationStartTime(InvocationStartTimeT &&value)
AWS_SAGEMAKER_API RecommendationJobInferenceBenchmark & operator=(Aws::Utils::Json::JsonView jsonValue)
RecommendationJobInferenceBenchmark & WithInvocationEndTime(InvocationEndTimeT &&value)
RecommendationJobInferenceBenchmark & WithModelConfiguration(ModelConfigurationT &&value)
RecommendationJobInferenceBenchmark & WithFailureReason(FailureReasonT &&value)
RecommendationJobInferenceBenchmark & WithEndpointConfiguration(EndpointConfigurationT &&value)
RecommendationJobInferenceBenchmark & WithEndpointMetrics(EndpointMetricsT &&value)
RecommendationJobInferenceBenchmark & WithMetrics(MetricsT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKER_API RecommendationJobInferenceBenchmark(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue