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

The recommended configuration to use for Real-Time Inference.

See * Also:

AWS * API Reference

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

The recommendation ID which uniquely identifies each recommendation.

*/ inline const Aws::String& GetRecommendationId() const{ return m_recommendationId; } /** *

The recommendation ID which uniquely identifies each recommendation.

*/ inline bool RecommendationIdHasBeenSet() const { return m_recommendationIdHasBeenSet; } /** *

The recommendation ID which uniquely identifies each recommendation.

*/ inline void SetRecommendationId(const Aws::String& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = value; } /** *

The recommendation ID which uniquely identifies each recommendation.

*/ inline void SetRecommendationId(Aws::String&& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = std::move(value); } /** *

The recommendation ID which uniquely identifies each recommendation.

*/ inline void SetRecommendationId(const char* value) { m_recommendationIdHasBeenSet = true; m_recommendationId.assign(value); } /** *

The recommendation ID which uniquely identifies each recommendation.

*/ inline RealTimeInferenceRecommendation& WithRecommendationId(const Aws::String& value) { SetRecommendationId(value); return *this;} /** *

The recommendation ID which uniquely identifies each recommendation.

*/ inline RealTimeInferenceRecommendation& WithRecommendationId(Aws::String&& value) { SetRecommendationId(std::move(value)); return *this;} /** *

The recommendation ID which uniquely identifies each recommendation.

*/ inline RealTimeInferenceRecommendation& WithRecommendationId(const char* value) { SetRecommendationId(value); return *this;} /** *

The recommended instance type for Real-Time Inference.

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

The recommended instance type for Real-Time Inference.

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

The recommended instance type for Real-Time Inference.

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

The recommended instance type for Real-Time Inference.

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

The recommended instance type for Real-Time Inference.

*/ inline RealTimeInferenceRecommendation& WithInstanceType(const ProductionVariantInstanceType& value) { SetInstanceType(value); return *this;} /** *

The recommended instance type for Real-Time Inference.

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

The recommended environment variables to set in the model container for * Real-Time Inference.

*/ inline const Aws::Map& GetEnvironment() const{ return m_environment; } /** *

The recommended environment variables to set in the model container for * Real-Time Inference.

*/ inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; } /** *

The recommended environment variables to set in the model container for * Real-Time Inference.

*/ inline void SetEnvironment(const Aws::Map& value) { m_environmentHasBeenSet = true; m_environment = value; } /** *

The recommended environment variables to set in the model container for * Real-Time Inference.

*/ inline void SetEnvironment(Aws::Map&& value) { m_environmentHasBeenSet = true; m_environment = std::move(value); } /** *

The recommended environment variables to set in the model container for * Real-Time Inference.

*/ inline RealTimeInferenceRecommendation& WithEnvironment(const Aws::Map& value) { SetEnvironment(value); return *this;} /** *

The recommended environment variables to set in the model container for * Real-Time Inference.

*/ inline RealTimeInferenceRecommendation& WithEnvironment(Aws::Map&& value) { SetEnvironment(std::move(value)); return *this;} /** *

The recommended environment variables to set in the model container for * Real-Time Inference.

*/ inline RealTimeInferenceRecommendation& AddEnvironment(const Aws::String& key, const Aws::String& value) { m_environmentHasBeenSet = true; m_environment.emplace(key, value); return *this; } /** *

The recommended environment variables to set in the model container for * Real-Time Inference.

*/ inline RealTimeInferenceRecommendation& AddEnvironment(Aws::String&& key, const Aws::String& value) { m_environmentHasBeenSet = true; m_environment.emplace(std::move(key), value); return *this; } /** *

The recommended environment variables to set in the model container for * Real-Time Inference.

*/ inline RealTimeInferenceRecommendation& AddEnvironment(const Aws::String& key, Aws::String&& value) { m_environmentHasBeenSet = true; m_environment.emplace(key, std::move(value)); return *this; } /** *

The recommended environment variables to set in the model container for * Real-Time Inference.

*/ inline RealTimeInferenceRecommendation& AddEnvironment(Aws::String&& key, Aws::String&& value) { m_environmentHasBeenSet = true; m_environment.emplace(std::move(key), std::move(value)); return *this; } /** *

The recommended environment variables to set in the model container for * Real-Time Inference.

*/ inline RealTimeInferenceRecommendation& AddEnvironment(const char* key, Aws::String&& value) { m_environmentHasBeenSet = true; m_environment.emplace(key, std::move(value)); return *this; } /** *

The recommended environment variables to set in the model container for * Real-Time Inference.

*/ inline RealTimeInferenceRecommendation& AddEnvironment(Aws::String&& key, const char* value) { m_environmentHasBeenSet = true; m_environment.emplace(std::move(key), value); return *this; } /** *

The recommended environment variables to set in the model container for * Real-Time Inference.

*/ inline RealTimeInferenceRecommendation& AddEnvironment(const char* key, const char* value) { m_environmentHasBeenSet = true; m_environment.emplace(key, value); return *this; } private: Aws::String m_recommendationId; bool m_recommendationIdHasBeenSet = false; ProductionVariantInstanceType m_instanceType; bool m_instanceTypeHasBeenSet = false; Aws::Map m_environment; bool m_environmentHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws