/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SageMaker { namespace Model { /** *

Defines how to perform inference generation after a training job is * run.

See Also:

AWS * API Reference

*/ class InferenceSpecification { public: AWS_SAGEMAKER_API InferenceSpecification(); AWS_SAGEMAKER_API InferenceSpecification(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKER_API InferenceSpecification& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The Amazon ECR registry path of the Docker image that contains the inference * code.

*/ inline const Aws::Vector& GetContainers() const{ return m_containers; } /** *

The Amazon ECR registry path of the Docker image that contains the inference * code.

*/ inline bool ContainersHasBeenSet() const { return m_containersHasBeenSet; } /** *

The Amazon ECR registry path of the Docker image that contains the inference * code.

*/ inline void SetContainers(const Aws::Vector& value) { m_containersHasBeenSet = true; m_containers = value; } /** *

The Amazon ECR registry path of the Docker image that contains the inference * code.

*/ inline void SetContainers(Aws::Vector&& value) { m_containersHasBeenSet = true; m_containers = std::move(value); } /** *

The Amazon ECR registry path of the Docker image that contains the inference * code.

*/ inline InferenceSpecification& WithContainers(const Aws::Vector& value) { SetContainers(value); return *this;} /** *

The Amazon ECR registry path of the Docker image that contains the inference * code.

*/ inline InferenceSpecification& WithContainers(Aws::Vector&& value) { SetContainers(std::move(value)); return *this;} /** *

The Amazon ECR registry path of the Docker image that contains the inference * code.

*/ inline InferenceSpecification& AddContainers(const ModelPackageContainerDefinition& value) { m_containersHasBeenSet = true; m_containers.push_back(value); return *this; } /** *

The Amazon ECR registry path of the Docker image that contains the inference * code.

*/ inline InferenceSpecification& AddContainers(ModelPackageContainerDefinition&& value) { m_containersHasBeenSet = true; m_containers.push_back(std::move(value)); return *this; } /** *

A list of the instance types on which a transformation job can be run or on * which an endpoint can be deployed.

This parameter is required for * unversioned models, and optional for versioned models.

*/ inline const Aws::Vector& GetSupportedTransformInstanceTypes() const{ return m_supportedTransformInstanceTypes; } /** *

A list of the instance types on which a transformation job can be run or on * which an endpoint can be deployed.

This parameter is required for * unversioned models, and optional for versioned models.

*/ inline bool SupportedTransformInstanceTypesHasBeenSet() const { return m_supportedTransformInstanceTypesHasBeenSet; } /** *

A list of the instance types on which a transformation job can be run or on * which an endpoint can be deployed.

This parameter is required for * unversioned models, and optional for versioned models.

*/ inline void SetSupportedTransformInstanceTypes(const Aws::Vector& value) { m_supportedTransformInstanceTypesHasBeenSet = true; m_supportedTransformInstanceTypes = value; } /** *

A list of the instance types on which a transformation job can be run or on * which an endpoint can be deployed.

This parameter is required for * unversioned models, and optional for versioned models.

*/ inline void SetSupportedTransformInstanceTypes(Aws::Vector&& value) { m_supportedTransformInstanceTypesHasBeenSet = true; m_supportedTransformInstanceTypes = std::move(value); } /** *

A list of the instance types on which a transformation job can be run or on * which an endpoint can be deployed.

This parameter is required for * unversioned models, and optional for versioned models.

*/ inline InferenceSpecification& WithSupportedTransformInstanceTypes(const Aws::Vector& value) { SetSupportedTransformInstanceTypes(value); return *this;} /** *

A list of the instance types on which a transformation job can be run or on * which an endpoint can be deployed.

This parameter is required for * unversioned models, and optional for versioned models.

*/ inline InferenceSpecification& WithSupportedTransformInstanceTypes(Aws::Vector&& value) { SetSupportedTransformInstanceTypes(std::move(value)); return *this;} /** *

A list of the instance types on which a transformation job can be run or on * which an endpoint can be deployed.

This parameter is required for * unversioned models, and optional for versioned models.

*/ inline InferenceSpecification& AddSupportedTransformInstanceTypes(const TransformInstanceType& value) { m_supportedTransformInstanceTypesHasBeenSet = true; m_supportedTransformInstanceTypes.push_back(value); return *this; } /** *

A list of the instance types on which a transformation job can be run or on * which an endpoint can be deployed.

This parameter is required for * unversioned models, and optional for versioned models.

*/ inline InferenceSpecification& AddSupportedTransformInstanceTypes(TransformInstanceType&& value) { m_supportedTransformInstanceTypesHasBeenSet = true; m_supportedTransformInstanceTypes.push_back(std::move(value)); return *this; } /** *

A list of the instance types that are used to generate inferences in * real-time.

This parameter is required for unversioned models, and * optional for versioned models.

*/ inline const Aws::Vector& GetSupportedRealtimeInferenceInstanceTypes() const{ return m_supportedRealtimeInferenceInstanceTypes; } /** *

A list of the instance types that are used to generate inferences in * real-time.

This parameter is required for unversioned models, and * optional for versioned models.

*/ inline bool SupportedRealtimeInferenceInstanceTypesHasBeenSet() const { return m_supportedRealtimeInferenceInstanceTypesHasBeenSet; } /** *

A list of the instance types that are used to generate inferences in * real-time.

This parameter is required for unversioned models, and * optional for versioned models.

*/ inline void SetSupportedRealtimeInferenceInstanceTypes(const Aws::Vector& value) { m_supportedRealtimeInferenceInstanceTypesHasBeenSet = true; m_supportedRealtimeInferenceInstanceTypes = value; } /** *

A list of the instance types that are used to generate inferences in * real-time.

This parameter is required for unversioned models, and * optional for versioned models.

*/ inline void SetSupportedRealtimeInferenceInstanceTypes(Aws::Vector&& value) { m_supportedRealtimeInferenceInstanceTypesHasBeenSet = true; m_supportedRealtimeInferenceInstanceTypes = std::move(value); } /** *

A list of the instance types that are used to generate inferences in * real-time.

This parameter is required for unversioned models, and * optional for versioned models.

*/ inline InferenceSpecification& WithSupportedRealtimeInferenceInstanceTypes(const Aws::Vector& value) { SetSupportedRealtimeInferenceInstanceTypes(value); return *this;} /** *

A list of the instance types that are used to generate inferences in * real-time.

This parameter is required for unversioned models, and * optional for versioned models.

*/ inline InferenceSpecification& WithSupportedRealtimeInferenceInstanceTypes(Aws::Vector&& value) { SetSupportedRealtimeInferenceInstanceTypes(std::move(value)); return *this;} /** *

A list of the instance types that are used to generate inferences in * real-time.

This parameter is required for unversioned models, and * optional for versioned models.

*/ inline InferenceSpecification& AddSupportedRealtimeInferenceInstanceTypes(const ProductionVariantInstanceType& value) { m_supportedRealtimeInferenceInstanceTypesHasBeenSet = true; m_supportedRealtimeInferenceInstanceTypes.push_back(value); return *this; } /** *

A list of the instance types that are used to generate inferences in * real-time.

This parameter is required for unversioned models, and * optional for versioned models.

*/ inline InferenceSpecification& AddSupportedRealtimeInferenceInstanceTypes(ProductionVariantInstanceType&& value) { m_supportedRealtimeInferenceInstanceTypesHasBeenSet = true; m_supportedRealtimeInferenceInstanceTypes.push_back(std::move(value)); return *this; } /** *

The supported MIME types for the input data.

*/ inline const Aws::Vector& GetSupportedContentTypes() const{ return m_supportedContentTypes; } /** *

The supported MIME types for the input data.

*/ inline bool SupportedContentTypesHasBeenSet() const { return m_supportedContentTypesHasBeenSet; } /** *

The supported MIME types for the input data.

*/ inline void SetSupportedContentTypes(const Aws::Vector& value) { m_supportedContentTypesHasBeenSet = true; m_supportedContentTypes = value; } /** *

The supported MIME types for the input data.

*/ inline void SetSupportedContentTypes(Aws::Vector&& value) { m_supportedContentTypesHasBeenSet = true; m_supportedContentTypes = std::move(value); } /** *

The supported MIME types for the input data.

*/ inline InferenceSpecification& WithSupportedContentTypes(const Aws::Vector& value) { SetSupportedContentTypes(value); return *this;} /** *

The supported MIME types for the input data.

*/ inline InferenceSpecification& WithSupportedContentTypes(Aws::Vector&& value) { SetSupportedContentTypes(std::move(value)); return *this;} /** *

The supported MIME types for the input data.

*/ inline InferenceSpecification& AddSupportedContentTypes(const Aws::String& value) { m_supportedContentTypesHasBeenSet = true; m_supportedContentTypes.push_back(value); return *this; } /** *

The supported MIME types for the input data.

*/ inline InferenceSpecification& AddSupportedContentTypes(Aws::String&& value) { m_supportedContentTypesHasBeenSet = true; m_supportedContentTypes.push_back(std::move(value)); return *this; } /** *

The supported MIME types for the input data.

*/ inline InferenceSpecification& AddSupportedContentTypes(const char* value) { m_supportedContentTypesHasBeenSet = true; m_supportedContentTypes.push_back(value); return *this; } /** *

The supported MIME types for the output data.

*/ inline const Aws::Vector& GetSupportedResponseMIMETypes() const{ return m_supportedResponseMIMETypes; } /** *

The supported MIME types for the output data.

*/ inline bool SupportedResponseMIMETypesHasBeenSet() const { return m_supportedResponseMIMETypesHasBeenSet; } /** *

The supported MIME types for the output data.

*/ inline void SetSupportedResponseMIMETypes(const Aws::Vector& value) { m_supportedResponseMIMETypesHasBeenSet = true; m_supportedResponseMIMETypes = value; } /** *

The supported MIME types for the output data.

*/ inline void SetSupportedResponseMIMETypes(Aws::Vector&& value) { m_supportedResponseMIMETypesHasBeenSet = true; m_supportedResponseMIMETypes = std::move(value); } /** *

The supported MIME types for the output data.

*/ inline InferenceSpecification& WithSupportedResponseMIMETypes(const Aws::Vector& value) { SetSupportedResponseMIMETypes(value); return *this;} /** *

The supported MIME types for the output data.

*/ inline InferenceSpecification& WithSupportedResponseMIMETypes(Aws::Vector&& value) { SetSupportedResponseMIMETypes(std::move(value)); return *this;} /** *

The supported MIME types for the output data.

*/ inline InferenceSpecification& AddSupportedResponseMIMETypes(const Aws::String& value) { m_supportedResponseMIMETypesHasBeenSet = true; m_supportedResponseMIMETypes.push_back(value); return *this; } /** *

The supported MIME types for the output data.

*/ inline InferenceSpecification& AddSupportedResponseMIMETypes(Aws::String&& value) { m_supportedResponseMIMETypesHasBeenSet = true; m_supportedResponseMIMETypes.push_back(std::move(value)); return *this; } /** *

The supported MIME types for the output data.

*/ inline InferenceSpecification& AddSupportedResponseMIMETypes(const char* value) { m_supportedResponseMIMETypesHasBeenSet = true; m_supportedResponseMIMETypes.push_back(value); return *this; } private: Aws::Vector m_containers; bool m_containersHasBeenSet = false; Aws::Vector m_supportedTransformInstanceTypes; bool m_supportedTransformInstanceTypesHasBeenSet = false; Aws::Vector m_supportedRealtimeInferenceInstanceTypes; bool m_supportedRealtimeInferenceInstanceTypesHasBeenSet = false; Aws::Vector m_supportedContentTypes; bool m_supportedContentTypesHasBeenSet = false; Aws::Vector m_supportedResponseMIMETypes; bool m_supportedResponseMIMETypesHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws