AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InferenceSpecification.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sagemaker/model/ModelPackageContainerDefinition.h>
10#include <aws/sagemaker/model/TransformInstanceType.h>
11#include <aws/sagemaker/model/ProductionVariantInstanceType.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace SageMaker
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_SAGEMAKER_API InferenceSpecification();
42 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Aws::Vector<ModelPackageContainerDefinition>& GetContainers() const{ return m_containers; }
51 inline bool ContainersHasBeenSet() const { return m_containersHasBeenSet; }
52 inline void SetContainers(const Aws::Vector<ModelPackageContainerDefinition>& value) { m_containersHasBeenSet = true; m_containers = value; }
53 inline void SetContainers(Aws::Vector<ModelPackageContainerDefinition>&& value) { m_containersHasBeenSet = true; m_containers = std::move(value); }
56 inline InferenceSpecification& AddContainers(const ModelPackageContainerDefinition& value) { m_containersHasBeenSet = true; m_containers.push_back(value); return *this; }
57 inline InferenceSpecification& AddContainers(ModelPackageContainerDefinition&& value) { m_containersHasBeenSet = true; m_containers.push_back(std::move(value)); return *this; }
59
61
66 inline const Aws::Vector<TransformInstanceType>& GetSupportedTransformInstanceTypes() const{ return m_supportedTransformInstanceTypes; }
67 inline bool SupportedTransformInstanceTypesHasBeenSet() const { return m_supportedTransformInstanceTypesHasBeenSet; }
68 inline void SetSupportedTransformInstanceTypes(const Aws::Vector<TransformInstanceType>& value) { m_supportedTransformInstanceTypesHasBeenSet = true; m_supportedTransformInstanceTypes = value; }
69 inline void SetSupportedTransformInstanceTypes(Aws::Vector<TransformInstanceType>&& value) { m_supportedTransformInstanceTypesHasBeenSet = true; m_supportedTransformInstanceTypes = std::move(value); }
72 inline InferenceSpecification& AddSupportedTransformInstanceTypes(const TransformInstanceType& value) { m_supportedTransformInstanceTypesHasBeenSet = true; m_supportedTransformInstanceTypes.push_back(value); return *this; }
73 inline InferenceSpecification& AddSupportedTransformInstanceTypes(TransformInstanceType&& value) { m_supportedTransformInstanceTypesHasBeenSet = true; m_supportedTransformInstanceTypes.push_back(std::move(value)); return *this; }
75
77
82 inline const Aws::Vector<ProductionVariantInstanceType>& GetSupportedRealtimeInferenceInstanceTypes() const{ return m_supportedRealtimeInferenceInstanceTypes; }
83 inline bool SupportedRealtimeInferenceInstanceTypesHasBeenSet() const { return m_supportedRealtimeInferenceInstanceTypesHasBeenSet; }
84 inline void SetSupportedRealtimeInferenceInstanceTypes(const Aws::Vector<ProductionVariantInstanceType>& value) { m_supportedRealtimeInferenceInstanceTypesHasBeenSet = true; m_supportedRealtimeInferenceInstanceTypes = value; }
85 inline void SetSupportedRealtimeInferenceInstanceTypes(Aws::Vector<ProductionVariantInstanceType>&& value) { m_supportedRealtimeInferenceInstanceTypesHasBeenSet = true; m_supportedRealtimeInferenceInstanceTypes = std::move(value); }
88 inline InferenceSpecification& AddSupportedRealtimeInferenceInstanceTypes(const ProductionVariantInstanceType& value) { m_supportedRealtimeInferenceInstanceTypesHasBeenSet = true; m_supportedRealtimeInferenceInstanceTypes.push_back(value); return *this; }
89 inline InferenceSpecification& AddSupportedRealtimeInferenceInstanceTypes(ProductionVariantInstanceType&& value) { m_supportedRealtimeInferenceInstanceTypesHasBeenSet = true; m_supportedRealtimeInferenceInstanceTypes.push_back(std::move(value)); return *this; }
91
93
96 inline const Aws::Vector<Aws::String>& GetSupportedContentTypes() const{ return m_supportedContentTypes; }
97 inline bool SupportedContentTypesHasBeenSet() const { return m_supportedContentTypesHasBeenSet; }
98 inline void SetSupportedContentTypes(const Aws::Vector<Aws::String>& value) { m_supportedContentTypesHasBeenSet = true; m_supportedContentTypes = value; }
99 inline void SetSupportedContentTypes(Aws::Vector<Aws::String>&& value) { m_supportedContentTypesHasBeenSet = true; m_supportedContentTypes = std::move(value); }
102 inline InferenceSpecification& AddSupportedContentTypes(const Aws::String& value) { m_supportedContentTypesHasBeenSet = true; m_supportedContentTypes.push_back(value); return *this; }
103 inline InferenceSpecification& AddSupportedContentTypes(Aws::String&& value) { m_supportedContentTypesHasBeenSet = true; m_supportedContentTypes.push_back(std::move(value)); return *this; }
104 inline InferenceSpecification& AddSupportedContentTypes(const char* value) { m_supportedContentTypesHasBeenSet = true; m_supportedContentTypes.push_back(value); return *this; }
106
108
111 inline const Aws::Vector<Aws::String>& GetSupportedResponseMIMETypes() const{ return m_supportedResponseMIMETypes; }
112 inline bool SupportedResponseMIMETypesHasBeenSet() const { return m_supportedResponseMIMETypesHasBeenSet; }
113 inline void SetSupportedResponseMIMETypes(const Aws::Vector<Aws::String>& value) { m_supportedResponseMIMETypesHasBeenSet = true; m_supportedResponseMIMETypes = value; }
114 inline void SetSupportedResponseMIMETypes(Aws::Vector<Aws::String>&& value) { m_supportedResponseMIMETypesHasBeenSet = true; m_supportedResponseMIMETypes = std::move(value); }
117 inline InferenceSpecification& AddSupportedResponseMIMETypes(const Aws::String& value) { m_supportedResponseMIMETypesHasBeenSet = true; m_supportedResponseMIMETypes.push_back(value); return *this; }
118 inline InferenceSpecification& AddSupportedResponseMIMETypes(Aws::String&& value) { m_supportedResponseMIMETypesHasBeenSet = true; m_supportedResponseMIMETypes.push_back(std::move(value)); return *this; }
119 inline InferenceSpecification& AddSupportedResponseMIMETypes(const char* value) { m_supportedResponseMIMETypesHasBeenSet = true; m_supportedResponseMIMETypes.push_back(value); return *this; }
121 private:
122
124 bool m_containersHasBeenSet = false;
125
126 Aws::Vector<TransformInstanceType> m_supportedTransformInstanceTypes;
127 bool m_supportedTransformInstanceTypesHasBeenSet = false;
128
129 Aws::Vector<ProductionVariantInstanceType> m_supportedRealtimeInferenceInstanceTypes;
130 bool m_supportedRealtimeInferenceInstanceTypesHasBeenSet = false;
131
132 Aws::Vector<Aws::String> m_supportedContentTypes;
133 bool m_supportedContentTypesHasBeenSet = false;
134
135 Aws::Vector<Aws::String> m_supportedResponseMIMETypes;
136 bool m_supportedResponseMIMETypesHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace SageMaker
141} // namespace Aws
void SetContainers(Aws::Vector< ModelPackageContainerDefinition > &&value)
void SetSupportedTransformInstanceTypes(const Aws::Vector< TransformInstanceType > &value)
InferenceSpecification & WithSupportedTransformInstanceTypes(Aws::Vector< TransformInstanceType > &&value)
InferenceSpecification & AddContainers(const ModelPackageContainerDefinition &value)
InferenceSpecification & AddContainers(ModelPackageContainerDefinition &&value)
const Aws::Vector< TransformInstanceType > & GetSupportedTransformInstanceTypes() const
void SetContainers(const Aws::Vector< ModelPackageContainerDefinition > &value)
void SetSupportedTransformInstanceTypes(Aws::Vector< TransformInstanceType > &&value)
void SetSupportedContentTypes(const Aws::Vector< Aws::String > &value)
InferenceSpecification & WithSupportedTransformInstanceTypes(const Aws::Vector< TransformInstanceType > &value)
InferenceSpecification & AddSupportedResponseMIMETypes(const Aws::String &value)
AWS_SAGEMAKER_API InferenceSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
InferenceSpecification & AddSupportedRealtimeInferenceInstanceTypes(const ProductionVariantInstanceType &value)
InferenceSpecification & WithSupportedResponseMIMETypes(Aws::Vector< Aws::String > &&value)
InferenceSpecification & AddSupportedTransformInstanceTypes(TransformInstanceType &&value)
InferenceSpecification & WithSupportedContentTypes(const Aws::Vector< Aws::String > &value)
AWS_SAGEMAKER_API InferenceSpecification(Aws::Utils::Json::JsonView jsonValue)
InferenceSpecification & AddSupportedRealtimeInferenceInstanceTypes(ProductionVariantInstanceType &&value)
const Aws::Vector< Aws::String > & GetSupportedContentTypes() const
InferenceSpecification & WithContainers(Aws::Vector< ModelPackageContainerDefinition > &&value)
InferenceSpecification & WithContainers(const Aws::Vector< ModelPackageContainerDefinition > &value)
InferenceSpecification & WithSupportedContentTypes(Aws::Vector< Aws::String > &&value)
void SetSupportedContentTypes(Aws::Vector< Aws::String > &&value)
InferenceSpecification & WithSupportedResponseMIMETypes(const Aws::Vector< Aws::String > &value)
InferenceSpecification & AddSupportedContentTypes(Aws::String &&value)
InferenceSpecification & AddSupportedResponseMIMETypes(const char *value)
void SetSupportedRealtimeInferenceInstanceTypes(const Aws::Vector< ProductionVariantInstanceType > &value)
void SetSupportedResponseMIMETypes(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetSupportedResponseMIMETypes() const
InferenceSpecification & AddSupportedResponseMIMETypes(Aws::String &&value)
InferenceSpecification & WithSupportedRealtimeInferenceInstanceTypes(const Aws::Vector< ProductionVariantInstanceType > &value)
InferenceSpecification & AddSupportedContentTypes(const Aws::String &value)
void SetSupportedResponseMIMETypes(const Aws::Vector< Aws::String > &value)
const Aws::Vector< ModelPackageContainerDefinition > & GetContainers() const
const Aws::Vector< ProductionVariantInstanceType > & GetSupportedRealtimeInferenceInstanceTypes() const
InferenceSpecification & AddSupportedTransformInstanceTypes(const TransformInstanceType &value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
InferenceSpecification & AddSupportedContentTypes(const char *value)
void SetSupportedRealtimeInferenceInstanceTypes(Aws::Vector< ProductionVariantInstanceType > &&value)
InferenceSpecification & WithSupportedRealtimeInferenceInstanceTypes(Aws::Vector< ProductionVariantInstanceType > &&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