AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
RecommendationJobInferenceBenchmark.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemaker/SageMaker_EXPORTS.h>
10#include <aws/sagemaker/model/EndpointOutputConfiguration.h>
11#include <aws/sagemaker/model/InferenceMetrics.h>
12#include <aws/sagemaker/model/ModelConfiguration.h>
13#include <aws/sagemaker/model/RecommendationMetrics.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SageMaker {
25namespace Model {
26
34 public:
35 AWS_SAGEMAKER_API RecommendationJobInferenceBenchmark() = default;
38 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
42 inline const RecommendationMetrics& GetMetrics() const { return m_metrics; }
43 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
44 template <typename MetricsT = RecommendationMetrics>
45 void SetMetrics(MetricsT&& value) {
46 m_metricsHasBeenSet = true;
47 m_metrics = std::forward<MetricsT>(value);
48 }
49 template <typename MetricsT = RecommendationMetrics>
51 SetMetrics(std::forward<MetricsT>(value));
52 return *this;
53 }
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) {
62 m_endpointMetricsHasBeenSet = true;
63 m_endpointMetrics = std::forward<EndpointMetricsT>(value);
64 }
65 template <typename EndpointMetricsT = InferenceMetrics>
67 SetEndpointMetrics(std::forward<EndpointMetricsT>(value));
68 return *this;
69 }
71
73
74 inline const EndpointOutputConfiguration& GetEndpointConfiguration() const { return m_endpointConfiguration; }
75 inline bool EndpointConfigurationHasBeenSet() const { return m_endpointConfigurationHasBeenSet; }
76 template <typename EndpointConfigurationT = EndpointOutputConfiguration>
77 void SetEndpointConfiguration(EndpointConfigurationT&& value) {
78 m_endpointConfigurationHasBeenSet = true;
79 m_endpointConfiguration = std::forward<EndpointConfigurationT>(value);
80 }
81 template <typename EndpointConfigurationT = EndpointOutputConfiguration>
83 SetEndpointConfiguration(std::forward<EndpointConfigurationT>(value));
84 return *this;
85 }
87
89
90 inline const ModelConfiguration& GetModelConfiguration() const { return m_modelConfiguration; }
91 inline bool ModelConfigurationHasBeenSet() const { return m_modelConfigurationHasBeenSet; }
92 template <typename ModelConfigurationT = ModelConfiguration>
93 void SetModelConfiguration(ModelConfigurationT&& value) {
94 m_modelConfigurationHasBeenSet = true;
95 m_modelConfiguration = std::forward<ModelConfigurationT>(value);
96 }
97 template <typename ModelConfigurationT = ModelConfiguration>
99 SetModelConfiguration(std::forward<ModelConfigurationT>(value));
100 return *this;
101 }
103
105
108 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
109 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
110 template <typename FailureReasonT = Aws::String>
111 void SetFailureReason(FailureReasonT&& value) {
112 m_failureReasonHasBeenSet = true;
113 m_failureReason = std::forward<FailureReasonT>(value);
114 }
115 template <typename FailureReasonT = Aws::String>
117 SetFailureReason(std::forward<FailureReasonT>(value));
118 return *this;
119 }
121
123
126 inline const Aws::Utils::DateTime& GetInvocationEndTime() const { return m_invocationEndTime; }
127 inline bool InvocationEndTimeHasBeenSet() const { return m_invocationEndTimeHasBeenSet; }
128 template <typename InvocationEndTimeT = Aws::Utils::DateTime>
129 void SetInvocationEndTime(InvocationEndTimeT&& value) {
130 m_invocationEndTimeHasBeenSet = true;
131 m_invocationEndTime = std::forward<InvocationEndTimeT>(value);
132 }
133 template <typename InvocationEndTimeT = Aws::Utils::DateTime>
135 SetInvocationEndTime(std::forward<InvocationEndTimeT>(value));
136 return *this;
137 }
139
141
144 inline const Aws::Utils::DateTime& GetInvocationStartTime() const { return m_invocationStartTime; }
145 inline bool InvocationStartTimeHasBeenSet() const { return m_invocationStartTimeHasBeenSet; }
146 template <typename InvocationStartTimeT = Aws::Utils::DateTime>
147 void SetInvocationStartTime(InvocationStartTimeT&& value) {
148 m_invocationStartTimeHasBeenSet = true;
149 m_invocationStartTime = std::forward<InvocationStartTimeT>(value);
150 }
151 template <typename InvocationStartTimeT = Aws::Utils::DateTime>
153 SetInvocationStartTime(std::forward<InvocationStartTimeT>(value));
154 return *this;
155 }
157 private:
158 RecommendationMetrics m_metrics;
159
160 InferenceMetrics m_endpointMetrics;
161
162 EndpointOutputConfiguration m_endpointConfiguration;
163
164 ModelConfiguration m_modelConfiguration;
165
166 Aws::String m_failureReason;
167
168 Aws::Utils::DateTime m_invocationEndTime{};
169
170 Aws::Utils::DateTime m_invocationStartTime{};
171 bool m_metricsHasBeenSet = false;
172 bool m_endpointMetricsHasBeenSet = false;
173 bool m_endpointConfigurationHasBeenSet = false;
174 bool m_modelConfigurationHasBeenSet = false;
175 bool m_failureReasonHasBeenSet = false;
176 bool m_invocationEndTimeHasBeenSet = false;
177 bool m_invocationStartTimeHasBeenSet = false;
178};
179
180} // namespace Model
181} // namespace SageMaker
182} // 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