AWS SDK for C++  1.8.126
AWS SDK for C++
InferenceSpecification.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22  class JsonView;
23 } // namespace Json
24 } // namespace Utils
25 namespace SageMaker
26 {
27 namespace Model
28 {
29 
37  {
38  public:
43 
44 
49  inline const Aws::Vector<ModelPackageContainerDefinition>& GetContainers() const{ return m_containers; }
50 
55  inline bool ContainersHasBeenSet() const { return m_containersHasBeenSet; }
56 
61  inline void SetContainers(const Aws::Vector<ModelPackageContainerDefinition>& value) { m_containersHasBeenSet = true; m_containers = value; }
62 
67  inline void SetContainers(Aws::Vector<ModelPackageContainerDefinition>&& value) { m_containersHasBeenSet = true; m_containers = std::move(value); }
68 
73  inline InferenceSpecification& WithContainers(const Aws::Vector<ModelPackageContainerDefinition>& value) { SetContainers(value); return *this;}
74 
79  inline InferenceSpecification& WithContainers(Aws::Vector<ModelPackageContainerDefinition>&& value) { SetContainers(std::move(value)); return *this;}
80 
85  inline InferenceSpecification& AddContainers(const ModelPackageContainerDefinition& value) { m_containersHasBeenSet = true; m_containers.push_back(value); return *this; }
86 
91  inline InferenceSpecification& AddContainers(ModelPackageContainerDefinition&& value) { m_containersHasBeenSet = true; m_containers.push_back(std::move(value)); return *this; }
92 
93 
99  inline const Aws::Vector<TransformInstanceType>& GetSupportedTransformInstanceTypes() const{ return m_supportedTransformInstanceTypes; }
100 
106  inline bool SupportedTransformInstanceTypesHasBeenSet() const { return m_supportedTransformInstanceTypesHasBeenSet; }
107 
113  inline void SetSupportedTransformInstanceTypes(const Aws::Vector<TransformInstanceType>& value) { m_supportedTransformInstanceTypesHasBeenSet = true; m_supportedTransformInstanceTypes = value; }
114 
120  inline void SetSupportedTransformInstanceTypes(Aws::Vector<TransformInstanceType>&& value) { m_supportedTransformInstanceTypesHasBeenSet = true; m_supportedTransformInstanceTypes = std::move(value); }
121 
127  inline InferenceSpecification& WithSupportedTransformInstanceTypes(const Aws::Vector<TransformInstanceType>& value) { SetSupportedTransformInstanceTypes(value); return *this;}
128 
134  inline InferenceSpecification& WithSupportedTransformInstanceTypes(Aws::Vector<TransformInstanceType>&& value) { SetSupportedTransformInstanceTypes(std::move(value)); return *this;}
135 
141  inline InferenceSpecification& AddSupportedTransformInstanceTypes(const TransformInstanceType& value) { m_supportedTransformInstanceTypesHasBeenSet = true; m_supportedTransformInstanceTypes.push_back(value); return *this; }
142 
148  inline InferenceSpecification& AddSupportedTransformInstanceTypes(TransformInstanceType&& value) { m_supportedTransformInstanceTypesHasBeenSet = true; m_supportedTransformInstanceTypes.push_back(std::move(value)); return *this; }
149 
150 
156  inline const Aws::Vector<ProductionVariantInstanceType>& GetSupportedRealtimeInferenceInstanceTypes() const{ return m_supportedRealtimeInferenceInstanceTypes; }
157 
163  inline bool SupportedRealtimeInferenceInstanceTypesHasBeenSet() const { return m_supportedRealtimeInferenceInstanceTypesHasBeenSet; }
164 
170  inline void SetSupportedRealtimeInferenceInstanceTypes(const Aws::Vector<ProductionVariantInstanceType>& value) { m_supportedRealtimeInferenceInstanceTypesHasBeenSet = true; m_supportedRealtimeInferenceInstanceTypes = value; }
171 
177  inline void SetSupportedRealtimeInferenceInstanceTypes(Aws::Vector<ProductionVariantInstanceType>&& value) { m_supportedRealtimeInferenceInstanceTypesHasBeenSet = true; m_supportedRealtimeInferenceInstanceTypes = std::move(value); }
178 
184  inline InferenceSpecification& WithSupportedRealtimeInferenceInstanceTypes(const Aws::Vector<ProductionVariantInstanceType>& value) { SetSupportedRealtimeInferenceInstanceTypes(value); return *this;}
185 
191  inline InferenceSpecification& WithSupportedRealtimeInferenceInstanceTypes(Aws::Vector<ProductionVariantInstanceType>&& value) { SetSupportedRealtimeInferenceInstanceTypes(std::move(value)); return *this;}
192 
198  inline InferenceSpecification& AddSupportedRealtimeInferenceInstanceTypes(const ProductionVariantInstanceType& value) { m_supportedRealtimeInferenceInstanceTypesHasBeenSet = true; m_supportedRealtimeInferenceInstanceTypes.push_back(value); return *this; }
199 
205  inline InferenceSpecification& AddSupportedRealtimeInferenceInstanceTypes(ProductionVariantInstanceType&& value) { m_supportedRealtimeInferenceInstanceTypesHasBeenSet = true; m_supportedRealtimeInferenceInstanceTypes.push_back(std::move(value)); return *this; }
206 
207 
211  inline const Aws::Vector<Aws::String>& GetSupportedContentTypes() const{ return m_supportedContentTypes; }
212 
216  inline bool SupportedContentTypesHasBeenSet() const { return m_supportedContentTypesHasBeenSet; }
217 
221  inline void SetSupportedContentTypes(const Aws::Vector<Aws::String>& value) { m_supportedContentTypesHasBeenSet = true; m_supportedContentTypes = value; }
222 
226  inline void SetSupportedContentTypes(Aws::Vector<Aws::String>&& value) { m_supportedContentTypesHasBeenSet = true; m_supportedContentTypes = std::move(value); }
227 
231  inline InferenceSpecification& WithSupportedContentTypes(const Aws::Vector<Aws::String>& value) { SetSupportedContentTypes(value); return *this;}
232 
236  inline InferenceSpecification& WithSupportedContentTypes(Aws::Vector<Aws::String>&& value) { SetSupportedContentTypes(std::move(value)); return *this;}
237 
241  inline InferenceSpecification& AddSupportedContentTypes(const Aws::String& value) { m_supportedContentTypesHasBeenSet = true; m_supportedContentTypes.push_back(value); return *this; }
242 
246  inline InferenceSpecification& AddSupportedContentTypes(Aws::String&& value) { m_supportedContentTypesHasBeenSet = true; m_supportedContentTypes.push_back(std::move(value)); return *this; }
247 
251  inline InferenceSpecification& AddSupportedContentTypes(const char* value) { m_supportedContentTypesHasBeenSet = true; m_supportedContentTypes.push_back(value); return *this; }
252 
253 
257  inline const Aws::Vector<Aws::String>& GetSupportedResponseMIMETypes() const{ return m_supportedResponseMIMETypes; }
258 
262  inline bool SupportedResponseMIMETypesHasBeenSet() const { return m_supportedResponseMIMETypesHasBeenSet; }
263 
267  inline void SetSupportedResponseMIMETypes(const Aws::Vector<Aws::String>& value) { m_supportedResponseMIMETypesHasBeenSet = true; m_supportedResponseMIMETypes = value; }
268 
272  inline void SetSupportedResponseMIMETypes(Aws::Vector<Aws::String>&& value) { m_supportedResponseMIMETypesHasBeenSet = true; m_supportedResponseMIMETypes = std::move(value); }
273 
277  inline InferenceSpecification& WithSupportedResponseMIMETypes(const Aws::Vector<Aws::String>& value) { SetSupportedResponseMIMETypes(value); return *this;}
278 
282  inline InferenceSpecification& WithSupportedResponseMIMETypes(Aws::Vector<Aws::String>&& value) { SetSupportedResponseMIMETypes(std::move(value)); return *this;}
283 
287  inline InferenceSpecification& AddSupportedResponseMIMETypes(const Aws::String& value) { m_supportedResponseMIMETypesHasBeenSet = true; m_supportedResponseMIMETypes.push_back(value); return *this; }
288 
292  inline InferenceSpecification& AddSupportedResponseMIMETypes(Aws::String&& value) { m_supportedResponseMIMETypesHasBeenSet = true; m_supportedResponseMIMETypes.push_back(std::move(value)); return *this; }
293 
297  inline InferenceSpecification& AddSupportedResponseMIMETypes(const char* value) { m_supportedResponseMIMETypesHasBeenSet = true; m_supportedResponseMIMETypes.push_back(value); return *this; }
298 
299  private:
300 
302  bool m_containersHasBeenSet;
303 
304  Aws::Vector<TransformInstanceType> m_supportedTransformInstanceTypes;
305  bool m_supportedTransformInstanceTypesHasBeenSet;
306 
307  Aws::Vector<ProductionVariantInstanceType> m_supportedRealtimeInferenceInstanceTypes;
308  bool m_supportedRealtimeInferenceInstanceTypesHasBeenSet;
309 
310  Aws::Vector<Aws::String> m_supportedContentTypes;
311  bool m_supportedContentTypesHasBeenSet;
312 
313  Aws::Vector<Aws::String> m_supportedResponseMIMETypes;
314  bool m_supportedResponseMIMETypesHasBeenSet;
315  };
316 
317 } // namespace Model
318 } // namespace SageMaker
319 } // namespace Aws
ProductionVariantInstanceType.h
Aws::SageMaker::Model::InferenceSpecification::SetSupportedTransformInstanceTypes
void SetSupportedTransformInstanceTypes(const Aws::Vector< TransformInstanceType > &value)
Definition: InferenceSpecification.h:113
Aws::SageMaker::Model::InferenceSpecification::SetSupportedContentTypes
void SetSupportedContentTypes(const Aws::Vector< Aws::String > &value)
Definition: InferenceSpecification.h:221
SageMaker_EXPORTS.h
Aws::SageMaker::Model::InferenceSpecification::WithSupportedContentTypes
InferenceSpecification & WithSupportedContentTypes(Aws::Vector< Aws::String > &&value)
Definition: InferenceSpecification.h:236
Aws::SageMaker::Model::InferenceSpecification::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SageMaker::Model::InferenceSpecification::WithSupportedRealtimeInferenceInstanceTypes
InferenceSpecification & WithSupportedRealtimeInferenceInstanceTypes(const Aws::Vector< ProductionVariantInstanceType > &value)
Definition: InferenceSpecification.h:184
Aws::SageMaker::Model::InferenceSpecification::WithContainers
InferenceSpecification & WithContainers(Aws::Vector< ModelPackageContainerDefinition > &&value)
Definition: InferenceSpecification.h:79
Aws::SageMaker::Model::InferenceSpecification::SetSupportedRealtimeInferenceInstanceTypes
void SetSupportedRealtimeInferenceInstanceTypes(const Aws::Vector< ProductionVariantInstanceType > &value)
Definition: InferenceSpecification.h:170
Aws::SageMaker::Model::InferenceSpecification::WithSupportedRealtimeInferenceInstanceTypes
InferenceSpecification & WithSupportedRealtimeInferenceInstanceTypes(Aws::Vector< ProductionVariantInstanceType > &&value)
Definition: InferenceSpecification.h:191
Aws::SageMaker::Model::InferenceSpecification::AddContainers
InferenceSpecification & AddContainers(const ModelPackageContainerDefinition &value)
Definition: InferenceSpecification.h:85
Aws::SageMaker::Model::InferenceSpecification
Definition: InferenceSpecification.h:37
Aws::SageMaker::Model::InferenceSpecification::SetSupportedContentTypes
void SetSupportedContentTypes(Aws::Vector< Aws::String > &&value)
Definition: InferenceSpecification.h:226
Aws::SageMaker::Model::ModelPackageContainerDefinition
Definition: ModelPackageContainerDefinition.h:33
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SageMaker::Model::InferenceSpecification::SetContainers
void SetContainers(const Aws::Vector< ModelPackageContainerDefinition > &value)
Definition: InferenceSpecification.h:61
Aws::SageMaker::Model::InferenceSpecification::GetSupportedContentTypes
const Aws::Vector< Aws::String > & GetSupportedContentTypes() const
Definition: InferenceSpecification.h:211
ModelPackageContainerDefinition.h
Aws::SageMaker::Model::InferenceSpecification::AddSupportedTransformInstanceTypes
InferenceSpecification & AddSupportedTransformInstanceTypes(const TransformInstanceType &value)
Definition: InferenceSpecification.h:141
AWSVector.h
Aws::SageMaker::Model::InferenceSpecification::SetSupportedResponseMIMETypes
void SetSupportedResponseMIMETypes(const Aws::Vector< Aws::String > &value)
Definition: InferenceSpecification.h:267
Aws::SageMaker::Model::InferenceSpecification::WithSupportedResponseMIMETypes
InferenceSpecification & WithSupportedResponseMIMETypes(const Aws::Vector< Aws::String > &value)
Definition: InferenceSpecification.h:277
Aws::SageMaker::Model::InferenceSpecification::WithSupportedTransformInstanceTypes
InferenceSpecification & WithSupportedTransformInstanceTypes(const Aws::Vector< TransformInstanceType > &value)
Definition: InferenceSpecification.h:127
Aws::SageMaker::Model::InferenceSpecification::WithContainers
InferenceSpecification & WithContainers(const Aws::Vector< ModelPackageContainerDefinition > &value)
Definition: InferenceSpecification.h:73
Aws::SageMaker::Model::InferenceSpecification::WithSupportedTransformInstanceTypes
InferenceSpecification & WithSupportedTransformInstanceTypes(Aws::Vector< TransformInstanceType > &&value)
Definition: InferenceSpecification.h:134
Aws::SageMaker::Model::InferenceSpecification::SupportedResponseMIMETypesHasBeenSet
bool SupportedResponseMIMETypesHasBeenSet() const
Definition: InferenceSpecification.h:262
Aws::SageMaker::Model::InferenceSpecification::SetContainers
void SetContainers(Aws::Vector< ModelPackageContainerDefinition > &&value)
Definition: InferenceSpecification.h:67
Aws::SageMaker::Model::InferenceSpecification::GetSupportedTransformInstanceTypes
const Aws::Vector< TransformInstanceType > & GetSupportedTransformInstanceTypes() const
Definition: InferenceSpecification.h:99
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::InferenceSpecification::AddSupportedResponseMIMETypes
InferenceSpecification & AddSupportedResponseMIMETypes(Aws::String &&value)
Definition: InferenceSpecification.h:292
Aws::SageMaker::Model::TransformInstanceType
TransformInstanceType
Definition: TransformInstanceType.h:17
Aws::SageMaker::Model::InferenceSpecification::AddSupportedContentTypes
InferenceSpecification & AddSupportedContentTypes(const char *value)
Definition: InferenceSpecification.h:251
Aws::SageMaker::Model::InferenceSpecification::AddSupportedTransformInstanceTypes
InferenceSpecification & AddSupportedTransformInstanceTypes(TransformInstanceType &&value)
Definition: InferenceSpecification.h:148
Aws::SageMaker::Model::InferenceSpecification::GetSupportedResponseMIMETypes
const Aws::Vector< Aws::String > & GetSupportedResponseMIMETypes() const
Definition: InferenceSpecification.h:257
Aws::SageMaker::Model::InferenceSpecification::WithSupportedContentTypes
InferenceSpecification & WithSupportedContentTypes(const Aws::Vector< Aws::String > &value)
Definition: InferenceSpecification.h:231
Aws::SageMaker::Model::InferenceSpecification::WithSupportedResponseMIMETypes
InferenceSpecification & WithSupportedResponseMIMETypes(Aws::Vector< Aws::String > &&value)
Definition: InferenceSpecification.h:282
TransformInstanceType.h
Aws::SageMaker::Model::InferenceSpecification::SetSupportedResponseMIMETypes
void SetSupportedResponseMIMETypes(Aws::Vector< Aws::String > &&value)
Definition: InferenceSpecification.h:272
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::SageMaker::Model::InferenceSpecification::InferenceSpecification
InferenceSpecification(Aws::Utils::Json::JsonView jsonValue)
Aws::SageMaker::Model::InferenceSpecification::operator=
InferenceSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::SageMaker::Model::InferenceSpecification::SupportedContentTypesHasBeenSet
bool SupportedContentTypesHasBeenSet() const
Definition: InferenceSpecification.h:216
Aws::SageMaker::Model::InferenceSpecification::GetContainers
const Aws::Vector< ModelPackageContainerDefinition > & GetContainers() const
Definition: InferenceSpecification.h:49
Aws::SageMaker::Model::InferenceSpecification::SetSupportedTransformInstanceTypes
void SetSupportedTransformInstanceTypes(Aws::Vector< TransformInstanceType > &&value)
Definition: InferenceSpecification.h:120
Aws::SageMaker::Model::InferenceSpecification::SupportedTransformInstanceTypesHasBeenSet
bool SupportedTransformInstanceTypesHasBeenSet() const
Definition: InferenceSpecification.h:106
Aws::SageMaker::Model::ProductionVariantInstanceType
ProductionVariantInstanceType
Definition: ProductionVariantInstanceType.h:17
Aws::SageMaker::Model::InferenceSpecification::SupportedRealtimeInferenceInstanceTypesHasBeenSet
bool SupportedRealtimeInferenceInstanceTypesHasBeenSet() const
Definition: InferenceSpecification.h:163
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SageMaker::Model::InferenceSpecification::ContainersHasBeenSet
bool ContainersHasBeenSet() const
Definition: InferenceSpecification.h:55
Aws::SageMaker::Model::InferenceSpecification::GetSupportedRealtimeInferenceInstanceTypes
const Aws::Vector< ProductionVariantInstanceType > & GetSupportedRealtimeInferenceInstanceTypes() const
Definition: InferenceSpecification.h:156
Aws::SageMaker::Model::InferenceSpecification::AddSupportedResponseMIMETypes
InferenceSpecification & AddSupportedResponseMIMETypes(const Aws::String &value)
Definition: InferenceSpecification.h:287
Aws::SageMaker::Model::InferenceSpecification::SetSupportedRealtimeInferenceInstanceTypes
void SetSupportedRealtimeInferenceInstanceTypes(Aws::Vector< ProductionVariantInstanceType > &&value)
Definition: InferenceSpecification.h:177
Aws::SageMaker::Model::InferenceSpecification::AddSupportedResponseMIMETypes
InferenceSpecification & AddSupportedResponseMIMETypes(const char *value)
Definition: InferenceSpecification.h:297
Aws::SageMaker::Model::InferenceSpecification::AddSupportedContentTypes
InferenceSpecification & AddSupportedContentTypes(Aws::String &&value)
Definition: InferenceSpecification.h:246
Aws::SageMaker::Model::InferenceSpecification::AddSupportedRealtimeInferenceInstanceTypes
InferenceSpecification & AddSupportedRealtimeInferenceInstanceTypes(const ProductionVariantInstanceType &value)
Definition: InferenceSpecification.h:198
Aws::SageMaker::Model::InferenceSpecification::AddContainers
InferenceSpecification & AddContainers(ModelPackageContainerDefinition &&value)
Definition: InferenceSpecification.h:91
Aws::SageMaker::Model::InferenceSpecification::InferenceSpecification
InferenceSpecification()
Aws::SageMaker::Model::InferenceSpecification::AddSupportedContentTypes
InferenceSpecification & AddSupportedContentTypes(const Aws::String &value)
Definition: InferenceSpecification.h:241
Aws::SageMaker::Model::InferenceSpecification::AddSupportedRealtimeInferenceInstanceTypes
InferenceSpecification & AddSupportedRealtimeInferenceInstanceTypes(ProductionVariantInstanceType &&value)
Definition: InferenceSpecification.h:205