AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
InferenceRecommendation.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/ModelConfiguration.h>
12#include <aws/sagemaker/model/RecommendationMetrics.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SageMaker {
24namespace Model {
25
33 public:
34 AWS_SAGEMAKER_API InferenceRecommendation() = default;
37 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetRecommendationId() const { return m_recommendationId; }
44 inline bool RecommendationIdHasBeenSet() const { return m_recommendationIdHasBeenSet; }
45 template <typename RecommendationIdT = Aws::String>
46 void SetRecommendationId(RecommendationIdT&& value) {
47 m_recommendationIdHasBeenSet = true;
48 m_recommendationId = std::forward<RecommendationIdT>(value);
49 }
50 template <typename RecommendationIdT = Aws::String>
51 InferenceRecommendation& WithRecommendationId(RecommendationIdT&& value) {
52 SetRecommendationId(std::forward<RecommendationIdT>(value));
53 return *this;
54 }
56
58
61 inline const RecommendationMetrics& GetMetrics() const { return m_metrics; }
62 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
63 template <typename MetricsT = RecommendationMetrics>
64 void SetMetrics(MetricsT&& value) {
65 m_metricsHasBeenSet = true;
66 m_metrics = std::forward<MetricsT>(value);
67 }
68 template <typename MetricsT = RecommendationMetrics>
70 SetMetrics(std::forward<MetricsT>(value));
71 return *this;
72 }
74
76
79 inline const EndpointOutputConfiguration& GetEndpointConfiguration() const { return m_endpointConfiguration; }
80 inline bool EndpointConfigurationHasBeenSet() const { return m_endpointConfigurationHasBeenSet; }
81 template <typename EndpointConfigurationT = EndpointOutputConfiguration>
82 void SetEndpointConfiguration(EndpointConfigurationT&& value) {
83 m_endpointConfigurationHasBeenSet = true;
84 m_endpointConfiguration = std::forward<EndpointConfigurationT>(value);
85 }
86 template <typename EndpointConfigurationT = EndpointOutputConfiguration>
87 InferenceRecommendation& WithEndpointConfiguration(EndpointConfigurationT&& value) {
88 SetEndpointConfiguration(std::forward<EndpointConfigurationT>(value));
89 return *this;
90 }
92
94
97 inline const ModelConfiguration& GetModelConfiguration() const { return m_modelConfiguration; }
98 inline bool ModelConfigurationHasBeenSet() const { return m_modelConfigurationHasBeenSet; }
99 template <typename ModelConfigurationT = ModelConfiguration>
100 void SetModelConfiguration(ModelConfigurationT&& value) {
101 m_modelConfigurationHasBeenSet = true;
102 m_modelConfiguration = std::forward<ModelConfigurationT>(value);
103 }
104 template <typename ModelConfigurationT = ModelConfiguration>
105 InferenceRecommendation& WithModelConfiguration(ModelConfigurationT&& value) {
106 SetModelConfiguration(std::forward<ModelConfigurationT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::Utils::DateTime& GetInvocationEndTime() const { return m_invocationEndTime; }
116 inline bool InvocationEndTimeHasBeenSet() const { return m_invocationEndTimeHasBeenSet; }
117 template <typename InvocationEndTimeT = Aws::Utils::DateTime>
118 void SetInvocationEndTime(InvocationEndTimeT&& value) {
119 m_invocationEndTimeHasBeenSet = true;
120 m_invocationEndTime = std::forward<InvocationEndTimeT>(value);
121 }
122 template <typename InvocationEndTimeT = Aws::Utils::DateTime>
123 InferenceRecommendation& WithInvocationEndTime(InvocationEndTimeT&& value) {
124 SetInvocationEndTime(std::forward<InvocationEndTimeT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::Utils::DateTime& GetInvocationStartTime() const { return m_invocationStartTime; }
134 inline bool InvocationStartTimeHasBeenSet() const { return m_invocationStartTimeHasBeenSet; }
135 template <typename InvocationStartTimeT = Aws::Utils::DateTime>
136 void SetInvocationStartTime(InvocationStartTimeT&& value) {
137 m_invocationStartTimeHasBeenSet = true;
138 m_invocationStartTime = std::forward<InvocationStartTimeT>(value);
139 }
140 template <typename InvocationStartTimeT = Aws::Utils::DateTime>
141 InferenceRecommendation& WithInvocationStartTime(InvocationStartTimeT&& value) {
142 SetInvocationStartTime(std::forward<InvocationStartTimeT>(value));
143 return *this;
144 }
146 private:
147 Aws::String m_recommendationId;
148
149 RecommendationMetrics m_metrics;
150
151 EndpointOutputConfiguration m_endpointConfiguration;
152
153 ModelConfiguration m_modelConfiguration;
154
155 Aws::Utils::DateTime m_invocationEndTime{};
156
157 Aws::Utils::DateTime m_invocationStartTime{};
158 bool m_recommendationIdHasBeenSet = false;
159 bool m_metricsHasBeenSet = false;
160 bool m_endpointConfigurationHasBeenSet = false;
161 bool m_modelConfigurationHasBeenSet = false;
162 bool m_invocationEndTimeHasBeenSet = false;
163 bool m_invocationStartTimeHasBeenSet = false;
164};
165
166} // namespace Model
167} // namespace SageMaker
168} // namespace Aws
AWS_SAGEMAKER_API InferenceRecommendation & operator=(Aws::Utils::Json::JsonView jsonValue)
InferenceRecommendation & WithModelConfiguration(ModelConfigurationT &&value)
AWS_SAGEMAKER_API InferenceRecommendation()=default
const ModelConfiguration & GetModelConfiguration() const
void SetEndpointConfiguration(EndpointConfigurationT &&value)
void SetInvocationStartTime(InvocationStartTimeT &&value)
const Aws::Utils::DateTime & GetInvocationEndTime() const
InferenceRecommendation & WithMetrics(MetricsT &&value)
InferenceRecommendation & WithEndpointConfiguration(EndpointConfigurationT &&value)
InferenceRecommendation & WithRecommendationId(RecommendationIdT &&value)
const EndpointOutputConfiguration & GetEndpointConfiguration() const
AWS_SAGEMAKER_API InferenceRecommendation(Aws::Utils::Json::JsonView jsonValue)
InferenceRecommendation & WithInvocationEndTime(InvocationEndTimeT &&value)
const RecommendationMetrics & GetMetrics() const
const Aws::Utils::DateTime & GetInvocationStartTime() const
void SetModelConfiguration(ModelConfigurationT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
InferenceRecommendation & WithInvocationStartTime(InvocationStartTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue