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

Defines the model configuration. Includes the specification name and * environment parameters.

See Also:

AWS * API Reference

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

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 ModelConfiguration& WithInferenceSpecificationName(const Aws::String& value) { SetInferenceSpecificationName(value); return *this;} /** *

The inference specification name in the model package version.

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

The inference specification name in the model package version.

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

Defines the environment parameters that includes key, value types, and * values.

*/ inline const Aws::Vector& GetEnvironmentParameters() const{ return m_environmentParameters; } /** *

Defines the environment parameters that includes key, value types, and * values.

*/ inline bool EnvironmentParametersHasBeenSet() const { return m_environmentParametersHasBeenSet; } /** *

Defines the environment parameters that includes key, value types, and * values.

*/ inline void SetEnvironmentParameters(const Aws::Vector& value) { m_environmentParametersHasBeenSet = true; m_environmentParameters = value; } /** *

Defines the environment parameters that includes key, value types, and * values.

*/ inline void SetEnvironmentParameters(Aws::Vector&& value) { m_environmentParametersHasBeenSet = true; m_environmentParameters = std::move(value); } /** *

Defines the environment parameters that includes key, value types, and * values.

*/ inline ModelConfiguration& WithEnvironmentParameters(const Aws::Vector& value) { SetEnvironmentParameters(value); return *this;} /** *

Defines the environment parameters that includes key, value types, and * values.

*/ inline ModelConfiguration& WithEnvironmentParameters(Aws::Vector&& value) { SetEnvironmentParameters(std::move(value)); return *this;} /** *

Defines the environment parameters that includes key, value types, and * values.

*/ inline ModelConfiguration& AddEnvironmentParameters(const EnvironmentParameter& value) { m_environmentParametersHasBeenSet = true; m_environmentParameters.push_back(value); return *this; } /** *

Defines the environment parameters that includes key, value types, and * values.

*/ inline ModelConfiguration& AddEnvironmentParameters(EnvironmentParameter&& value) { m_environmentParametersHasBeenSet = true; m_environmentParameters.push_back(std::move(value)); return *this; } /** *

The name of the compilation job used to create the recommended model * artifacts.

*/ inline const Aws::String& GetCompilationJobName() const{ return m_compilationJobName; } /** *

The name of the compilation job used to create the recommended model * artifacts.

*/ inline bool CompilationJobNameHasBeenSet() const { return m_compilationJobNameHasBeenSet; } /** *

The name of the compilation job used to create the recommended model * artifacts.

*/ inline void SetCompilationJobName(const Aws::String& value) { m_compilationJobNameHasBeenSet = true; m_compilationJobName = value; } /** *

The name of the compilation job used to create the recommended model * artifacts.

*/ inline void SetCompilationJobName(Aws::String&& value) { m_compilationJobNameHasBeenSet = true; m_compilationJobName = std::move(value); } /** *

The name of the compilation job used to create the recommended model * artifacts.

*/ inline void SetCompilationJobName(const char* value) { m_compilationJobNameHasBeenSet = true; m_compilationJobName.assign(value); } /** *

The name of the compilation job used to create the recommended model * artifacts.

*/ inline ModelConfiguration& WithCompilationJobName(const Aws::String& value) { SetCompilationJobName(value); return *this;} /** *

The name of the compilation job used to create the recommended model * artifacts.

*/ inline ModelConfiguration& WithCompilationJobName(Aws::String&& value) { SetCompilationJobName(std::move(value)); return *this;} /** *

The name of the compilation job used to create the recommended model * artifacts.

*/ inline ModelConfiguration& WithCompilationJobName(const char* value) { SetCompilationJobName(value); return *this;} private: Aws::String m_inferenceSpecificationName; bool m_inferenceSpecificationNameHasBeenSet = false; Aws::Vector m_environmentParameters; bool m_environmentParametersHasBeenSet = false; Aws::String m_compilationJobName; bool m_compilationJobNameHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws