AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename ContainersT = Aws::Vector<ModelPackageContainerDefinition>>
53 void SetContainers(ContainersT&& value) { m_containersHasBeenSet = true; m_containers = std::forward<ContainersT>(value); }
54 template<typename ContainersT = Aws::Vector<ModelPackageContainerDefinition>>
55 InferenceSpecification& WithContainers(ContainersT&& value) { SetContainers(std::forward<ContainersT>(value)); return *this;}
56 template<typename ContainersT = ModelPackageContainerDefinition>
57 InferenceSpecification& AddContainers(ContainersT&& value) { m_containersHasBeenSet = true; m_containers.emplace_back(std::forward<ContainersT>(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 template<typename SupportedTransformInstanceTypesT = Aws::Vector<TransformInstanceType>>
69 void SetSupportedTransformInstanceTypes(SupportedTransformInstanceTypesT&& value) { m_supportedTransformInstanceTypesHasBeenSet = true; m_supportedTransformInstanceTypes = std::forward<SupportedTransformInstanceTypesT>(value); }
70 template<typename SupportedTransformInstanceTypesT = Aws::Vector<TransformInstanceType>>
71 InferenceSpecification& WithSupportedTransformInstanceTypes(SupportedTransformInstanceTypesT&& value) { SetSupportedTransformInstanceTypes(std::forward<SupportedTransformInstanceTypesT>(value)); return *this;}
72 inline InferenceSpecification& AddSupportedTransformInstanceTypes(TransformInstanceType value) { m_supportedTransformInstanceTypesHasBeenSet = true; m_supportedTransformInstanceTypes.push_back(value); return *this; }
74
76
81 inline const Aws::Vector<ProductionVariantInstanceType>& GetSupportedRealtimeInferenceInstanceTypes() const { return m_supportedRealtimeInferenceInstanceTypes; }
82 inline bool SupportedRealtimeInferenceInstanceTypesHasBeenSet() const { return m_supportedRealtimeInferenceInstanceTypesHasBeenSet; }
83 template<typename SupportedRealtimeInferenceInstanceTypesT = Aws::Vector<ProductionVariantInstanceType>>
84 void SetSupportedRealtimeInferenceInstanceTypes(SupportedRealtimeInferenceInstanceTypesT&& value) { m_supportedRealtimeInferenceInstanceTypesHasBeenSet = true; m_supportedRealtimeInferenceInstanceTypes = std::forward<SupportedRealtimeInferenceInstanceTypesT>(value); }
85 template<typename SupportedRealtimeInferenceInstanceTypesT = Aws::Vector<ProductionVariantInstanceType>>
86 InferenceSpecification& WithSupportedRealtimeInferenceInstanceTypes(SupportedRealtimeInferenceInstanceTypesT&& value) { SetSupportedRealtimeInferenceInstanceTypes(std::forward<SupportedRealtimeInferenceInstanceTypesT>(value)); return *this;}
87 inline InferenceSpecification& AddSupportedRealtimeInferenceInstanceTypes(ProductionVariantInstanceType value) { m_supportedRealtimeInferenceInstanceTypesHasBeenSet = true; m_supportedRealtimeInferenceInstanceTypes.push_back(value); return *this; }
89
91
94 inline const Aws::Vector<Aws::String>& GetSupportedContentTypes() const { return m_supportedContentTypes; }
95 inline bool SupportedContentTypesHasBeenSet() const { return m_supportedContentTypesHasBeenSet; }
96 template<typename SupportedContentTypesT = Aws::Vector<Aws::String>>
97 void SetSupportedContentTypes(SupportedContentTypesT&& value) { m_supportedContentTypesHasBeenSet = true; m_supportedContentTypes = std::forward<SupportedContentTypesT>(value); }
98 template<typename SupportedContentTypesT = Aws::Vector<Aws::String>>
99 InferenceSpecification& WithSupportedContentTypes(SupportedContentTypesT&& value) { SetSupportedContentTypes(std::forward<SupportedContentTypesT>(value)); return *this;}
100 template<typename SupportedContentTypesT = Aws::String>
101 InferenceSpecification& AddSupportedContentTypes(SupportedContentTypesT&& value) { m_supportedContentTypesHasBeenSet = true; m_supportedContentTypes.emplace_back(std::forward<SupportedContentTypesT>(value)); return *this; }
103
105
108 inline const Aws::Vector<Aws::String>& GetSupportedResponseMIMETypes() const { return m_supportedResponseMIMETypes; }
109 inline bool SupportedResponseMIMETypesHasBeenSet() const { return m_supportedResponseMIMETypesHasBeenSet; }
110 template<typename SupportedResponseMIMETypesT = Aws::Vector<Aws::String>>
111 void SetSupportedResponseMIMETypes(SupportedResponseMIMETypesT&& value) { m_supportedResponseMIMETypesHasBeenSet = true; m_supportedResponseMIMETypes = std::forward<SupportedResponseMIMETypesT>(value); }
112 template<typename SupportedResponseMIMETypesT = Aws::Vector<Aws::String>>
113 InferenceSpecification& WithSupportedResponseMIMETypes(SupportedResponseMIMETypesT&& value) { SetSupportedResponseMIMETypes(std::forward<SupportedResponseMIMETypesT>(value)); return *this;}
114 template<typename SupportedResponseMIMETypesT = Aws::String>
115 InferenceSpecification& AddSupportedResponseMIMETypes(SupportedResponseMIMETypesT&& value) { m_supportedResponseMIMETypesHasBeenSet = true; m_supportedResponseMIMETypes.emplace_back(std::forward<SupportedResponseMIMETypesT>(value)); return *this; }
117 private:
118
120 bool m_containersHasBeenSet = false;
121
122 Aws::Vector<TransformInstanceType> m_supportedTransformInstanceTypes;
123 bool m_supportedTransformInstanceTypesHasBeenSet = false;
124
125 Aws::Vector<ProductionVariantInstanceType> m_supportedRealtimeInferenceInstanceTypes;
126 bool m_supportedRealtimeInferenceInstanceTypesHasBeenSet = false;
127
128 Aws::Vector<Aws::String> m_supportedContentTypes;
129 bool m_supportedContentTypesHasBeenSet = false;
130
131 Aws::Vector<Aws::String> m_supportedResponseMIMETypes;
132 bool m_supportedResponseMIMETypesHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace SageMaker
137} // namespace Aws
AWS_SAGEMAKER_API InferenceSpecification()=default
void SetSupportedContentTypes(SupportedContentTypesT &&value)
const Aws::Vector< TransformInstanceType > & GetSupportedTransformInstanceTypes() const
void SetSupportedResponseMIMETypes(SupportedResponseMIMETypesT &&value)
InferenceSpecification & WithSupportedResponseMIMETypes(SupportedResponseMIMETypesT &&value)
InferenceSpecification & WithContainers(ContainersT &&value)
AWS_SAGEMAKER_API InferenceSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSupportedRealtimeInferenceInstanceTypes(SupportedRealtimeInferenceInstanceTypesT &&value)
AWS_SAGEMAKER_API InferenceSpecification(Aws::Utils::Json::JsonView jsonValue)
InferenceSpecification & WithSupportedContentTypes(SupportedContentTypesT &&value)
InferenceSpecification & AddSupportedResponseMIMETypes(SupportedResponseMIMETypesT &&value)
InferenceSpecification & WithSupportedRealtimeInferenceInstanceTypes(SupportedRealtimeInferenceInstanceTypesT &&value)
const Aws::Vector< Aws::String > & GetSupportedContentTypes() const
InferenceSpecification & AddContainers(ContainersT &&value)
void SetSupportedTransformInstanceTypes(SupportedTransformInstanceTypesT &&value)
InferenceSpecification & WithSupportedTransformInstanceTypes(SupportedTransformInstanceTypesT &&value)
const Aws::Vector< Aws::String > & GetSupportedResponseMIMETypes() const
InferenceSpecification & AddSupportedRealtimeInferenceInstanceTypes(ProductionVariantInstanceType value)
InferenceSpecification & AddSupportedContentTypes(SupportedContentTypesT &&value)
const Aws::Vector< ModelPackageContainerDefinition > & GetContainers() const
const Aws::Vector< ProductionVariantInstanceType > & GetSupportedRealtimeInferenceInstanceTypes() const
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
InferenceSpecification & AddSupportedTransformInstanceTypes(TransformInstanceType value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue