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

A list of features. You must include FeatureName and * FeatureType. Valid feature FeatureTypes are * Integral, Fractional and String. *

See Also:

AWS * API Reference

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

The name of a feature. The type must be a string. FeatureName * cannot be any of the following: is_deleted, * write_time, api_invocation_time.

*/ inline const Aws::String& GetFeatureName() const{ return m_featureName; } /** *

The name of a feature. The type must be a string. FeatureName * cannot be any of the following: is_deleted, * write_time, api_invocation_time.

*/ inline bool FeatureNameHasBeenSet() const { return m_featureNameHasBeenSet; } /** *

The name of a feature. The type must be a string. FeatureName * cannot be any of the following: is_deleted, * write_time, api_invocation_time.

*/ inline void SetFeatureName(const Aws::String& value) { m_featureNameHasBeenSet = true; m_featureName = value; } /** *

The name of a feature. The type must be a string. FeatureName * cannot be any of the following: is_deleted, * write_time, api_invocation_time.

*/ inline void SetFeatureName(Aws::String&& value) { m_featureNameHasBeenSet = true; m_featureName = std::move(value); } /** *

The name of a feature. The type must be a string. FeatureName * cannot be any of the following: is_deleted, * write_time, api_invocation_time.

*/ inline void SetFeatureName(const char* value) { m_featureNameHasBeenSet = true; m_featureName.assign(value); } /** *

The name of a feature. The type must be a string. FeatureName * cannot be any of the following: is_deleted, * write_time, api_invocation_time.

*/ inline FeatureDefinition& WithFeatureName(const Aws::String& value) { SetFeatureName(value); return *this;} /** *

The name of a feature. The type must be a string. FeatureName * cannot be any of the following: is_deleted, * write_time, api_invocation_time.

*/ inline FeatureDefinition& WithFeatureName(Aws::String&& value) { SetFeatureName(std::move(value)); return *this;} /** *

The name of a feature. The type must be a string. FeatureName * cannot be any of the following: is_deleted, * write_time, api_invocation_time.

*/ inline FeatureDefinition& WithFeatureName(const char* value) { SetFeatureName(value); return *this;} /** *

The value type of a feature. Valid values are Integral, Fractional, or * String.

*/ inline const FeatureType& GetFeatureType() const{ return m_featureType; } /** *

The value type of a feature. Valid values are Integral, Fractional, or * String.

*/ inline bool FeatureTypeHasBeenSet() const { return m_featureTypeHasBeenSet; } /** *

The value type of a feature. Valid values are Integral, Fractional, or * String.

*/ inline void SetFeatureType(const FeatureType& value) { m_featureTypeHasBeenSet = true; m_featureType = value; } /** *

The value type of a feature. Valid values are Integral, Fractional, or * String.

*/ inline void SetFeatureType(FeatureType&& value) { m_featureTypeHasBeenSet = true; m_featureType = std::move(value); } /** *

The value type of a feature. Valid values are Integral, Fractional, or * String.

*/ inline FeatureDefinition& WithFeatureType(const FeatureType& value) { SetFeatureType(value); return *this;} /** *

The value type of a feature. Valid values are Integral, Fractional, or * String.

*/ inline FeatureDefinition& WithFeatureType(FeatureType&& value) { SetFeatureType(std::move(value)); return *this;} private: Aws::String m_featureName; bool m_featureNameHasBeenSet = false; FeatureType m_featureType; bool m_featureTypeHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws