/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #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 for the load test.

See Also:

AWS * API Reference

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

The instance types to use for the load test.

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

The instance types to use for the load test.

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

The instance types to use for the load test.

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

The instance types to use for the load test.

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

The instance types to use for the load test.

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

The instance types to use for the load test.

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

The inference specification name in the model package version.

*/ inline const Aws::String& GetInferenceSpecificationName() const{ return m_inferenceSpecificationName; } /** *

The inference specification name in the model package version.

*/ inline bool InferenceSpecificationNameHasBeenSet() const { return m_inferenceSpecificationNameHasBeenSet; } /** *

The inference specification name in the model package version.

*/ inline void SetInferenceSpecificationName(const Aws::String& value) { m_inferenceSpecificationNameHasBeenSet = true; m_inferenceSpecificationName = value; } /** *

The inference specification name in the model package version.

*/ inline void SetInferenceSpecificationName(Aws::String&& value) { m_inferenceSpecificationNameHasBeenSet = true; m_inferenceSpecificationName = std::move(value); } /** *

The inference specification name in the model package version.

*/ inline void SetInferenceSpecificationName(const char* value) { m_inferenceSpecificationNameHasBeenSet = true; m_inferenceSpecificationName.assign(value); } /** *

The inference specification name in the model package version.

*/ inline EndpointInputConfiguration& WithInferenceSpecificationName(const Aws::String& value) { SetInferenceSpecificationName(value); return *this;} /** *

The inference specification name in the model package version.

*/ inline EndpointInputConfiguration& WithInferenceSpecificationName(Aws::String&& value) { SetInferenceSpecificationName(std::move(value)); return *this;} /** *

The inference specification name in the model package version.

*/ inline EndpointInputConfiguration& WithInferenceSpecificationName(const char* value) { SetInferenceSpecificationName(value); return *this;} /** *

The parameter you want to benchmark against.

*/ inline const EnvironmentParameterRanges& GetEnvironmentParameterRanges() const{ return m_environmentParameterRanges; } /** *

The parameter you want to benchmark against.

*/ inline bool EnvironmentParameterRangesHasBeenSet() const { return m_environmentParameterRangesHasBeenSet; } /** *

The parameter you want to benchmark against.

*/ inline void SetEnvironmentParameterRanges(const EnvironmentParameterRanges& value) { m_environmentParameterRangesHasBeenSet = true; m_environmentParameterRanges = value; } /** *

The parameter you want to benchmark against.

*/ inline void SetEnvironmentParameterRanges(EnvironmentParameterRanges&& value) { m_environmentParameterRangesHasBeenSet = true; m_environmentParameterRanges = std::move(value); } /** *

The parameter you want to benchmark against.

*/ inline EndpointInputConfiguration& WithEnvironmentParameterRanges(const EnvironmentParameterRanges& value) { SetEnvironmentParameterRanges(value); return *this;} /** *

The parameter you want to benchmark against.

*/ inline EndpointInputConfiguration& WithEnvironmentParameterRanges(EnvironmentParameterRanges&& value) { SetEnvironmentParameterRanges(std::move(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 EndpointInputConfiguration& WithServerlessConfig(const ProductionVariantServerlessConfig& value) { SetServerlessConfig(value); return *this;} inline EndpointInputConfiguration& WithServerlessConfig(ProductionVariantServerlessConfig&& value) { SetServerlessConfig(std::move(value)); return *this;} private: ProductionVariantInstanceType m_instanceType; bool m_instanceTypeHasBeenSet = false; Aws::String m_inferenceSpecificationName; bool m_inferenceSpecificationNameHasBeenSet = false; EnvironmentParameterRanges m_environmentParameterRanges; bool m_environmentParameterRangesHasBeenSet = false; ProductionVariantServerlessConfig m_serverlessConfig; bool m_serverlessConfigHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws