/** * 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 { /** *

A structure of additional Inference Specification. Additional Inference * Specification specifies details about inference jobs that can be run with models * based on this model package

See Also:

AWS * API Reference

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

A unique name to identify the additional inference specification. The name * must be unique within the list of your additional inference specifications for a * particular model package.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

A unique name to identify the additional inference specification. The name * must be unique within the list of your additional inference specifications for a * particular model package.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

A unique name to identify the additional inference specification. The name * must be unique within the list of your additional inference specifications for a * particular model package.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

A unique name to identify the additional inference specification. The name * must be unique within the list of your additional inference specifications for a * particular model package.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

A unique name to identify the additional inference specification. The name * must be unique within the list of your additional inference specifications for a * particular model package.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

A unique name to identify the additional inference specification. The name * must be unique within the list of your additional inference specifications for a * particular model package.

*/ inline AdditionalInferenceSpecificationDefinition& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

A unique name to identify the additional inference specification. The name * must be unique within the list of your additional inference specifications for a * particular model package.

*/ inline AdditionalInferenceSpecificationDefinition& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

A unique name to identify the additional inference specification. The name * must be unique within the list of your additional inference specifications for a * particular model package.

*/ inline AdditionalInferenceSpecificationDefinition& WithName(const char* value) { SetName(value); return *this;} /** *

A description of the additional Inference specification

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description of the additional Inference specification

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description of the additional Inference specification

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A description of the additional Inference specification

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A description of the additional Inference specification

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A description of the additional Inference specification

*/ inline AdditionalInferenceSpecificationDefinition& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description of the additional Inference specification

*/ inline AdditionalInferenceSpecificationDefinition& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description of the additional Inference specification

*/ inline AdditionalInferenceSpecificationDefinition& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

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 AdditionalInferenceSpecificationDefinition& WithContainers(const Aws::Vector& value) { SetContainers(value); return *this;} /** *

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

*/ inline AdditionalInferenceSpecificationDefinition& 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 AdditionalInferenceSpecificationDefinition& 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 AdditionalInferenceSpecificationDefinition& 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.

*/ 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.

*/ 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.

*/ 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.

*/ 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.

*/ inline AdditionalInferenceSpecificationDefinition& 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.

*/ inline AdditionalInferenceSpecificationDefinition& 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.

*/ inline AdditionalInferenceSpecificationDefinition& 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.

*/ inline AdditionalInferenceSpecificationDefinition& 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.

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

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

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

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

*/ 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.

*/ 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.

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

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

*/ inline AdditionalInferenceSpecificationDefinition& 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.

*/ inline AdditionalInferenceSpecificationDefinition& 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.

*/ inline AdditionalInferenceSpecificationDefinition& 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 AdditionalInferenceSpecificationDefinition& WithSupportedContentTypes(const Aws::Vector& value) { SetSupportedContentTypes(value); return *this;} /** *

The supported MIME types for the input data.

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

The supported MIME types for the input data.

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

The supported MIME types for the input data.

*/ inline AdditionalInferenceSpecificationDefinition& 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 AdditionalInferenceSpecificationDefinition& 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 AdditionalInferenceSpecificationDefinition& WithSupportedResponseMIMETypes(const Aws::Vector& value) { SetSupportedResponseMIMETypes(value); return *this;} /** *

The supported MIME types for the output data.

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

The supported MIME types for the output data.

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

The supported MIME types for the output data.

*/ inline AdditionalInferenceSpecificationDefinition& 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 AdditionalInferenceSpecificationDefinition& AddSupportedResponseMIMETypes(const char* value) { m_supportedResponseMIMETypesHasBeenSet = true; m_supportedResponseMIMETypes.push_back(value); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; 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