AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ClarifyInferenceConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sagemaker/SageMaker_EXPORTS.h>
10#include <aws/sagemaker/model/ClarifyFeatureType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SageMaker {
22namespace Model {
23
31 public:
32 AWS_SAGEMAKER_API ClarifyInferenceConfig() = default;
35 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
45 inline const Aws::String& GetFeaturesAttribute() const { return m_featuresAttribute; }
46 inline bool FeaturesAttributeHasBeenSet() const { return m_featuresAttributeHasBeenSet; }
47 template <typename FeaturesAttributeT = Aws::String>
48 void SetFeaturesAttribute(FeaturesAttributeT&& value) {
49 m_featuresAttributeHasBeenSet = true;
50 m_featuresAttribute = std::forward<FeaturesAttributeT>(value);
51 }
52 template <typename FeaturesAttributeT = Aws::String>
53 ClarifyInferenceConfig& WithFeaturesAttribute(FeaturesAttributeT&& value) {
54 SetFeaturesAttribute(std::forward<FeaturesAttributeT>(value));
55 return *this;
56 }
58
60
68 inline const Aws::String& GetContentTemplate() const { return m_contentTemplate; }
69 inline bool ContentTemplateHasBeenSet() const { return m_contentTemplateHasBeenSet; }
70 template <typename ContentTemplateT = Aws::String>
71 void SetContentTemplate(ContentTemplateT&& value) {
72 m_contentTemplateHasBeenSet = true;
73 m_contentTemplate = std::forward<ContentTemplateT>(value);
74 }
75 template <typename ContentTemplateT = Aws::String>
76 ClarifyInferenceConfig& WithContentTemplate(ContentTemplateT&& value) {
77 SetContentTemplate(std::forward<ContentTemplateT>(value));
78 return *this;
79 }
81
83
95 inline int GetMaxRecordCount() const { return m_maxRecordCount; }
96 inline bool MaxRecordCountHasBeenSet() const { return m_maxRecordCountHasBeenSet; }
97 inline void SetMaxRecordCount(int value) {
98 m_maxRecordCountHasBeenSet = true;
99 m_maxRecordCount = value;
100 }
102 SetMaxRecordCount(value);
103 return *this;
104 }
106
108
112 inline int GetMaxPayloadInMB() const { return m_maxPayloadInMB; }
113 inline bool MaxPayloadInMBHasBeenSet() const { return m_maxPayloadInMBHasBeenSet; }
114 inline void SetMaxPayloadInMB(int value) {
115 m_maxPayloadInMBHasBeenSet = true;
116 m_maxPayloadInMB = value;
117 }
119 SetMaxPayloadInMB(value);
120 return *this;
121 }
123
125
139 inline int GetProbabilityIndex() const { return m_probabilityIndex; }
140 inline bool ProbabilityIndexHasBeenSet() const { return m_probabilityIndexHasBeenSet; }
141 inline void SetProbabilityIndex(int value) {
142 m_probabilityIndexHasBeenSet = true;
143 m_probabilityIndex = value;
144 }
146 SetProbabilityIndex(value);
147 return *this;
148 }
150
152
160 inline int GetLabelIndex() const { return m_labelIndex; }
161 inline bool LabelIndexHasBeenSet() const { return m_labelIndexHasBeenSet; }
162 inline void SetLabelIndex(int value) {
163 m_labelIndexHasBeenSet = true;
164 m_labelIndex = value;
165 }
167 SetLabelIndex(value);
168 return *this;
169 }
171
173
180 inline const Aws::String& GetProbabilityAttribute() const { return m_probabilityAttribute; }
181 inline bool ProbabilityAttributeHasBeenSet() const { return m_probabilityAttributeHasBeenSet; }
182 template <typename ProbabilityAttributeT = Aws::String>
183 void SetProbabilityAttribute(ProbabilityAttributeT&& value) {
184 m_probabilityAttributeHasBeenSet = true;
185 m_probabilityAttribute = std::forward<ProbabilityAttributeT>(value);
186 }
187 template <typename ProbabilityAttributeT = Aws::String>
188 ClarifyInferenceConfig& WithProbabilityAttribute(ProbabilityAttributeT&& value) {
189 SetProbabilityAttribute(std::forward<ProbabilityAttributeT>(value));
190 return *this;
191 }
193
195
203 inline const Aws::String& GetLabelAttribute() const { return m_labelAttribute; }
204 inline bool LabelAttributeHasBeenSet() const { return m_labelAttributeHasBeenSet; }
205 template <typename LabelAttributeT = Aws::String>
206 void SetLabelAttribute(LabelAttributeT&& value) {
207 m_labelAttributeHasBeenSet = true;
208 m_labelAttribute = std::forward<LabelAttributeT>(value);
209 }
210 template <typename LabelAttributeT = Aws::String>
211 ClarifyInferenceConfig& WithLabelAttribute(LabelAttributeT&& value) {
212 SetLabelAttribute(std::forward<LabelAttributeT>(value));
213 return *this;
214 }
216
218
228 inline const Aws::Vector<Aws::String>& GetLabelHeaders() const { return m_labelHeaders; }
229 inline bool LabelHeadersHasBeenSet() const { return m_labelHeadersHasBeenSet; }
230 template <typename LabelHeadersT = Aws::Vector<Aws::String>>
231 void SetLabelHeaders(LabelHeadersT&& value) {
232 m_labelHeadersHasBeenSet = true;
233 m_labelHeaders = std::forward<LabelHeadersT>(value);
234 }
235 template <typename LabelHeadersT = Aws::Vector<Aws::String>>
236 ClarifyInferenceConfig& WithLabelHeaders(LabelHeadersT&& value) {
237 SetLabelHeaders(std::forward<LabelHeadersT>(value));
238 return *this;
239 }
240 template <typename LabelHeadersT = Aws::String>
241 ClarifyInferenceConfig& AddLabelHeaders(LabelHeadersT&& value) {
242 m_labelHeadersHasBeenSet = true;
243 m_labelHeaders.emplace_back(std::forward<LabelHeadersT>(value));
244 return *this;
245 }
247
249
257 inline const Aws::Vector<Aws::String>& GetFeatureHeaders() const { return m_featureHeaders; }
258 inline bool FeatureHeadersHasBeenSet() const { return m_featureHeadersHasBeenSet; }
259 template <typename FeatureHeadersT = Aws::Vector<Aws::String>>
260 void SetFeatureHeaders(FeatureHeadersT&& value) {
261 m_featureHeadersHasBeenSet = true;
262 m_featureHeaders = std::forward<FeatureHeadersT>(value);
263 }
264 template <typename FeatureHeadersT = Aws::Vector<Aws::String>>
265 ClarifyInferenceConfig& WithFeatureHeaders(FeatureHeadersT&& value) {
266 SetFeatureHeaders(std::forward<FeatureHeadersT>(value));
267 return *this;
268 }
269 template <typename FeatureHeadersT = Aws::String>
270 ClarifyInferenceConfig& AddFeatureHeaders(FeatureHeadersT&& value) {
271 m_featureHeadersHasBeenSet = true;
272 m_featureHeaders.emplace_back(std::forward<FeatureHeadersT>(value));
273 return *this;
274 }
276
278
289 inline const Aws::Vector<ClarifyFeatureType>& GetFeatureTypes() const { return m_featureTypes; }
290 inline bool FeatureTypesHasBeenSet() const { return m_featureTypesHasBeenSet; }
291 template <typename FeatureTypesT = Aws::Vector<ClarifyFeatureType>>
292 void SetFeatureTypes(FeatureTypesT&& value) {
293 m_featureTypesHasBeenSet = true;
294 m_featureTypes = std::forward<FeatureTypesT>(value);
295 }
296 template <typename FeatureTypesT = Aws::Vector<ClarifyFeatureType>>
297 ClarifyInferenceConfig& WithFeatureTypes(FeatureTypesT&& value) {
298 SetFeatureTypes(std::forward<FeatureTypesT>(value));
299 return *this;
300 }
302 m_featureTypesHasBeenSet = true;
303 m_featureTypes.push_back(value);
304 return *this;
305 }
307 private:
308 Aws::String m_featuresAttribute;
309
310 Aws::String m_contentTemplate;
311
312 int m_maxRecordCount{0};
313
314 int m_maxPayloadInMB{0};
315
316 int m_probabilityIndex{0};
317
318 int m_labelIndex{0};
319
320 Aws::String m_probabilityAttribute;
321
322 Aws::String m_labelAttribute;
323
324 Aws::Vector<Aws::String> m_labelHeaders;
325
326 Aws::Vector<Aws::String> m_featureHeaders;
327
328 Aws::Vector<ClarifyFeatureType> m_featureTypes;
329 bool m_featuresAttributeHasBeenSet = false;
330 bool m_contentTemplateHasBeenSet = false;
331 bool m_maxRecordCountHasBeenSet = false;
332 bool m_maxPayloadInMBHasBeenSet = false;
333 bool m_probabilityIndexHasBeenSet = false;
334 bool m_labelIndexHasBeenSet = false;
335 bool m_probabilityAttributeHasBeenSet = false;
336 bool m_labelAttributeHasBeenSet = false;
337 bool m_labelHeadersHasBeenSet = false;
338 bool m_featureHeadersHasBeenSet = false;
339 bool m_featureTypesHasBeenSet = false;
340};
341
342} // namespace Model
343} // namespace SageMaker
344} // namespace Aws
ClarifyInferenceConfig & WithMaxPayloadInMB(int value)
ClarifyInferenceConfig & WithLabelIndex(int value)
void SetProbabilityAttribute(ProbabilityAttributeT &&value)
const Aws::Vector< Aws::String > & GetLabelHeaders() const
ClarifyInferenceConfig & WithProbabilityAttribute(ProbabilityAttributeT &&value)
ClarifyInferenceConfig & WithContentTemplate(ContentTemplateT &&value)
ClarifyInferenceConfig & WithLabelAttribute(LabelAttributeT &&value)
AWS_SAGEMAKER_API ClarifyInferenceConfig(Aws::Utils::Json::JsonView jsonValue)
ClarifyInferenceConfig & WithFeatureTypes(FeatureTypesT &&value)
ClarifyInferenceConfig & WithMaxRecordCount(int value)
ClarifyInferenceConfig & WithLabelHeaders(LabelHeadersT &&value)
ClarifyInferenceConfig & AddFeatureHeaders(FeatureHeadersT &&value)
const Aws::Vector< Aws::String > & GetFeatureHeaders() const
ClarifyInferenceConfig & WithFeatureHeaders(FeatureHeadersT &&value)
AWS_SAGEMAKER_API ClarifyInferenceConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
ClarifyInferenceConfig & AddLabelHeaders(LabelHeadersT &&value)
void SetFeaturesAttribute(FeaturesAttributeT &&value)
const Aws::Vector< ClarifyFeatureType > & GetFeatureTypes() const
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
ClarifyInferenceConfig & AddFeatureTypes(ClarifyFeatureType value)
AWS_SAGEMAKER_API ClarifyInferenceConfig()=default
ClarifyInferenceConfig & WithProbabilityIndex(int value)
ClarifyInferenceConfig & WithFeaturesAttribute(FeaturesAttributeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue