/** * 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 endpoint configuration made by Inference Recommender during a * recommendation job.

See Also:

AWS * API Reference

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

The name of the endpoint made during a recommendation job.

*/ inline const Aws::String& GetEndpointName() const{ return m_endpointName; } /** *

The name of the endpoint made during a recommendation job.

*/ inline bool EndpointNameHasBeenSet() const { return m_endpointNameHasBeenSet; } /** *

The name of the endpoint made during a recommendation job.

*/ inline void SetEndpointName(const Aws::String& value) { m_endpointNameHasBeenSet = true; m_endpointName = value; } /** *

The name of the endpoint made during a recommendation job.

*/ inline void SetEndpointName(Aws::String&& value) { m_endpointNameHasBeenSet = true; m_endpointName = std::move(value); } /** *

The name of the endpoint made during a recommendation job.

*/ inline void SetEndpointName(const char* value) { m_endpointNameHasBeenSet = true; m_endpointName.assign(value); } /** *

The name of the endpoint made during a recommendation job.

*/ inline EndpointOutputConfiguration& WithEndpointName(const Aws::String& value) { SetEndpointName(value); return *this;} /** *

The name of the endpoint made during a recommendation job.

*/ inline EndpointOutputConfiguration& WithEndpointName(Aws::String&& value) { SetEndpointName(std::move(value)); return *this;} /** *

The name of the endpoint made during a recommendation job.

*/ inline EndpointOutputConfiguration& WithEndpointName(const char* value) { SetEndpointName(value); return *this;} /** *

The name of the production variant (deployed model) made during a * recommendation job.

*/ inline const Aws::String& GetVariantName() const{ return m_variantName; } /** *

The name of the production variant (deployed model) made during a * recommendation job.

*/ inline bool VariantNameHasBeenSet() const { return m_variantNameHasBeenSet; } /** *

The name of the production variant (deployed model) made during a * recommendation job.

*/ inline void SetVariantName(const Aws::String& value) { m_variantNameHasBeenSet = true; m_variantName = value; } /** *

The name of the production variant (deployed model) made during a * recommendation job.

*/ inline void SetVariantName(Aws::String&& value) { m_variantNameHasBeenSet = true; m_variantName = std::move(value); } /** *

The name of the production variant (deployed model) made during a * recommendation job.

*/ inline void SetVariantName(const char* value) { m_variantNameHasBeenSet = true; m_variantName.assign(value); } /** *

The name of the production variant (deployed model) made during a * recommendation job.

*/ inline EndpointOutputConfiguration& WithVariantName(const Aws::String& value) { SetVariantName(value); return *this;} /** *

The name of the production variant (deployed model) made during a * recommendation job.

*/ inline EndpointOutputConfiguration& WithVariantName(Aws::String&& value) { SetVariantName(std::move(value)); return *this;} /** *

The name of the production variant (deployed model) made during a * recommendation job.

*/ inline EndpointOutputConfiguration& WithVariantName(const char* value) { SetVariantName(value); return *this;} /** *

The instance type recommended by Amazon SageMaker Inference Recommender.

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

The instance type recommended by Amazon SageMaker Inference Recommender.

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

The instance type recommended by Amazon SageMaker Inference Recommender.

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

The instance type recommended by Amazon SageMaker Inference Recommender.

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

The instance type recommended by Amazon SageMaker Inference Recommender.

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

The instance type recommended by Amazon SageMaker Inference Recommender.

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

The number of instances recommended to launch initially.

*/ inline int GetInitialInstanceCount() const{ return m_initialInstanceCount; } /** *

The number of instances recommended to launch initially.

*/ inline bool InitialInstanceCountHasBeenSet() const { return m_initialInstanceCountHasBeenSet; } /** *

The number of instances recommended to launch initially.

*/ inline void SetInitialInstanceCount(int value) { m_initialInstanceCountHasBeenSet = true; m_initialInstanceCount = value; } /** *

The number of instances recommended to launch initially.

*/ inline EndpointOutputConfiguration& WithInitialInstanceCount(int value) { SetInitialInstanceCount(value); return *this;} inline const ProductionVariantServerlessConfig& GetServerlessConfig() const{ return m_serverlessConfig; } inline bool ServerlessConfigHasBeenSet() const { return m_serverlessConfigHasBeenSet; } inline void SetServerlessConfig(const ProductionVariantServerlessConfig& value) { m_serverlessConfigHasBeenSet = true; m_serverlessConfig = value; } inline void SetServerlessConfig(ProductionVariantServerlessConfig&& value) { m_serverlessConfigHasBeenSet = true; m_serverlessConfig = std::move(value); } inline EndpointOutputConfiguration& WithServerlessConfig(const ProductionVariantServerlessConfig& value) { SetServerlessConfig(value); return *this;} inline EndpointOutputConfiguration& WithServerlessConfig(ProductionVariantServerlessConfig&& value) { SetServerlessConfig(std::move(value)); return *this;} private: Aws::String m_endpointName; bool m_endpointNameHasBeenSet = false; Aws::String m_variantName; bool m_variantNameHasBeenSet = false; ProductionVariantInstanceType m_instanceType; bool m_instanceTypeHasBeenSet = false; int m_initialInstanceCount; bool m_initialInstanceCountHasBeenSet = false; ProductionVariantServerlessConfig m_serverlessConfig; bool m_serverlessConfigHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws