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

Specifies details about how containers in a multi-container endpoint are * run.

See Also:

AWS * API Reference

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

How containers in a multi-container are run. The following values are * valid.

  • SERIAL - Containers run as a serial * pipeline.

  • DIRECT - Only the individual container * that you specify is run.

*/ inline const InferenceExecutionMode& GetMode() const{ return m_mode; } /** *

How containers in a multi-container are run. The following values are * valid.

  • SERIAL - Containers run as a serial * pipeline.

  • DIRECT - Only the individual container * that you specify is run.

*/ inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; } /** *

How containers in a multi-container are run. The following values are * valid.

  • SERIAL - Containers run as a serial * pipeline.

  • DIRECT - Only the individual container * that you specify is run.

*/ inline void SetMode(const InferenceExecutionMode& value) { m_modeHasBeenSet = true; m_mode = value; } /** *

How containers in a multi-container are run. The following values are * valid.

  • SERIAL - Containers run as a serial * pipeline.

  • DIRECT - Only the individual container * that you specify is run.

*/ inline void SetMode(InferenceExecutionMode&& value) { m_modeHasBeenSet = true; m_mode = std::move(value); } /** *

How containers in a multi-container are run. The following values are * valid.

  • SERIAL - Containers run as a serial * pipeline.

  • DIRECT - Only the individual container * that you specify is run.

*/ inline InferenceExecutionConfig& WithMode(const InferenceExecutionMode& value) { SetMode(value); return *this;} /** *

How containers in a multi-container are run. The following values are * valid.

  • SERIAL - Containers run as a serial * pipeline.

  • DIRECT - Only the individual container * that you specify is run.

*/ inline InferenceExecutionConfig& WithMode(InferenceExecutionMode&& value) { SetMode(std::move(value)); return *this;} private: InferenceExecutionMode m_mode; bool m_modeHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws