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

The infrastructure configuration for deploying the model to a real-time * inference endpoint.

See Also:

AWS * API Reference

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

The instance type the model is deployed to.

*/ inline const InstanceType& GetInstanceType() const{ return m_instanceType; } /** *

The instance type the model is deployed to.

*/ inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; } /** *

The instance type the model is deployed to.

*/ inline void SetInstanceType(const InstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; } /** *

The instance type the model is deployed to.

*/ inline void SetInstanceType(InstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); } /** *

The instance type the model is deployed to.

*/ inline RealTimeInferenceConfig& WithInstanceType(const InstanceType& value) { SetInstanceType(value); return *this;} /** *

The instance type the model is deployed to.

*/ inline RealTimeInferenceConfig& WithInstanceType(InstanceType&& value) { SetInstanceType(std::move(value)); return *this;} /** *

The number of instances of the type specified by * InstanceType.

*/ inline int GetInstanceCount() const{ return m_instanceCount; } /** *

The number of instances of the type specified by * InstanceType.

*/ inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; } /** *

The number of instances of the type specified by * InstanceType.

*/ inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; } /** *

The number of instances of the type specified by * InstanceType.

*/ inline RealTimeInferenceConfig& WithInstanceCount(int value) { SetInstanceCount(value); return *this;} private: InstanceType m_instanceType; bool m_instanceTypeHasBeenSet = false; int m_instanceCount; bool m_instanceCountHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws